From 0a24ffeb3eff074c8f11e9f94fdf2c2cb4929799 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 10 Nov 2023 13:08:29 +0800
Subject: [PATCH] fix:小程序详情修改
---
pages/index/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 603ec4c..0c2d839 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -27,18 +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('������������index���������', this.token)
this.loading = false
- this.getData()
uni.$on('currIndex', data => {
console.log('currIndexOn', data)
this.currIndex = data.data.index
@@ -49,6 +51,7 @@
},
methods: {
getData() {
+ console.log('������������')
this.$refs.agencyPage.getContaminateList()
},
handleChangeTabe(index) {
--
Gitblit v1.8.0