quanyawei
2023-11-08 e49e0e98c6776900bc3578ed2fe880bfceeb1c2c
pages/index/index.vue
@@ -37,7 +37,6 @@
         //等待登录成功
         await this.$onLaunched
         this.token = uni.getStorageSync('tonken')
         console.log('indextoken', this.token)
         this.loading = false
         this.getData()
         uni.$on('currIndex', data => {
@@ -46,19 +45,22 @@
            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()
               })