1.1.1. 微信拉取适用卡券列表并获取用户选择信息

微

方法名称: wxChooseCard

方法说明: 拉取适用卡券列表并获取用户选择信息

参数说明:(“-”为子级标识)

参数位序号 参数名称 参数类型 参数说明 参数是否必须 如果是回调其回传参数
1 配置参数项 object 配置参数对象
- -completed function 获取信息的回调
success: ‘1’/'0', 成功或者失败
data: 数据对象
-cardList: 用户选中的卡券列表信息
js object
{success:'1', data: {cardList: []}}
- -cpIncompatible function 环境没有实现此方法的回调
- -shopId string 门店Id
- -cardType int 卡券类型
- -cardId string 卡券Id
- -timestamp int 卡券签名时间戳
- -nonceStr string 卡券签名随机串
- -signType string 签名方式,默认'SHA1'
- -cardSign string 卡券签名

调用样例:

CP.wxChooseCard({
    completed: function(data){
        // data > {success:'1', data: {cardList: []}}
        CP.tools.writelog('wx_choose_card', data);
    },
    cpIncompatible: function () {
         CP.tools.writelog('', '此环境不支持此方法');
    },
    shopId: '',
    cardType: '',
    cardId: '',
    timestamp: '',
    nonceStr: '',
    signType:'',
    cardSign:''
});
Copyright © 新媒体云服务平台 2019 all right reserved,powered by Gitbook该文件修订时间: 2022-08-12 17:13:14

results matching ""

    No results matching ""