增加代客下单权限校验
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
import {
|
import {
|
||||||
$adList
|
$adList
|
||||||
} from '@/http/apiManager.js';
|
} from '@/http/apiManager.js';
|
||||||
|
import {hasPermission} from '@/commons/utils/hasPermission.js'
|
||||||
uni.hideTabBar()
|
uni.hideTabBar()
|
||||||
onLoad((options) => {});
|
onLoad((options) => {});
|
||||||
// 导航列表
|
// 导航列表
|
||||||
@@ -61,6 +62,13 @@
|
|||||||
title: '代客下单',
|
title: '代客下单',
|
||||||
icon: '/static/indexImg/icon-substitute-ordering.svg',
|
icon: '/static/indexImg/icon-substitute-ordering.svg',
|
||||||
pageUrl: 'PAGES_CREATE_ORDER',
|
pageUrl: 'PAGES_CREATE_ORDER',
|
||||||
|
clickFunc:()=>{
|
||||||
|
hasPermission('允许下单').then(res=>{
|
||||||
|
if(res){
|
||||||
|
go.to('PAGES_CREATE_ORDER')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '桌台',
|
title: '桌台',
|
||||||
|
|||||||
Reference in New Issue
Block a user