修改
This commit is contained in:
@@ -80,9 +80,18 @@
|
||||
<view class="cu-tag badge" v-if="item.badge != 0">
|
||||
<block v-if="item.badge != 1">{{ item.badge > 99 ? '99+' : item.badge }}</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<text>{{ item.name }}</text>
|
||||
</view>
|
||||
<view class="cu-item" @tap="routerTo('/pages/station-price/station-price')">
|
||||
<view :class="['cuIcon-' + cuIconList[1].cuIcon, 'text-' + cuIconList[1].color]" class="text-sl">
|
||||
<view class="cu-tag badge" v-if="cuIconList[1].badge != 0">
|
||||
<block v-if="cuIconList[1].badge != 1">
|
||||
{{ cuIconList[1].badge > 99 ? '99+' : cuIconList[1].badge }}</block>
|
||||
</view>
|
||||
</view>
|
||||
<text>{{ cuIconList[1].name }}</text>
|
||||
</view>
|
||||
<!-- <view class="cu-item" @tap="routerTo('/pages/TransactionStatistics/TransactionStatistics')">
|
||||
<view :class="['cuIcon-' + 'new', 'text-' + cuIconList[0].color]" class="text-sl">
|
||||
<view class="cu-tag badge" v-if="cuIconList[0].badge != 0">
|
||||
@@ -204,6 +213,13 @@
|
||||
badge: 0,
|
||||
name: '油站信息'
|
||||
},
|
||||
{
|
||||
cuIcon: 'moneybag',
|
||||
path: '/pages/station-info/station-info',
|
||||
color: 'yellow',
|
||||
badge: 0,
|
||||
name: '促销优惠'
|
||||
},
|
||||
{
|
||||
cuIcon: 'new',
|
||||
path: '/packageChart/operation-analysis/operation-analysis',
|
||||
@@ -297,13 +313,13 @@
|
||||
},
|
||||
changeMenuList(data){ //这里是切换处 更新权限menus处
|
||||
const Menus =data
|
||||
//console.log('这里是接收menus处',Menus)
|
||||
console.log(data,'1111111111111111111111111111111111111111')
|
||||
console.log('这里是接收menus处',Menus)
|
||||
let menusList = []
|
||||
Menus.forEach((item,index,Menus)=>{
|
||||
if(item.roleName != 'ROOT' ){
|
||||
// this.Splicing(item)
|
||||
menusList.push(this.Splicing(item)) //根据menus做处理
|
||||
|
||||
}
|
||||
})
|
||||
uni.setStorageSync('menusChangeList',menusList)
|
||||
|
||||
Reference in New Issue
Block a user