Mini program webview opens H5 page

step:

  1. Open Development->Development Settings->Business Domain Name on the WeChat public platform, and the following pop-up layer will appear:
    Insert image description here
  2. Download the verification file, give it to the project development that needs to configure the domain name, and place it in the root directory of the project. Remember it is the root directory location after packaging . For Vue, it is usually placed in the public directory, at the same level as index.html , and then Release the version (if you do not release the version, you will be prompted for verification failure when you click Save in the pop-up layer for configuring the business domain name)
  3. Use the webview component in the mini program page and use the URL link with the configured domain name
  4. User synchronization between the mini program and the H5 page requires coordination and confirmation by both parties. Generally, the user information is placed on the URL link opened by the webview and brought there as a parameter. Then the H5 side develops and parses the parameters to get the user information and uses the login interface by itself.

Verification self-check reference: https://developers.weixin.qq.com/community/develop/doc/00084a350b426099ab46e0e1a50004?%2Fblogdetail%3Faction=get_post_info

Guess you like

Origin blog.csdn.net/be_strong_web/article/details/129038394