8月13日直播回放涉及本人簡歷項目講解、解決群友問題,有需要的可以自己去查...

getOrderCouponList(10, params).then((res) => {
uni.hideLoading();
if (res.code === 200) {
res.data.forEach(item => {
if (item.couponStatus === 11) {
// 從訂單處跳轉(zhuǎn)過來的優(yōu)惠券進行匹配,匹配上則進行默認勾選
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: "數(shù)據(jù)加載失敗",
icon: "none",
duration: 2000,
});
}
}).catch((error) => {
uni.showToast({
title: `${error}`,
icon: "none",
duration: 2000,
});
});