<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>
|