|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<!-- 菜单功能 -->
|
|
|
|
<view class="backcor6 all-container pd-main" >
|
|
|
|
<view class="funcss" v-for="(item,index) in funcList" :key="index" @click="jumpdesfun(item)">
|
|
|
|
<image :src="item.img" mode="widthFix" class="funicon"></image>
|
|
|
|
<view class="width100 font14 mart5">{{item.title}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
let app = getApp();
|
|
|
|
export default {
|
|
|
|
data(){
|
|
|
|
return{
|
|
|
|
userInfo: app.globalData.userInfo, //登录信息
|
|
|
|
funcList:[
|
|
|
|
{
|
|
|
|
title: '门店图片',
|
|
|
|
url: './storeImg/storeImg',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '门店产品',
|
|
|
|
url: './storeProduct/storeProduct',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
},{
|
|
|
|
title: '团购产品',
|
|
|
|
url:'./groupProduct/groupProduct',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
},{
|
|
|
|
title: '门店信息',
|
|
|
|
url:'./storeMessage/storeMessage',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
},{
|
|
|
|
title: '分类配置',
|
|
|
|
url:'./categorySetting/categorySetting',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
},{
|
|
|
|
title: '桌台信息',
|
|
|
|
url:'./tableMessage/tableMessage',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
|
|
|
|
},{
|
|
|
|
title: '点餐订单',
|
|
|
|
url:'./scanOrderList/scanOrderList',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
storeId:'',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad(options){
|
|
|
|
if(options.storeId){
|
|
|
|
this.storeId = options.storeId;
|
|
|
|
}
|
|
|
|
|
|
|
|
//门店
|
|
|
|
if(this.userInfo.secUser.objectType == 5){
|
|
|
|
this.funcList=[
|
|
|
|
{
|
|
|
|
title: '门店产品',
|
|
|
|
url: './storeProduct/storeProduct',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
},{
|
|
|
|
title: '分类配置',
|
|
|
|
url:'./categorySetting/categorySetting',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
},{
|
|
|
|
title: '桌台信息',
|
|
|
|
url:'./tableMessage/tableMessage',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
|
|
|
|
},{
|
|
|
|
title: '点餐订单',
|
|
|
|
url:'./scanOrderList/scanOrderList',
|
|
|
|
img: '/static/img/home4.png'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
/**
|
|
|
|
* 跳转功能
|
|
|
|
*/
|
|
|
|
jumpdesfun(item) {
|
|
|
|
let that = this;
|
|
|
|
uni.navigateTo({
|
|
|
|
url: item.url+"?storeId="+that.storeId
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
// 菜单
|
|
|
|
.funcss {
|
|
|
|
width: 33%;
|
|
|
|
height: 100px;
|
|
|
|
border-right: 1px solid #e8e8e8;
|
|
|
|
border-bottom: 1px solid #e8e8e8;
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
text-align: center;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
.funicon {
|
|
|
|
width: 35px;
|
|
|
|
padding-top: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|