html部分:
<button class='flex1 login-btn' form-type='submit' bind:tap="onJumpMin">跳转企业小程序</button>
js部分:
onJumpMin() {
wx.navigateToMiniProgram({
appId: 'wx506fd415817aea3c', // 需要跳转到指定的小程序appid
path: 'pages/chooseEnterprise/chooseEnterprise', // 打开的页面
extraData: { ces: '1111' }, // 传递给目标小程序的参数
envVersion: 'release', // 打开正式版的小程序
success(res) {
// 打开成功
console.log(res);
}
})
},
跳过去后在页面中onLoad(options
)获取参数