@官方 麻烦回复一下,谢谢
可不可以想button一样 ,点击之后还能调用 getuserinfo,
先点击navigator,然后调用 navigateToMiniProgram
wxml:
<navigator target=“miniProgram” open-type=“navigate” data-ind=’{{index}}’ bindtap=‘mini’ data-tips=’{{item.xcxid}}’ data-link=’{{item.inlink}}’ data-appid=’{{item.xcxid}}’>{{item.butxt}}</navigator>
js:
mini(e) {
app.deed_init(e);
wx.showToast({
title: ‘ssssssss’,
icon: ‘’,
image: ‘’,
duration: 2000,
mask: true,
success: function(res) {
wx.navigateToMiniProgram({
appId: e.currentTarget.dataset.appid,
path: e.currentTarget.dataset.link,
extraData: {},
envVersion: ‘’,
success: function (res) { },
fail: function (res) { },
complete: function (res) { },
})
},
fail: function(res) {},
complete: function(res) {},
})
},