In the last section, we got the H5 link outside wechat that can evoke small programs:

https://shymall-9g0a4z6kbf382b74-1305109476.tcloudbaseapp.com/h5/jump-mp.html?sign=b40df49885fb6807775cd485ad582218&t=16 14750553

This section plus arguments

For example, if we want to jump to a distributeCode, we add the URL to the distributeCode parameter:

https://shymall-9g0a4z6kbf382b74-1305109476.tcloudbaseapp.com/h5/jump-mp.html?sign=b40df49885fb6807775cd485ad582218&t=16 14750553&distributeCode=123

I. Jump within wechat

Modify the h5 HTML

“In-app reconnection” is mainly about modifying open tags wX-open-launch-appellate:

Native DOM manipulation is applicable

Second, wechat jump

1. Modify H5

This function is called by the wechat external call small program. Therefore, modify this function to let the cloud function call, carry a payload parameter

\

At this point, the H5 page is finished. Update this file in the static web site of the Cloud Development Console according to the previous section

2, modify the cloud function public

In the applets project, in the wxCloudFunctions directory, modify the public cloudfunction

After the modification, compile the project, re-upload and deploy the cloud function public

complete

The attached:

Modified H5 file github.com/jiqishoubi/…