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){