diff --git a/pages/coupons/index/index.js b/pages/coupons/index/index.js index b3783ae..f46b55b 100644 --- a/pages/coupons/index/index.js +++ b/pages/coupons/index/index.js @@ -30,6 +30,7 @@ Page({ this.getList(0) }, getList(key) { + var that = this Http.get({ url: config.api.couponOrderList, data: { @@ -43,7 +44,7 @@ Page({ res.data.list.map(file => { file.expiredTime = format.formatTime(file.expiredTime, 'yyyy-MM-dddd hh:mm:ss') }) - this.setData({ + that.setData({ list: res.data.list }) },function(error){