|
|
|
@ -22,11 +22,13 @@ Component({ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onFlodTap: function(){ |
|
|
|
if(this.data.item.isCooperate === 1) { |
|
|
|
if(!app.globalData.userInfo || !app.globalData.userInfo.isVIP){ |
|
|
|
event.emit('EventMessage', {what: 223, desc: 'Logout'}) |
|
|
|
return |
|
|
|
} |
|
|
|
if(!app.globalData.userInfo){ |
|
|
|
wx.navigateTo({ url: '/pages/login/index' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if(this.data.item.isCooperate === 1 && !app.globalData.userInfo.isVIP) { |
|
|
|
event.emit('EventMessage', {what: 223, desc: 'Logout'}) |
|
|
|
return |
|
|
|
} |
|
|
|
this.setData({ unflod: !this.data.unflod }) |
|
|
|
if(!this.data.itemList.length && this.data.unflod){ |
|
|
|
|