Commit 079e1bdae20f2089e8cfe4af06a1e80a91a81f82
1 parent
3b278963
12121
Showing
1 changed file
with
8 additions
and
1 deletions
pages/user/order_list/order_list.js
... | ... | @@ -252,7 +252,14 @@ Page({ |
252 | 252 | order_id: a,order_status:2 |
253 | 253 | }, |
254 | 254 | success: function(t) { |
255 | - e.deleteOrderData(a); | |
255 | + //e.deleteOrderData(a); | |
256 | + for (var e = 0; e < this.data.orderList.length; e++) if (this.data.orderList[e].order_id == ) { | |
257 | + this.data.orderList.splice(e, 1), this.setData({ | |
258 | + orderList: this.data.orderList | |
259 | + }); | |
260 | + break; | |
261 | + } | |
262 | + | |
256 | 263 | //如果是会员团订单 |
257 | 264 | if(is_zsorder==3){ |
258 | 265 | getApp().request.post("/api/weshop/order/vipTuanTebate/"+os.stoid+"/"+a,{ | ... | ... |