index.vue
2.37 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<template>
<view class="menu">
<view class="menu-box u-f u-f-row u-f-wrap u-f-jcsb menu-1">
<view class="item-box u-f u-f-column u-f-jcc u-f-aic" v-for="(item,i) in dataList" :key="i">
<view class="num">
{{item.text}}
</view>
<view class="tit u-f u-f-jcc u-f-aic">
<text>{{item.tit}}</text>
</view>
</view>
</view>
<view class="menu-box menu-2 u-f u-f-row u-f-wrap u-jcsb">
<view class="item-box content" v-for="(item,i) in menuList" :key="i">
<image :src="item.img" mode=""></image>
<view class="tit">
<text>{{item.tit}}</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
dataList: [
{
text: '0',
tit: '今日任务'
},
{
text: '0',
tit: '今日入库数'
},
{
text: '0',
tit: '今日出库数'
}
],
menuList: [
{
img: '/static/img/index/receipt.png',
tit: '入库'
},
{
img: '/static/img/index/shipment.png',
tit: '出库'
},
{
img: '/static/img/index/task.png',
tit: '任务'
},
{
img: '/static/img/index/inventory.png',
tit: '库存'
},
{
img: '/static/img/index/check.png',
tit: '盘点'
},
{
img: '/static/img/index/material.png',
tit: '物料'
},
],
}
},
onLoad() {
},
mounted() {
},
methods: {
//搜索
goSearch(e) {
console.log(e)
uni.navigateTo({
url: '/pages/search/search?type=home'
})
}
}
}
</script>
<style lang="scss" scoped>
// page {
// background-color: #fff;
// }
.menu {
margin-top: 2rpx;
.menu-box {
background: #ffffff;
padding: 24rpx 30rpx;
.item-box {
width: 33.33333%;
&.content {
margin: 40rpx 0rpx 60rpx;
text-align: center;
}
image {
width: 80rpx;
height: 80rpx;
}
.num {
font-size: 32rpx;
}
.tit {
font-size: 32rpx;
margin-top: 12rpx;
color: #333333;
padding: 4rpx 0rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.active {
color: #ffffff;
background-color: #999999;
border-radius: 120rpx;
}
}
}
.menu-2 {
border-top: 40rpx solid #f2f2f2;
}
.menu-1 {
border-top: 2rpx solid #f2f2f2;
}
}
</style>