Browse Source

no message

featrue/v4.1
xpz2018 5 years ago
parent
commit
81d3569bd4
2 changed files with 1 additions and 11 deletions
  1. 4
      pages/bidding/detail/index.js
  2. 8
      pages/ztbvip/index.js

4
pages/bidding/detail/index.js

@ -21,7 +21,6 @@ Page({
recordInfo: null,
frist: true
},
/**
* 生命周期函数--监听页面加载
*/
@ -33,14 +32,12 @@ Page({
}
event.on('EventMessage', this, this.onEvent)
},
// 事件处理
onEvent: function (message) {
if (message.what == 112 && this.data.biddingInfo && this.data.biddingInfo.id) {
this.fetchInfo(this.data.biddingInfo.id)
}
},
fetchInfo: function(id){
if (this.data.type == 1) {
wx.showLoading({ title: '加载中', mask: true })
@ -76,7 +73,6 @@ Page({
this.fetchBiddingInfo(result.data.biddingActivity.id)
wx.hideLoading()
}).catch(err => {
//异常回调
wx.hideLoading()
})
}

8
pages/ztbvip/index.js

@ -29,9 +29,6 @@ Page({
this.wuxDialog = this.wuxDialog || this.selectComponent('#wux-dialog')
},
onShow: function () {
this.fetchUserInfo()
},
fetchUserInfo: function () {
if(!app.globalData.userInfo){
return
}
@ -46,10 +43,7 @@ Page({
})
})
request.get('/recycle-service/user/get/member-info').then(res => {
this.setData({
vipInfo: res.data,
['vipInfo.memberExpiredAt']: res.data.memberExpiredAt.substring(0, 10)
})
this.setData({ vipInfo: res.data, ['vipInfo.memberExpiredAt']: res.data.memberExpiredAt.substring(0, 10) })
wx.hideLoading()
}).catch(error => {
wx.hideLoading()

Loading…
Cancel
Save