diff --git a/pages/user/order_list/order_list.js b/pages/user/order_list/order_list.js index c97e9d9..2729a0d 100644 --- a/pages/user/order_list/order_list.js +++ b/pages/user/order_list/order_list.js @@ -240,9 +240,7 @@ Page({ confirmOrder: function(t) { var e = this, a = t.currentTarget.dataset.id; var is_zsorder=t.currentTarget.dataset.zsorder; - - console.log("confirmOrder"); - console.log(is_zsorder); + var th=this; wx.showModal({ title: "是否确认收货?", @@ -253,9 +251,9 @@ Page({ }, success: function(t) { //e.deleteOrderData(a); - for (var e = 0; e < this.data.orderList.length; e++) if (this.data.orderList[e].order_id == ) { - this.data.orderList.splice(e, 1), this.setData({ - orderList: this.data.orderList + for (var e = 0; e < th.data.orderList.length; e++) if (th.data.orderList[e].order_id ==a ) { + th.data.orderList.splice(e, 1), th.setData({ + orderList: th.data.orderList }); break; }