Commit 240c74c146fd6ddc60c6cbe02636e42504a78add

Authored by yvan.ni
1 parent 079e1bda

确认收货的bug有货

pages/user/order_list/order_list.js
@@ -240,9 +240,7 @@ Page({ @@ -240,9 +240,7 @@ Page({
240 confirmOrder: function(t) { 240 confirmOrder: function(t) {
241 var e = this, a = t.currentTarget.dataset.id; 241 var e = this, a = t.currentTarget.dataset.id;
242 var is_zsorder=t.currentTarget.dataset.zsorder; 242 var is_zsorder=t.currentTarget.dataset.zsorder;
243 -  
244 - console.log("confirmOrder");  
245 - console.log(is_zsorder); 243 + var th=this;
246 244
247 wx.showModal({ 245 wx.showModal({
248 title: "是否确认收货?", 246 title: "是否确认收货?",
@@ -253,9 +251,9 @@ Page({ @@ -253,9 +251,9 @@ Page({
253 }, 251 },
254 success: function(t) { 252 success: function(t) {
255 //e.deleteOrderData(a); 253 //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 254 + for (var e = 0; e < th.data.orderList.length; e++) if (th.data.orderList[e].order_id ==a ) {
  255 + th.data.orderList.splice(e, 1), th.setData({
  256 + orderList: th.data.orderList
259 }); 257 });
260 break; 258 break;
261 } 259 }