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 = url.replace(`pages/`, '') url = url.replace(`pages/`, '')
url = `/pages/${url}` url = `/pages/${url}`
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) { if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
return uni.switchTab({ // tabBar 使用 reLaunch切换,防止页面不刷新
return uni.reLaunch({
url url
}); });
} }

View File

@ -73,7 +73,7 @@
</view> </view>
</template> </template>
<template v-slot:body> <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" <tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
ref="listRef" ref="listRef"
> >
@ -152,7 +152,8 @@
components: { BpdSendRecieverTmp }, components: { BpdSendRecieverTmp },
data() { data() {
let { dicData } = this.$store.getters let { dicData } = this.$store.getters
return { return {
baseLoading: true,
showCladar: false, showCladar: false,
moreSearchModel: { moreSearchModel: {
data: {}, data: {},
@ -182,11 +183,16 @@
onShareAppMessage() { onShareAppMessage() {
}, },
onShow(){ onShow(){
this.triggerListReload() this.triggerListReload()
this.initData() this.initData()
}, },
onLoad(option) { 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() { onUnload() {
}, },