wangfukang 1 month ago
parent
commit
627dadb39c
  1. 19
      pages/index/index.vue

19
pages/index/index.vue

@ -915,7 +915,17 @@
const tabIndex = this.pendingTabIndex
this.pendingTabIndex = null
this.$nextTick(() => {
this.changeIndex(tabIndex)
Promise.resolve(this.refreshTabCounts()).then(() => {
this.changeIndex(tabIndex)
})
})
} else {
this.$nextTick(() => {
Promise.resolve(this.refreshTabCounts()).then(() => {
if (this.currentIndex == 4 && this.$refs.myCenterPage) {
this.$refs.myCenterPage.init()
}
})
})
}
},
@ -926,6 +936,12 @@
}, 500);
},
methods: {
refreshTabCounts() {
if (this.$refs.tabBar && this.$refs.tabBar.getWorkerCounts) {
return this.$refs.tabBar.getWorkerCounts()
}
return Promise.resolve()
},
runHomeInit() {
//
this.indexInit()
@ -1013,7 +1029,6 @@
this.searchForm.kuaidiData = [];
this.getDelivery();
this.getShopArea();
this.$refs.tabBar.getWorkerCounts()
}
// sticky offsetstatusBarHeight + 40px
const info = uni.getSystemInfoSync();

Loading…
Cancel
Save