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)
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