Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
459843ada0
2 changed files with 6 additions and 0 deletions
  1. 3
      pages/mall/fragment/index.js
  2. 3
      pages/moment/attention/index.js

3
pages/mall/fragment/index.js

@ -81,6 +81,9 @@ Component({
} }
}, },
onEvent: function (message) { onEvent: function (message) {
if(!this.data.firstShow){
return
}
console.log('mall>>fragment>>onEvent', message) console.log('mall>>fragment>>onEvent', message)
if(message.what == 888){ if(message.what == 888){
this.initLogin() this.initLogin()

3
pages/moment/attention/index.js

@ -49,6 +49,9 @@ Component({
this.firstShow = true this.firstShow = true
}, },
onEvent: function (message) { onEvent: function (message) {
if(!this.firstShow){
return
}
if(message.what == 888){ if(message.what == 888){
if(!app.globalData.userInfo){ if(!app.globalData.userInfo){
this.data.dataIndex = 0 this.data.dataIndex = 0

Loading…
Cancel
Save