fix(cl-tabbar): 优化skin添加默认值
This commit is contained in:
parent
f090c5dc63
commit
d90402bc38
|
@ -7,7 +7,7 @@
|
|||
<template>
|
||||
<view>
|
||||
<!-- v-if="user.skin == 0" -->
|
||||
<u-tabbar :value="current ? current : 0" @change="tabbarChange" :fixed="true" :placeholder="false"
|
||||
<u-tabbar v-if="systemSkin === 0" :value="current ? current : 0" @change="tabbarChange" :fixed="true" :placeholder="false"
|
||||
:border="false" :safeAreaInsetBottom="true" inactiveColor="#666666" activeColor="#333333">
|
||||
<u-tabbar-item :text="'首页'">
|
||||
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/one1.png"></image>
|
||||
|
@ -31,7 +31,7 @@
|
|||
<image class="u-page__item__slot-icon" slot="inactive-icon" src="@/static/images/fore2.png"></image>
|
||||
</u-tabbar-item>
|
||||
</u-tabbar>
|
||||
<!-- <u-tabbar :value="current ? current : 0" class="greenEd" v-if="user.skin == 2" @change="tabbarChange" :fixed="true"
|
||||
<u-tabbar :value="current ? current : 0" class="greenEd" v-if="systemSkin === 2" @change="tabbarChange" :fixed="true"
|
||||
:placeholder="false" :border="false" :safeAreaInsetBottom="true" inactiveColor="#666666" activeColor="#333333">
|
||||
<u-tabbar-item :text="'首页'">
|
||||
<image class="u-page__item__slot-icon1" slot="active-icon" src="@/static/images/one11.jpg"></image>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<image class="u-page__item__slot-icon1" slot="active-icon" src="@/static/images/fore11.jpg"></image>
|
||||
<image class="u-page__item__slot-icon1" slot="inactive-icon" src="@/static/images/fore11.jpg"></image>
|
||||
</u-tabbar-item>
|
||||
</u-tabbar> -->
|
||||
</u-tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -93,6 +93,9 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
...mapGetters(['shopCarLength', 'user']),
|
||||
systemSkin() {
|
||||
return this.user.skin || 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
tabbarChange(e) {
|
||||
|
|
Loading…
Reference in New Issue