From the micro-channel applet web-view page to H5, H5 how the page jump back to the applet?

1, using the solution prepared by uni-app H5 page:

First introduced in template.h5.html js script file in the root directory (that is, JSSDK)
Here Insert Picture Description

And then return applet interfaces need to click on the jump page provided to perform JSSDK

//返回小程序tabBar页面
jWeixin.miniProgram.switchTab({
	url: '/pages/index/index'
})
//返回到小程序非tabBar页面
jWeixin.miniProgram.navigateTo({
	url: '/pages/index/index'
})

Note: The preceding interface name isjWeixin Instead ofwx

Reference: micro-channel development documents

Published 31 original articles · won praise 5 · Views 813

Guess you like

Origin blog.csdn.net/weixin_45899022/article/details/103140832