Home  >  Article  >  WeChat Applet  >  How to open external links in WeChat applet

How to open external links in WeChat applet

尚
Original
2020-04-01 09:50:5212889browse

How to open external links in WeChat applet

In the WeChat applet, external links can be opened through the web-view component. This component is a container that can be used to host web pages, and will automatically fill the entire mini program page. Personal type and overseas type mini programs are not supported for the time being.

The steps to use this component are as follows:

1. Go to the Mini Program public platform to configure the business domain name

To configure the business domain name, you need to download the verification file first, and then place it in Yuyao to configure the domain name Under the root directory of the domain name, after configuration, the file can be directly accessed through the domain name file name. The purpose of this operation seems to be that Tencent needs to verify the operation permission to change the domain name. If the verification fails, an error will be prompted when configuring the business domain name and cannot be saved. (During the operation, I implemented this by configuring the verification file mapping between nginx)

Just configure the first-level domain name to be used directly, so that all second-level domain names can be configured through this configuration use.

2. Use the Mini Program page directly

<web-view src="http://xxxx"></web-view>

Recommendation: " Mini Program Development Tutorial"

The above is the detailed content of How to open external links in WeChat applet. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn