Jump between WeChat applets, multiple WeChat applets jump to each other, how to jump to another applet in a small program
Method 1: Use the API method to realize the mutual jump between multiple WeChat applets
view code
<view class="container">
<view bindtap="onJumpMin">跳转到其他小程序</view>
</view>
js code
onJumpMin() {
wx.navigateToMiniProgram({
appId: '', // 需要跳转到指定的小程序appid
path: 'pages/home/home', // 打开的页面
envVersion: 'release',
success(res) {
// 打开成功
console.log(res);
}
})
},
Method 2: Use the label method to realize the mutual jump between multiple WeChat applets
<view>
<navigator
target="miniProgram"
open-type="navigate"
app-id=""
path="pages/index/index"
version="release"
>跳转到其他小程序</navigator
>
</view>