This commit is contained in:
aihe 2024-10-09 15:45:34 +08:00
parent f9363cdc94
commit 5a40e1d2c5
2 changed files with 13 additions and 6 deletions

View File

@ -18,8 +18,9 @@ const goto = (url, type = 1)=> {
url = url.replace(`/pages/`, '')
url = url.replace(`pages/`, '')
url = `/pages/${url}`
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
return uni.switchTab({
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
// tabBar 使用 reLaunch切换,防止页面不刷新
return uni.reLaunch({
url
});
}

View File

@ -73,7 +73,7 @@
</view>
</template>
<template v-slot:body>
<view class="pos-abt-all">
<view v-if="!baseLoading" class="pos-abt-all">
<tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
ref="listRef"
>
@ -152,7 +152,8 @@
components: { BpdSendRecieverTmp },
data() {
let { dicData } = this.$store.getters
return {
return {
baseLoading: true,
showCladar: false,
moreSearchModel: {
data: {},
@ -182,11 +183,16 @@
onShareAppMessage() {
},
onShow(){
this.triggerListReload()
this.triggerListReload()
this.initData()
},
onLoad(option) {
this.queryOption = option
this.queryOption = option
if(typeof this.queryOption.orderTab != 'undefined') {
this.searchParam.params.omsOrderTab = this.queryOption.orderTab
}
// 保证参数初始化成功后
this.baseLoading = false
},
onUnload() {
},