| */ | */ | ||||
| methods: { | methods: { | ||||
| tabChange(e) { | 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; | const url = e.detail.item.pagePath; | ||||
| wx.redirectTo({ url }); | wx.redirectTo({ url }); | ||||
| } | } |
| }, | }, | ||||
| onShow() { | onShow() { | ||||
| if (!app.globalData.customerId) { | |||||
| app.goLogin(); | |||||
| return | |||||
| } | |||||
| const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null; | const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null; | ||||
| if (businessCommunicationCustomer) { | if (businessCommunicationCustomer) { | ||||
| this.setData({ | this.setData({ |
| } | } | ||||
| this.getTags(); | this.getTags(); | ||||
| }, | }, | ||||
| onShow(){ | |||||
| if (!app.globalData.customerId) { | |||||
| app.goLogin(); | |||||
| return | |||||
| } | |||||
| }, | |||||
| // 输入框输入 | // 输入框输入 | ||||
| textareaInput(e) { | textareaInput(e) { | ||||
| let value = e.detail.value; | let value = e.detail.value; |