uu
This commit is contained in:
parent
43ff5485b0
commit
0931350bf4
@ -24,7 +24,8 @@ const goto = (url, type = 1)=> {
|
||||
url = url.replace(`pages/`, '')
|
||||
url = `/pages/${url}`
|
||||
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
|
||||
return uni.switchTab({
|
||||
// tabBar 使用 reLaunch切换,防止页面不刷新
|
||||
return uni.reLaunch({
|
||||
url
|
||||
});
|
||||
}
|
||||
|
||||
@ -38,6 +38,7 @@
|
||||
<u-row justify="center" align="center">
|
||||
<u-col v-for="(tjItem, ijIndex) in tjList" span="3" align="center"
|
||||
:custom-style="'border-right: 2rpx solid #E8E8E8;' + (ijIndex+1 == tjList.length ?'border-right:0;': '')"
|
||||
@click="goto(tjItem.url)"
|
||||
>
|
||||
<u-text align="center" color="#B12D29" :bold="true" size="36rpx" :text="tjItem.value"></u-text>
|
||||
<u-text align="center" color="#666" size="24" :text="tjItem.title"></u-text>
|
||||
@ -119,8 +120,8 @@
|
||||
tjList(){
|
||||
let { orderStat } = this.staticInfo
|
||||
let list = [
|
||||
{ title: '未接单', value: orderStat.waitTakeNum, key: "" },
|
||||
{ title: '已接收', value: orderStat.takeNum, key: "" },
|
||||
{ title: '未接单', value: orderStat.waitTakeNum, key: "", url: 'tabBar/order/order?waybillStatType=1' },
|
||||
{ title: '已接收', value: orderStat.takeNum, key: "", url: 'tabBar/order/order?waybillStatType=2' },
|
||||
{ title: '派送中', value: orderStat.dispNum, key: "" },
|
||||
{ title: '已签收', value: orderStat.signedNum, key: "" }
|
||||
]
|
||||
|
||||
@ -55,7 +55,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" :autoReload="false" @onListReload="listenListReload">
|
||||
<view class="pgb-cont">
|
||||
@ -175,6 +175,7 @@
|
||||
dicData
|
||||
} = this.$store.getters
|
||||
return {
|
||||
baseLoading: true,
|
||||
authCodeEnum,
|
||||
...JSON.parse(JSON.stringify({
|
||||
dateRangeList
|
||||
@ -221,6 +222,11 @@
|
||||
},
|
||||
onLoad(option) {
|
||||
this.queryOption = option
|
||||
if(typeof this.queryOption.waybillStatType != 'undefined') {
|
||||
this.searchParam.params.waybillStatType = this.queryOption.waybillStatType
|
||||
}
|
||||
// 保证参数初始化成功后
|
||||
this.baseLoading = false
|
||||
},
|
||||
onUnload() {},
|
||||
methods: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user