跳转到另一个小程序
<view class="item flex flex-col" bindtap="onEasy"> <navigator target="miniProgram" open-type="navigate" app-id="wx5d2a5555555555ef" path="pages/index/index" extra-data="" version="release"> <image class="item_img" src="/img/index/easy.png"></image> <text>轻松玩</text> </navigator> </view>
easy: function(){ wx.navigateToMiniProgram({ appId: 'wx5d2555555555ef', path: 'pages/index/index', extraData: {}, envVersion: 'release', success(res) { } }) }