Commit c895812f by 谢中龙

上传代码

parent 9ae4544b
...@@ -123,7 +123,7 @@ wxService.page({ ...@@ -123,7 +123,7 @@ wxService.page({
wxService.post(`/coupon/coupon/checkAndInvalid`, param).then(res => { wxService.post(`/coupon/coupon/checkAndInvalid`, param).then(res => {
wx.hideLoading(); wx.hideLoading();
if(res){ if(res){
if (res.data.result == 0) { if (res.data.result == 0 || res.data.data) {
wx.showToast({ wx.showToast({
title: '核销成功', title: '核销成功',
icon : 'success', icon : 'success',
...@@ -138,6 +138,21 @@ wxService.page({ ...@@ -138,6 +138,21 @@ wxService.page({
} }
}); });
} }
else{
wx.showToast({
title: '核销失败,请确定券未被核销',
icon: 'none',
duration: 2000,
mask: true,
success: function () {
setTimeout(() => {
wx.navigateBack({
delta: 1
});
}, 1500);
}
});
}
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment