Commit 8a2a976da40d9d9e6fd36e18c0a52f7b86900a66
1 parent
49a3afe4
取消订单的提示语优化
Showing
2 changed files
with
7 additions
and
3 deletions
packageG/pages/user/order_detail/order_detail.js
| ... | ... | @@ -347,8 +347,12 @@ Page({ |
| 347 | 347 | getApp().request.post("/api/weshop/order/cancelOrder/"+os.stoid+"/"+o+"/"+getApp().globalData.user_id,{ |
| 348 | 348 | data:{}, |
| 349 | 349 | success: function(t) { |
| 350 | - if(t.data.code==0) | |
| 351 | - th.requestOrderDetail(o), wx.setStorageSync("order:order_list:update", !0); | |
| 350 | + if(t.data.code==0) { | |
| 351 | + th.requestOrderDetail(o), wx.setStorageSync("order:order_list:update", !0); | |
| 352 | + }else{ | |
| 353 | + getApp().confirmBox(t.data.msg); | |
| 354 | + } | |
| 355 | + | |
| 352 | 356 | }, |
| 353 | 357 | }) |
| 354 | 358 | /*---- | ... | ... |
pages/user/order_list/order_list.js
| ... | ... | @@ -506,7 +506,7 @@ Page({ |
| 506 | 506 | 0 == e.data.activeCategoryId ? |
| 507 | 507 | (e.resetData(), e.requestOrderList(e.data.activeCategoryId)) : e.deleteOrderData2(a); |
| 508 | 508 | } else { |
| 509 | - getApp().confirmBox(e.data.msg); | |
| 509 | + getApp().confirmBox(t.data.msg); | |
| 510 | 510 | } |
| 511 | 511 | }, |
| 512 | 512 | }) | ... | ... |