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
| <template>
| <view class="content">
| <view class="header">智云L-MES制造执行系统</view>
| <view class="mains">
| <view class="box" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)">
| <image :src="item.img" mode=""></image>
| <view class="texts">
| {{item.text}}
| </view>
| </view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
| itemData:[{
| img:'../../static/icon0.png',
| text:'报表中心',
| url:'/pages/shebeilvli/EquipFileBillResume',
| id:0
| },{
| img:'../../static/icon1.png',
| text:'设备档案',
| url:'/pages/shebeidangan/Gy_EquipFileMainBillList',
| id:1
| },{
| img:'../../static/icon2.png',
| text:'设备保养计划单',
| url:'/pages/baoyangjihua/Sb_EquipMaintainPlanList',
| id:2
| },{
| img:'../../static/icon3.png',
| text:'设备保养记录单',
| url:'/pages/baoyangjilu/Sb_EquipMaintainRuleList',
| id:3
| },{
| img:'../../static/icon4.png',
| text:'设备故障登记表',
| url:'/pages/guzhangdengji/EqpConkBookBillList',
| id:4
| },{
| img:'../../static/icon5.png',
| text:'设备维修记录单',
| url:'/pages/shebeiweixiu/SbEqpMaintenanceBillList',
| id:5
| }]
| }
| },
| onLoad() {
|
| },
| methods: {
| toUrl(item){
| if(item.id == 0 || item.id == 1){
| uni.switchTab({
| url:item.url
| })
| }else{
| uni.navigateTo({
| url:item.url
| })
| }
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .header{
| width: 750rpx;
| background: linear-gradient(0deg, #71AFFC 0%, #3A78FF 100%);
| font-size: 47rpx;
| font-weight: bold;
| color: #FFFFFF;
| text-align: center;
| padding: 128rpx 0 96rpx 0;
| }
| .mains{
| width: 720rpx;
| margin: 0 auto;
| display: flex;
| flex-wrap: wrap;
| margin-top: 10rpx;
| .box{
| width: 25%;
| margin-top: 80rpx;
| text-align: center;
| image{
| width: 140rpx;
| height: 140rpx;
| }
| .texts{
| font-size: 25rpx;
| font-weight: normal;
| color: #333333;
| line-height: 38rpx;
| margin-top: 20rpx;
| }
| }
| }
| </style>
|
|