From a89b7c5dbfa32da29e5be43b1d79d78c32498180 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 20 Dec 2018 23:43:53 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=91=E7=9A=84=E5=8D=A1=E5=8C=85][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]:=E6=88=91=E7=9A=84=E5=8D=A1=E5=8C=85?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=9A=84=E4=BF=AEi=E8=AF=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cardorder/index/index.js | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pages/cardorder/index/index.js b/pages/cardorder/index/index.js index ab36067..85d5844 100644 --- a/pages/cardorder/index/index.js +++ b/pages/cardorder/index/index.js @@ -9,7 +9,7 @@ Page({ name: "使用中" }, { - key: 5, + key: "5,6,7", name: "已失效" } ], @@ -64,19 +64,30 @@ Page({ }, getList(key, pageNum) { var that = this; + console.log(key) if (that.data.allow_load) { that.setData({ loading: true, content: "小主,我在玩命加载中...", }); - Http.get({ - url: config.api.cardorderList, - data: { + if(key==4){ + var data = { + pageNum: pageNum, + pageSize: 6, + couponType: "7", + couponOrderStatus: 4 + } + }else if(key=='5,6,7'){ + var data = { pageNum: pageNum, pageSize: 6, - couponType:"7", - couponOrderStatus: key + couponType: "7", + statusStr: "5,6,7" } + } + Http.get({ + url: config.api.cardorderList, + data: data }) .then(res => { if(res.code == 200){