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?
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