With the popularization of mobile payment, we can often see in daily life, and the store qr code in addition to the payment could open a small program, in the traditional application, we knew we should scan the qr code corresponding to open the h5 page, scan small program code will open the small program, and now this jump way is how to do? In fact, wechat and Alipay applet provide corresponding configuration functions, you can configure the jump rule in the corresponding management end, the following is to record the configuration method and the difference between the two.
First, wechat small program
Wechat applets configuration path: Development Management –> Development Settings –> Scan the common connection QR code to open the applets
Click Add on the above path to open the configuration page, as shown below
Configuration is easier to understand, do not understand you can look at the wechat scan ordinary TWO-DIMENSIONAL code to open the small program development document, here mainly say a few points:
- Qr code rules:
This item we can fill out our to configure the url of the rules, because we usually sweep yards of qr code will not be the same path (basic it is, after all, in view of the merchants, certainly is not the same), but the basic path should be the same, just behind the parameters is not the same, so we can only fill in the position basic path. For example, the path of the TWO-DIMENSIONAL code: www.aaa.com.abc/a?aaa=111 www.aaa.com.abc/a?aaa=444, we just fill in www.aaa.com.abc/ for this position, and fuzzy matching can be carried out to all pages.
- Prefix occupation rules:
If you want to configure the same rule for the path that has been configured, you cannot configure the same rule again. Otherwise, the configured rule will be replaced. This is optional, depending on the business.
- Test link:
For our configured rules, five test links can be added to each rule to test whether the applet can be opened properly. Because we usually do not release the rules immediately after they are configured, we need to conduct internal tests before the public, so we can add the corresponding complete link here, so that the administrator/developer/experient of the mini-program can scan the corresponding TWO-DIMENSIONAL code to open the corresponding page of the mini-program.
After the above configuration is completed, click save, you can see that the content of the configuration is displayed in the list, but it is not published, that is, the configuration at this time is only internal (small program manager/developer/experiencer), only after click publish will take effect externally.
Two, Alipay small program
Configuration path of Alipay small program: promote customers –> code management –> associate ordinary TWO-DIMENSIONAL code
(1) The first step
Click Add on the above path to open the configuration page, as shown below
The configuration looks a little simpler than wechat configuration, but usually the more simple things may have some parts of the understanding is not very easy, do not understand you can first look at the document Alipay small program sweep ordinary TWO-DIMENSIONAL code to open small program development document, document expression is also very detailed, but also pick a few simple say.
- Qr code Address:
Contrast WeChat and alipay configuration page, there is a little difference is that we can find that there is a rule configuration WeChat, followed by the test link configuration, but pay treasure configuration seems to be only a qr code address, but a careful look at the picture we can see that the configuration is step by step, can be in the second step is to configure test related content, Therefore, we can only configure the basic path for this position just like the configuration rules of wechat.
- Matching rules:
There is a simple text below this point, if you choose accurate matching, that is, only when your TWO-DIMENSIONAL code is fully in line with the above configuration of the address to open; If fuzzy match is selected, fuzzy match is performed based on the prefix. If parameters are inconsistent, the prefix is consistent. The choice of this step will affect the next operation, if the choice of accurate matching, then the next step will directly generate two-dimensional code; If fuzzy matching is selected, the next step is to configure the parameters further, which is equivalent to configuring the test link.
(2) The second step
Click Next after the above configuration to return to the following interface (fuzzy matching) :
As you can see, after selecting fuzzy matching, you can improve your link in the second step, fill in a test suffix, click generate TWO-DIMENSIONAL code will generate a test two-dimensional code below, click publish two-dimensional code, two-dimensional code after the effect can be directly scan the code to open the small program, of course, now is also for internal use. After verification is completed, it also needs to be released before it can be used externally.
Three, the difference between the two
To sum up, in fact, the configuration principle of the two is basically the same, but the specific operation will be different:
- Rule configuration and test link configuration is not the same, wechat operation is more convenient;
- Alipay applet can be precise and fuzzy matching selection, wechat applet does not have this option, of course, can be distinguished by their own required configuration;
- Alipay small program test two-dimensional code release is effective time, 5 minutes after the release of the effective, wechat small program configuration can take effect;
Of course, there is a fundamental common ground between the two: the code of the small program must be released before the rules can be configured, and the release here refers to the experience version.
The above is a simple summary of the configuration content of the jump rule corresponding to the common code of the small program, for the first time partners may have some doubts, I hope this article can help, if there is insufficient or incorrect, welcome to supplement and correct ~~