StoreControl.vue
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<template>
<view class="function_card">
<view class="col-3d f-28 l-h-38 f-w-500 px-20 mb-20">门店管理</view>
<view class="function_list">
<view class="function_item" v-for="(item, index) in myMenu" :key="index" @click="goRouter(item.routerPath)">
<view class="list_img">
<image class="list_icon" :src="item.icon" mode="widthFix"></image>
</view>
<text class="col-3d f-24 l-h-32 m-top10">{{ item.text }}</text>
</view>
</view>
</view>
</template>
<script>
import Script from '@/static/myImg/script.png'
import Store from '@/static/myImg/store.png'
import Employee from '@/static/myImg/employee.png'
import Vip from '@/static/myImg/vip.png'
export default {
data(){
return {
myMenu: [
{ text: '剧本/主题', icon: Script, routerPath: '/pages_my/ScriptControl/ScriptControl' },
{ text: '门店管理', icon: Store, routerPath: '/pages_my/courtManage/courtManage' },
{ text: '员工管理', icon: Employee, routerPath: '/pages_my/employeeControl/employeeControl'},
{ text: '会员管理', icon: Vip, routerPath: '/pages_my/myVip/myVip'}
]
}
},
methods: {
goRouter(path){
uni.navigateTo({
url: path
})
}
}
}
</script>
<style scoped lang="scss">
.function_card{
background: #FFFFFF;
margin: 20rpx 30rpx 0;
border-radius: 12rpx;
padding: 20rpx 0;
.function_title{
line-height: 84rpx;
height: 84rpx;
padding-left: 36rpx;
font-size: 28rpx;
color: #333;
border-bottom: 2rpx solid #E1E1E1;
box-sizing: border-box;
}
.function_list{
display: flex;
gap: 28rpx;
flex-wrap: wrap;
padding: 22rpx 30rpx;
.function_item{
width: calc((100% - 90rpx) / 4);
display: flex;
flex-direction: column;
align-items: center;
font-size: 28rpx;
line-height: 40rpx;
color: #3d3d3d;
.list_img{
display: flex;
align-items: center;
justify-content: center;
width: 48rpx;
height: 48rpx;
margin-bottom: 14rpx;
.list_icon{
width: 100%;
}
}
}
}
}
</style>