|
@@ -3,7 +3,7 @@
|
|
|
<view class="seat"></view>
|
|
<view class="seat"></view>
|
|
|
<view class="tabbar flex-n fac fja">
|
|
<view class="tabbar flex-n fac fja">
|
|
|
<view class="item" :class="$store.state.tabbarRouter==item.router?'choose':''" :key="index"
|
|
<view class="item" :class="$store.state.tabbarRouter==item.router?'choose':''" :key="index"
|
|
|
- v-for="(item,index) in menuList" @click="gotoPage(item.router)">
|
|
|
|
|
|
|
+ v-for="(item,index) in menuList" @click="gotoPage(item.router)" v-if="!item.hide">
|
|
|
<image class="icon" :src="$store.state.tabbarRouter==item.router?item.selecetedIcon:item.icon"></image>
|
|
<image class="icon" :src="$store.state.tabbarRouter==item.router?item.selecetedIcon:item.icon"></image>
|
|
|
<view class="text">{{item.name}}</view>
|
|
<view class="text">{{item.name}}</view>
|
|
|
<view class="num" v-if="item.router=='remind/index/index'&&askOrderCount>0">{{askOrderCount}}</view>
|
|
<view class="num" v-if="item.router=='remind/index/index'&&askOrderCount>0">{{askOrderCount}}</view>
|
|
@@ -30,24 +30,28 @@
|
|
|
icon: require('../../static/tabbar-1-0.png'),
|
|
icon: require('../../static/tabbar-1-0.png'),
|
|
|
selecetedIcon: require('../../static/tabbar-1-1.png'),
|
|
selecetedIcon: require('../../static/tabbar-1-1.png'),
|
|
|
name: '提醒',
|
|
name: '提醒',
|
|
|
|
|
+ hide:true,
|
|
|
router: 'remind/index/index'
|
|
router: 'remind/index/index'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: require('../../static/tabbar-2-0.png'),
|
|
icon: require('../../static/tabbar-2-0.png'),
|
|
|
selecetedIcon: require('../../static/tabbar-2-1.png'),
|
|
selecetedIcon: require('../../static/tabbar-2-1.png'),
|
|
|
name: '预订',
|
|
name: '预订',
|
|
|
|
|
+ hide:true,
|
|
|
router: 'book/index/index'
|
|
router: 'book/index/index'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: require('../../static/tabbar-3-0.png'),
|
|
icon: require('../../static/tabbar-3-0.png'),
|
|
|
selecetedIcon: require('../../static/tabbar-3-1.png'),
|
|
selecetedIcon: require('../../static/tabbar-3-1.png'),
|
|
|
name: '结算',
|
|
name: '结算',
|
|
|
|
|
+ hide:true,
|
|
|
router: 'settlement/index/index'
|
|
router: 'settlement/index/index'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: require('../../static/tabbar-4-0.png'),
|
|
icon: require('../../static/tabbar-4-0.png'),
|
|
|
selecetedIcon: require('../../static/tabbar-4-1.png'),
|
|
selecetedIcon: require('../../static/tabbar-4-1.png'),
|
|
|
name: '我的',
|
|
name: '我的',
|
|
|
|
|
+ hide:false,
|
|
|
router: 'center/index/index'
|
|
router: 'center/index/index'
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
@@ -78,30 +82,33 @@
|
|
|
menu.push(res.data.list[i].app_menu_id);
|
|
menu.push(res.data.list[i].app_menu_id);
|
|
|
}
|
|
}
|
|
|
console.log(menu)
|
|
console.log(menu)
|
|
|
- if (menu.indexOf('101') == -1 && menu.indexOf('102') == -1) {
|
|
|
|
|
- for (var i = 0, len = this.menuList.length; i < len; i++) {
|
|
|
|
|
- if (this.menuList[i].name == '提醒') {
|
|
|
|
|
- this.menuList.splice(i, 1);
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (menu.indexOf('101') != -1 || menu.indexOf('102') != -1) {
|
|
|
|
|
+ this.$set(this.menuList[0],'hide',false);
|
|
|
|
|
+ // for (var i = 0, len = this.menuList.length; i < len; i++) {
|
|
|
|
|
+ // if (this.menuList[i].name == '提醒') {
|
|
|
|
|
+ // this.menuList.splice(i, 1);
|
|
|
|
|
+ // break;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
console.log('42343')
|
|
console.log('42343')
|
|
|
- if (menu.indexOf('103') == -1) {
|
|
|
|
|
- for (var i = 0, len = this.menuList.length; i < len; i++) {
|
|
|
|
|
- if (this.menuList[i].name == '预订') {
|
|
|
|
|
- this.menuList.splice(i, 1);
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (menu.indexOf('103') != -1) {
|
|
|
|
|
+ this.$set(this.menuList[1],'hide',false);
|
|
|
|
|
+ // for (var i = 0, len = this.menuList.length; i < len; i++) {
|
|
|
|
|
+ // if (this.menuList[i].name == '预订') {
|
|
|
|
|
+ // this.menuList.splice(i, 1);
|
|
|
|
|
+ // break;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
- if (menu.indexOf('104') == -1 && menu.indexOf('105') == -1) {
|
|
|
|
|
- for (var i = 0, len = this.menuList.length; i < len; i++) {
|
|
|
|
|
- if (this.menuList[i].name == '结算') {
|
|
|
|
|
- this.menuList.splice(i, 1);
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (menu.indexOf('104') != -1|| menu.indexOf('105') != -1) {
|
|
|
|
|
+ this.$set(this.menuList[2],'hide',false);
|
|
|
|
|
+ // for (var i = 0, len = this.menuList.length; i < len; i++) {
|
|
|
|
|
+ // if (this.menuList[i].name == '结算') {
|
|
|
|
|
+ // this.menuList.splice(i, 1);
|
|
|
|
|
+ // break;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
// menuList
|
|
// menuList
|
|
|
console.warn('431344')
|
|
console.warn('431344')
|