quanyawei
2023-11-10 0a24ffeb3eff074c8f11e9f94fdf2c2cb4929799
pages/index/index.vue
@@ -27,19 +27,20 @@
         myInfor,
         tabBar
      },
      onLoad(option) {},
      async onLoad() {
         await this.$onLaunched
         this.getData()
      },
      onReady() {},
      onShow() {
         this.currIndex = '0'
         this.showTabBar = true
      },
      async mounted() {
      mounted() {
         //等待登录成功
         await this.$onLaunched
         this.token = uni.getStorageSync('tonken')
         console.log('indextoken', this.token)
         console.log('已经进了index页面了', this.token)
         this.loading = false
         this.getData()
         uni.$on('currIndex', data => {
            console.log('currIndexOn', data)
            this.currIndex = data.data.index
@@ -50,7 +51,7 @@
      },
      methods: {
         getData() {
            console.log('indextokengetContaminateList')
            console.log('获取数据')
            this.$refs.agencyPage.getContaminateList()
         },
         handleChangeTabe(index) {