wtt
2026-01-19 30190a149dfcf465104d08c54ec4e2d4d8074b17
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<template>
    <view class="content">
        <image class="bg-img" src="../../static/minebg.jpg"></image>
        <view class="mains">
            <view class="user">
                <image src="../../static/logo.png" mode=""></image>
                <view class="name">{{userInfo.HKeeper?userInfo.HKeeper:'云络-LIMS企业用户'}}</view>
                <view class="other">
                    <view class="texta">欢迎使用</view>
                    <view>智云L-MES制造执行系统</view>
                </view>
            </view>
            <view style="width: 100%;height: 20rpx;"></view>
            <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>
                <uni-icons type="forward" color="#888" style="position: absolute;right: 70rpx;" size="18"></uni-icons>
            </view>
            
            <view class="btn" @tap="logout">退 出 登 录</view>
        </view>
    </view>
</template>
 
<script>
    import { getUserInfo } from "@/utils/auth.js";
    export default {
        data() {
            return {
                userInfo:getUserInfo(),
                serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
                
              itemData:[{
                  img:'../../static/icon00.png',
                  text:'报表中心',
                  url:'/pages/shebeilvli/EquipFileBillResume',
                  id:0
              },{
                  img:'../../static/icon01.png',
                  text:'设备档案',
                  url:'/pages/shebeidangan/Gy_EquipFileMainBillList',
                  id:1
              },{
                  img:'../../static/icon06.png',
                  text:'委外工序发出单',
                  url:'/pages/weiwaigxIn/Cj_StationEntrustInBillList',
                  id:2
              },{
                  img:'../../static/icon07.png',
                  text:'委外工序接收单',
                  url:'/pages/weiwaigxIn/Cj_StationEntrustInBillList',
                  id:3
              },{
                  img:'../../static/icon09.png',
                  text:'工序进站接收单',
                  url:'/pages/gongxuIn/Cj_StationInBillList',
                  id:4
              },{
                  img:'../../static/icon08.png',
                  text:'工序出站汇报单',
                  url:'/pages/gongxuOut/Cj_StationOutBillList',
                  id:5
              }]
            }
        },
        onLoad() {
            console.log(this.userInfo)
        },
        methods: {
            toUrl(item){
                if(item.id == 0 || item.id == 1){
                    uni.switchTab({
                        url:item.url
                    })
                }else{
                    uni.navigateTo({
                        url:item.url
                    })
                }
            },
            logout(){
                uni.showModal({
                    title: '提示',
                    content: '是否确认退出登录',
                    success: function (res) {
                        if (res.confirm) {
                            console.log('用户点击确定');
                            uni.reLaunch({
                                url:'/pages/index/login'
                            })
                        } else if (res.cancel) {
                            console.log('用户点击取消');
                        }
                    }
                });
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    page{
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
.bg-img{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
.mains{
    width: 720rpx;
    margin: 10rpx auto;
    display: flex;
    flex-wrap: wrap;
    .user{
        width: 660rpx;
        margin: 80rpx auto 0 auto;
        background: #FFFFFF;
        box-shadow: 0rpx 10rpx 54rpx 0rpx rgba(112,112,112,0.24);
        border-radius: 10rpx;
        position: relative;
        text-align: center;
        image{
            width: 130rpx;
            height: 130rpx;
            border-radius: 100%;
            margin-top: 40rpx;
            background-color: #f0f3f7;
        }
        .name{
            font-size: 37rpx;
            color: #333333;
            font-weight: 600;
            margin-top: 18rpx;
            line-height: 120%;
        }
        .other{
            width: 100%;
            font-size: 26rpx;
            color: #565656;
            margin: 30rpx 0 40rpx 44rpx;
            line-height: 120%;
            text-align: start;
            .texta{
                font-size: 30rpx;
                margin-bottom: 12rpx;
            }
        }
    }
    
    .box{
        width: 100%;
        margin: 40rpx 66rpx 0 66rpx;
        margin-bottom: 0;
        padding-bottom: 20rpx;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        image{
            width: 37rpx;
            height: 35rpx;
        }
        .texts{
            font-size: 30rpx;
            color: #333333;
            margin-left: 30rpx;
        }
    }
    
    .btn{
        width: 540rpx;
        height: 92rpx;
        line-height: 92rpx;
        margin: 0 auto;
        margin-top: 88rpx;
        background: #78CEFD;
        box-shadow: 0rpx 0rpx 44rpx 7rpx rgba(120,206,253,0.3);
        border-radius: 10rpx;
        font-weight: 400;
        color: #FEFEFE;
        font-size: 36rpx;
        text-align: center;
    }
}
</style>