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

8
pages/ztbvip/index.js

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

Loading…
Cancel
Save