| @@ -5,17 +5,17 @@ let app = getApp(); | |||||
| Page({ | Page({ | ||||
| data: { | data: { | ||||
| tabs: [{ | tabs: [{ | ||||
| key: 0, | |||||
| key: 4, | |||||
| name: "使用中" | name: "使用中" | ||||
| }, | }, | ||||
| { | { | ||||
| key: 1, | |||||
| key: 5, | |||||
| name: "已失效" | name: "已失效" | ||||
| } | } | ||||
| ], | ], | ||||
| list: [], | list: [], | ||||
| current: "0", | |||||
| current_scroll: "0", | |||||
| current: "4", | |||||
| current_scroll: "4", | |||||
| page: 1, | page: 1, | ||||
| allow_load: true, | allow_load: true, | ||||
| loading: true, //"上拉加载"的变量,默认false,隐藏 | loading: true, //"上拉加载"的变量,默认false,隐藏 | ||||
| @@ -24,7 +24,7 @@ Page({ | |||||
| showPage:false | showPage:false | ||||
| }, | }, | ||||
| onLoad() { | onLoad() { | ||||
| this.getList(0, 1); | |||||
| this.getList(4, 1); | |||||
| }, | }, | ||||
| onShow: function () { | onShow: function () { | ||||
| let that = this; | let that = this; | ||||
| @@ -74,7 +74,8 @@ Page({ | |||||
| data: { | data: { | ||||
| pageNum: pageNum, | pageNum: pageNum, | ||||
| pageSize: 6, | pageSize: 6, | ||||
| couponType:7 | |||||
| couponType:"7", | |||||
| couponOrderStatus: key | |||||
| } | } | ||||
| }) | }) | ||||
| .then(res => { | .then(res => { | ||||