微信卡券

调起适用于门店的卡券列表并获取用户选择列表

wx.chooseCard({
    shopId: '', // 门店Id
    cardType: '', // 卡券类型
    cardId: '', // 卡券Id
    timeStamp: 0, // 卡券签名时间戳
    nonceStr: '', // 卡券签名随机串
    cardSign: '', // 卡券签名,详见附录6
    success: function (res) {
        var cardList= res.cardList; // 用户选中的卡券列表信息
    }
});

批量添加卡券接口

wx.addCard({
    cardList: [{
        cardId: '',
        cardExt: ''
    }], // 需要添加的卡券列表
    success: function (res) {
        var cardList = res.cardList; // 添加的卡券列表信息
    }
});

查看微信卡包中的卡券接口

wx.openCard({
    cardList: [{
        cardId: '',
        code: ''
    }]// 需要打开的卡券列表
});