uu
This commit is contained in:
parent
7253d40032
commit
1633776a6c
@ -18,7 +18,7 @@ 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.indexOf(url) > -1) {
|
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
|
||||||
return uni.switchTab({
|
return uni.switchTab({
|
||||||
url
|
url
|
||||||
});
|
});
|
||||||
|
|||||||
@ -30,6 +30,7 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<u-col v-for="(mbItem, mIndex) in staticDataList" span="5.8"
|
<u-col v-for="(mbItem, mIndex) in staticDataList" span="5.8"
|
||||||
customStyle="background: linear-gradient(0deg, #1D1818 0%, #0E0708 100%);border-radius: 20rpx;padding: 30rpx;"
|
customStyle="background: linear-gradient(0deg, #1D1818 0%, #0E0708 100%);border-radius: 20rpx;padding: 30rpx;"
|
||||||
|
@click="goto(`${mbItem.url}`)"
|
||||||
>
|
>
|
||||||
<u-row justify="center">
|
<u-row justify="center">
|
||||||
<image mode="aspectFit" style="width: 92rpx;height: 76rpx;" :src="mbItem.icon"/>
|
<image mode="aspectFit" style="width: 92rpx;height: 76rpx;" :src="mbItem.icon"/>
|
||||||
@ -75,8 +76,8 @@
|
|||||||
staticDataList(){
|
staticDataList(){
|
||||||
let { recieveNum, sendNum } = this.staticInfo
|
let { recieveNum, sendNum } = this.staticInfo
|
||||||
let list = [
|
let list = [
|
||||||
{ title: `${sendNum || 0}单`, subTitle: "寄件", icon: getCdnUrl(`mine/jijian.png`), url: '' },
|
{ title: `${sendNum || 0}单`, subTitle: "寄件", icon: getCdnUrl(`mine/jijian.png`), url: 'tabBar/search/search?orderTab=1' },
|
||||||
{ title: `${recieveNum || 0}单`, subTitle: "收件", icon: getCdnUrl(`mine/shjian.png`), url: '' }
|
{ title: `${recieveNum || 0}单`, subTitle: "收件", icon: getCdnUrl(`mine/shjian.png`), url: 'tabBar/search/search?orderTab=2' }
|
||||||
]
|
]
|
||||||
return list
|
return list
|
||||||
},
|
},
|
||||||
|
|||||||
@ -174,7 +174,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
queryOption: {
|
queryOption: {
|
||||||
|
orderTab: '',
|
||||||
},
|
},
|
||||||
resData: { list: [] }
|
resData: { list: [] }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user