Commit 6c022890 by TengFengLian

核销处理状态判断

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