wx.addCard({
cardList: [{
cardId: cardPackage.card_id,
cardExt: '{"code":"","openid":"","timestamp":"'+cardPackage.timestamp+'","signature":"'+cardPackage.signature+'"}'
}], // 需要添加的卡券列表
success: function (res) {
console.log("你成功领取了奖品!");
},
cancel: function (res) {
},
fail:function(res){
console.log("失败")
}
});
取消领取卡券会调用 fail 回调函数,为什么不是cancel?