问题模块 |
---|
API和组件 |
代码如下:
wx.openCard({
cardList: [
{
cardId: ''+cardeId,
code: ''
}
],
success: function (res) {
console.log('打开微信的卡券')
console.log(res)
},
fail: function (res) {
console.log('打开卡券失败原因')
console.log(res)
wx.showToast({
title: '打开卡券失败,无法分享!',
icon: 'success',
image: '/resource/shibai.jpg',
duration: 2000
})
}
})