| @@ -48,6 +48,15 @@ Component({ | |||
| */ | |||
| methods: { | |||
| tabChange(e) { | |||
| if (e.detail.item.text == "发布需求" || e.detail.item.text == "消息") { | |||
| if (!app.globalData.customerId) { | |||
| app.goLogin(); | |||
| this.setData({ | |||
| currentIndex: this.data.currentIndex | |||
| }) | |||
| return | |||
| } | |||
| } | |||
| const url = e.detail.item.pagePath; | |||
| wx.redirectTo({ url }); | |||
| } | |||
| @@ -24,10 +24,7 @@ Page({ | |||
| }, | |||
| onShow() { | |||
| if (!app.globalData.customerId) { | |||
| app.goLogin(); | |||
| return | |||
| } | |||
| const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null; | |||
| if (businessCommunicationCustomer) { | |||
| this.setData({ | |||
| @@ -44,12 +44,6 @@ Page({ | |||
| } | |||
| this.getTags(); | |||
| }, | |||
| onShow(){ | |||
| if (!app.globalData.customerId) { | |||
| app.goLogin(); | |||
| return | |||
| } | |||
| }, | |||
| // 输入框输入 | |||
| textareaInput(e) { | |||
| let value = e.detail.value; | |||