Commit 6c022890 by TengFengLian

核销处理状态判断

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