欢迎光临散文网 会员登陆 & 注册

8月13日直播回放涉及本人简历项目讲解、解决群友问题,有需要的可以自己去查...

2022-08-16 12:08 作者:木下歌  | 我要投稿

getOrderCouponList(10, params).then((res) => {

uni.hideLoading();

if (res.code === 200) {

res.data.forEach(item => {

if (item.couponStatus === 11) {

// 从订单处跳转过来的优惠券进行匹配,匹配上则进行默认勾选

if (item.id === useRouteStore.firstCouponData.couponData.id) {

// 等于1则说明默认勾选等于0则说明取消勾选

item.value = [1];

}

couponData.allowList.push(item);

couponData.couponAllList.push(item);

} else {

couponData.noAllowList.push(item);

couponData.couponAllList.push(item);

}

});

} else {

uni.showToast({

title: "数据加载失败",

icon: "none",

duration: 2000,

});

}

}).catch((error) => {

uni.showToast({

title: `${error}`,

icon: "none",

duration: 2000,

});

});

8月13日直播回放涉及本人简历项目讲解、解决群友问题,有需要的可以自己去查...的评论 (共 条)

分享到微博请遵守国家法律