积分商城开放
This commit is contained in:
parent
7fb0266abe
commit
43864f8fa8
@ -67,20 +67,20 @@ export default {
|
||||
methods: {
|
||||
updateActive() {
|
||||
const routeName = this.$route.name
|
||||
if (routeName === 'PointMall') {
|
||||
return
|
||||
}
|
||||
// if (routeName === 'PointMall') {
|
||||
// return
|
||||
// }
|
||||
const tabbar = this.Tabbars.find(item => item.Name === routeName)
|
||||
if (tabbar) {
|
||||
this.DefaultActive = tabbar.Name
|
||||
}
|
||||
},
|
||||
changeActive(name) {
|
||||
if (name === 'PointMall') {
|
||||
this.$showToast('暂未开放');
|
||||
this.DefaultActive = this.$route.name; // 恢复之前的选项
|
||||
return
|
||||
}
|
||||
// if (name === 'PointMall') {
|
||||
// this.$showToast('暂未开放');
|
||||
// this.DefaultActive = this.$route.name; // 恢复之前的选项
|
||||
// return
|
||||
// }
|
||||
this.$router.push({ name })
|
||||
|
||||
},
|
||||
@ -88,9 +88,9 @@ export default {
|
||||
return item.Badge || ''
|
||||
},
|
||||
onTabClick(name) {
|
||||
if (name === 'PointMall') {
|
||||
return
|
||||
}
|
||||
// if (name === 'PointMall') {
|
||||
// return
|
||||
// }
|
||||
if (this.$route.name === name) {
|
||||
// 当前路由,双击刷新
|
||||
// this.$router.replace({ name })
|
||||
|
||||
@ -14,9 +14,8 @@
|
||||
|
||||
<div class="contaiar">
|
||||
<div class="tabs">
|
||||
<van-tabs style="max-width: 90%;" background="transparent" line-height="0.8vw" line-width="9.33vw;"
|
||||
v-model:active="active" :ellipsis="false" color="#ca2904" title-active-color="#ca2904"
|
||||
title-inactive-color="#4e4e4e">
|
||||
<van-tabs background="transparent" line-height="0.8vw" line-width="9.33vw" v-model:active="active"
|
||||
:ellipsis="false" color="#ca2904" title-active-color="#ca2904" title-inactive-color="#4e4e4e">
|
||||
<van-tab title="全部" name=""></van-tab>
|
||||
<van-tab v-for="i in tabs" :name="i.id" :title="i.name"></van-tab>
|
||||
</van-tabs>
|
||||
@ -151,6 +150,7 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 3.33vw;
|
||||
/* padding: 0 8vw 0 0; */
|
||||
margin-top: 4vw;
|
||||
position: relative;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user