| | |
| | | //等待登录成功 |
| | | await this.$onLaunched |
| | | this.token = uni.getStorageSync('tonken') |
| | | console.log('indextoken', this.token) |
| | | this.loading = false |
| | | this.getData() |
| | | uni.$on('currIndex', data => { |
| | |
| | | this.showTabBar = data.data.showTabBar |
| | | this.$refs.agencyPage.getContaminateList() |
| | | }) |
| | | this.share.title = this.title |
| | | }, |
| | | methods: { |
| | | getData() { |
| | | console.log('indextokengetContaminateList') |
| | | this.$refs.agencyPage.getContaminateList() |
| | | }, |
| | | handleChangeTabe(index) { |
| | | if (index === 2) { |
| | | this.isShow = false |
| | | this.title = '我的' |
| | | this.share.title = this.title |
| | | } |
| | | if (index === 0) { |
| | | this.isShow = true |
| | | this.title = '首页' |
| | | this.share.title = this.title |
| | | this.$nextTick(() => { |
| | | this.getData() |
| | | }) |