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
| <template>
| <view>
| <view class="home-nav">
| <view class="home-nav-item" v-for="(item,index) in navs">
| <view class="nav-icon">
| <uni-icons :type="item.icon" size="60"></uni-icons>
| </view>
| <view class="nav-text">
| {{item.text}}
| </view>
|
| </view>
| </view>
| </view>
| </template>
|
| <script>
| export default{
| data() {
| return {
| navs:[
| {
| text:'入库',
| icon:'download' ,
| },
| {
| text:'出库',
| icon:'upload' ,
| },
| {
| text:'盘点',
| icon:'compose' ,
| },
| {
| text:'退出登录',
| icon:'close' ,
| },
| ]
| }
| },
| methods: {
|
| }
| }
| </script>
|
| <style>
| .home-nav {
| width: 100%;
| }
| .home-nav-item {
| width: 33.33%;
| height: 0;
| padding-bottom: 33.33%;
| margin-top: 1%;
| border-bottom: 1px solid #cbcbcb;
| border-right: 1px solid #cbcbcb;
| display: inline-block;
| }
| .home-nav-item:first-child {
|
| }
| .nav-icon {
| width: 60%;
| height: 0;
| padding-bottom: 60%;
| margin: 10% auto;
| text-align: center;
| }
| .nav-text {
| width: 100%;
| height: 0;
| margin-bottom: 20%;
| text-align: center;
| }
| </style>
|
|