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
| <template>
| <u-grid :col="3" @click="gotoPage" border>
| <u-grid-item v-for="item in grid" :index="item[0]">
| <u-icon name="photo" :size="46"></u-icon>
| <view class="grid-text">{{item[0]}}</view>
| </u-grid-item>
| </u-grid>
| </template>
|
| <script>
| export default {
| data() {
| return {
| grid: [
| [
| "巡检首检", "touliao"
| ],
| [
| "采购入库", "touliao"
| ],
| [
| "生产退料", "touliao"
| ],
| [
| "其它入库", "touliao"
| ],
| [
| "生产入库", "touliao"
| ],
| [
| "采购退货", "touliao"
| ],
| [
| "其它出库", "touliao"
| ],
| [
| "调拔出库", "touliao"
| ],
| [
| "调拔入库", "touliao"
| ],
| [
| "生产报工", "touliao"
| ],
| [
| "打印设置", "touliao"
| ],
| [
| "生产备料", "touliao"
| ]
|
| ],
| title: 'Hello'
| }
| },
| onLoad() {
|
| },
| methods: {
| gotoPage(e) {
| console.log(this.grid[e])
| }
| }
| }
| </script>
|
| <style>
| .content {
| display: flex;
| flex-direction: column;
| align-items: center;
| justify-content: center;
| }
|
| .logo {
| height: 200rpx;
| width: 200rpx;
| margin-top: 200rpx;
| margin-left: auto;
| margin-right: auto;
| margin-bottom: 50rpx;
| }
|
| .text-area {
| display: flex;
| justify-content: center;
| }
|
| .title {
| font-size: 36rpx;
| color: #8f8f94;
| }
| </style>
|
|