From 105d1e8d9225c1000c53b924bd9a3ae076f64d09 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 16 Nov 2023 15:55:53 +0800
Subject: [PATCH] fix:添加已作废
---
pages/index/index.vue | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index bc74e39..0836458 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -27,38 +27,47 @@
myInfor,
tabBar
},
- onLoad(option) {},
+ async onLoad() {
+ await this.$onLaunched
+ this.getData()
+ },
onReady() {},
onShow() {
this.currIndex = '0'
this.showTabBar = true
},
- async mounted() {
+ onReachBottom() {
+ //������������������������������������������
+ this.$refs.agencyPage.onBottom()
+ },
+ 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
this.showTabBar = data.data.showTabBar
- this.$refs.agencyPage.getContaminateList()
+ this.$refs.agencyPage.setData()
})
+ this.share.title = this.title
},
methods: {
getData() {
- console.log('indextokengetContaminateList')
- this.$refs.agencyPage.getContaminateList()
+ console.log('������������')
+ this.$refs.agencyPage.setData()
},
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()
})
--
Gitblit v1.8.0