diff --git a/pages/passCar/passCar.js b/pages/passCar/passCar.js index 23b9749..abe5004 100644 --- a/pages/passCar/passCar.js +++ b/pages/passCar/passCar.js @@ -25,6 +25,7 @@ Page({ }, onLoad: function(options) { var that = this; + that.init(); that.getList(); }, @@ -139,7 +140,6 @@ Page({ couponOrderStatus: 0 } }).then(res => { - that.init(); that.setData({ couponList: res.data.list }); @@ -182,7 +182,7 @@ Page({ wx.showModal({ title: "提示", showCancel: false, - content: error.data.message, + content: error.message, success: function() {} }); });