current position:Home>Wechat applet authorization login problem
Wechat applet authorization login problem
2022-02-02 22:22:55 【CSDN Q & A】
demand :
Click the login button
1. The authorized user information will pop up wx.getUserProfile
2. After the user agrees and authorizes , Pop up the authorized mobile phone number
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
3. Login succeeded after consent Display page information
solve :
My question is How to click only one login button Just realize the above process
I think some small programs are like this
But the authorized phone number Must use button Button
Then the authorized user information and the authorized mobile phone number are separated
I want to know what the general practice is ?
By the way Is there something authorized by one click ? Is more than 1.2 One step direct authorization is enough ?
Thank you !!
Refer to the answer 1:
I just did this during the summer vacation , At present, I understand that there is no way , Two steps are needed. .
Refer to the answer 2:
Refer to the answer 3:
Nested function , When the second step is written to the first step, it will execute itself
Refer to the answer 4:
copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022222531930.html
The sidebar is recommended
- Why is the time complexity of nested while loops in for still o (n)
- Spring cannot load the context. What's the problem
- What's the problem, please
- C language reading program, why 5? Seek explanation
- How can the Java background distinguish the clients of different users when the company has the same LAN
- Batch import needs to be added in the system
- I can't even paste it a little
- The input value is incorrect. There are two inputs, but only one can be entered
- Why judge whether the triangle is wrong and how to write it.
- How to solve the hidden bug of fluent Web text overflow overflow
guess what you like
-
C sharp mouse penetration
-
Idea uses el and JSTL expressions respectively, which are written in JSP files and display blank space on the web. What's the problem.
-
H3C help me, you fool. I really didn't attend class
-
What's the problem with not running at all
-
How to open with sqlyog Enterprise Edition MDF and LDF files. SQL Server2008 is not used in class teaching
-
C language and application file programming program
-
A=“abc123”'B=“EDF456”
-
What does the code in Android XML mean? Please have a look
-
The branch jump instruction in risc-v requires several branch delay slots
-
Create a string variable
Random recommended
- No change with non singleton labels? What's wrong
- This cycle makes me a little confused
- Why does RGB of Python line chart run in scarlet letter?
- Library management system, how to use two arrays together
- How to download files to browser through PHP FTP
- Why is the range of the second for loop < I-1?
- What should I fill in the air room?
- 0: {key1: value1, key2: Value2} what kind of data is this
- Can I access UI components in Python multi process?
- Enter N and n positive integers and output all prime numbers. If not, output No
- Spring project deployment Tomcat
- How to use Python to implement a hash table
- The command prompt cannot be displayed as you look
- Solve, why can't this work
- Want to know F4 what's wrong
- HTML + PHP + Python web page displays Chinese garbled code
- Introduction to C language: pointer and multidimensional array
- C language can judge whether the password is correct and return whether it is correct, but there is no way to judge after the password is wrong
- How does the core MVC razorpages page access the backend method?
- How to design test papers freely according to your own needs in HTML
- Dlib is already in setting, but there will still be errors when running
- Vs2015 migration project, failed to connect can
- www.bing. Com took too long to respond
- Why do computers use complement codes
- Why do floating point numbers lose accuracy? How to understand
- The problem of Vue routing history mode jumping to a new window
- PR how to remove the original video subtitles
- How do I get a set of filtered drop-down items in an excel table?
- How to set to allow the WWW service to pass through the server (port 80)
- What are the recording chips with built-in flash? It can record about 40 seconds. What are the characteristics of the chip?
- The company has added a batch of computers. Now it needs to add a network segment to divide the new computers into this network segment
- Jenkins deployment project execution pipeline script prompt: Python module not found
- Do you know how to solve & lt/ details&gt; Too many child elements in the page will cause the page to jam when sliding
- Which database does the following text image come from? Does anyone know the original image and GT image?
- How to install PIP? I have found many ways to install it, as shown in the figure
- It's a little difficult for you to find mistakes. All kinds of mistakes
- MySQL sub nested data update
- How do I get the words on the console to the window?
- Failed to load file or assembly
- How does git handle this situation