| @@ -25,6 +25,7 @@ Page({ | |||||
| }, | }, | ||||
| onLoad: function(options) { | onLoad: function(options) { | ||||
| var that = this; | var that = this; | ||||
| that.init(); | |||||
| that.getList(); | that.getList(); | ||||
| }, | }, | ||||
| @@ -139,7 +140,6 @@ Page({ | |||||
| couponOrderStatus: 0 | couponOrderStatus: 0 | ||||
| } | } | ||||
| }).then(res => { | }).then(res => { | ||||
| that.init(); | |||||
| that.setData({ | that.setData({ | ||||
| couponList: res.data.list | couponList: res.data.list | ||||
| }); | }); | ||||
| @@ -182,7 +182,7 @@ Page({ | |||||
| wx.showModal({ | wx.showModal({ | ||||
| title: "提示", | title: "提示", | ||||
| showCancel: false, | showCancel: false, | ||||
| content: error.data.message, | |||||
| content: error.message, | |||||
| success: function() {} | success: function() {} | ||||
| }); | }); | ||||
| }); | }); | ||||