Commit 6c022890 by TengFengLian

核销处理状态判断

parent 9d8c5647
Showing with 8 additions and 0 deletions
...@@ -117,6 +117,7 @@ Page({ ...@@ -117,6 +117,7 @@ Page({
volumeId: that.data.couponDetail.volumeId, volumeId: that.data.couponDetail.volumeId,
}, },
success: function(res) { success: function(res) {
if (res.data.code * 1 == 200) {
wx.lin.showToast({ wx.lin.showToast({
image: '/image/success.png', image: '/image/success.png',
title: '核销成功', title: '核销成功',
...@@ -124,6 +125,13 @@ Page({ ...@@ -124,6 +125,13 @@ Page({
setTimeout(()=>{ setTimeout(()=>{
wx.navigateBack() wx.navigateBack()
},2000); },2000);
} else {
wx.lin.showToast({
image: '/image/error.png',
title: res.data.msg,
})
}
}, },
fail: function(err) { fail: function(err) {
wx.lin.showToast({ wx.lin.showToast({
......
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 sign in to comment