html5 - Now I have made an H5 for promotion and need to obtain openid
世界只因有你
世界只因有你 2017-07-06 10:36:53
0
3
1245

Now H5 has a form submission part
After the form is submitted successfully, a QR code that needs attention will pop up
Can I get the user's openid without paying attention to the QR code? I think it looks like a service number. Is it possible?
Then can a simple H5 also be used?
How should I write it?

世界只因有你
世界只因有你

reply all(3)
洪涛

If you need to obtain the user's openid, you must require the domain name of the current page to be authorized through WeChat's web page. After the authorization is passed, first get the authorization code, and then continue to obtain the openid through the code.
Please check the WeChat developer documentation for details.

学霸

If you don’t follow us, you can ask for WeChat authorization to get openid

世界只因有你

Can H5 directly obtain openid? How to achieve it? Are there any examples? If not through the official account, it is just a web page opened in WeChat

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template