2023-3-15
优惠券
This commit is contained in:
@@ -72,14 +72,14 @@
|
|||||||
let params = {
|
let params = {
|
||||||
couponId: item.id
|
couponId: item.id
|
||||||
};
|
};
|
||||||
this.clickSubMethod(item)
|
|
||||||
let data = await Api.apiCall('post', Api.index.acceptCoupon, params);
|
|
||||||
// console.log("data?????", data);
|
|
||||||
// if (data) {
|
|
||||||
// // this.$api.msg(data);
|
|
||||||
// this.clickSubMethod(item)
|
// this.clickSubMethod(item)
|
||||||
|
let data = await Api.apiCall('post', Api.index.acceptCoupon, params);
|
||||||
|
console.log("data?????", data);
|
||||||
|
if (data) {
|
||||||
|
// this.$api.msg(data);
|
||||||
|
this.clickSubMethod(item)
|
||||||
|
|
||||||
// }
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}else{
|
}else{
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -385,7 +385,10 @@
|
|||||||
})
|
})
|
||||||
console.log('index: ' + index)
|
console.log('index: ' + index)
|
||||||
this.couponList.splice(index, 1);
|
this.couponList.splice(index, 1);
|
||||||
// this.getCouponList();
|
uni.showLoading({
|
||||||
|
title: '领取成功'
|
||||||
|
});
|
||||||
|
this.getCouponList();
|
||||||
},
|
},
|
||||||
|
|
||||||
async sysInfoMethod() {
|
async sysInfoMethod() {
|
||||||
|
|||||||
Reference in New Issue
Block a user