From 6a5896162307a3d38dbe046d77675230504a5a1c Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 28 Mar 2019 16:48:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A0=8D=E4=BB=B7=E8=BF=87=E6=BB=A4][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/index/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pages/order/index/index.js b/pages/order/index/index.js index 4b4c3c9..69cf3f9 100644 --- a/pages/order/index/index.js +++ b/pages/order/index/index.js @@ -111,16 +111,9 @@ Page({ var tmpArr = that.data.list; tmpArr.push.apply(tmpArr, res.data.list); // 将砍价的状态过滤出来 - let list = []; console.log(tmpArr) - tmpArr.map(file=>{ - if (file.orderStatus == 6 || file.orderStatus == 7 || file.orderStatus == 8 || file.orderStatus == 9){}else{ - list.push(file); - } - }) - console.log(list) that.setData({ - list: list + list: tmpArr }) for (let i = 0; i < that.data.list.length; i++) { var createDate1 = util.formatTime(that.data.list[i].createDate, "yyyy-MM-dd hh:mm:ss");