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