mes_mobile/pages/person/person.vue

220 lines
6.5 KiB
Vue
Raw Normal View History

2024-01-15 14:02:04 +08:00
<template>
<view class="person_page ">
<view class="person_top">
2024-02-19 16:53:38 +08:00
<view class="person_data">
2024-04-23 11:48:55 +08:00
<view class="person_logo">
2024-02-19 16:53:38 +08:00
<!-- <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar"> -->
2024-04-23 11:48:55 +08:00
<image class="img" :src="avatarUrl"></image>
<!-- </button> -->
</view>
2024-02-19 16:53:38 +08:00
<view class="person_name">
<view class="name">
<text class="font15">肖银奎</text>
2024-04-30 16:08:07 +08:00
<image src="http://dm-auto.oss-cn-shanghai.aliyuncs.com/mes_wechat/chaojihuiyuan.png" mode=""></image>
2024-02-19 16:53:38 +08:00
</view>
<view class="account font12">
登录账号ykxiao
</view>
</view>
2024-01-15 14:02:04 +08:00
</view>
</view>
<view class="person_content">
<view class="con_backlog">
<view class="font14">
待办事项
</view>
<view class="backlog_data">
<view class="backlog_module">
<view class="t-icon t-icon-shengchangongdan backlogicon"></view>
<view class="backlogname">工单审批</view>
</view>
<view class="backlog_module">
<view class="t-icon t-icon-shengchangongdan backlogicon"></view>
<view class="backlogname">流程审批</view>
</view>
2024-03-13 16:07:11 +08:00
<view class="backlog_module" @click="toAlarm">
2024-01-15 14:02:04 +08:00
<view class="t-icon t-icon-shengchangongdan backlogicon"></view>
<view class="backlogname">设备报警</view>
</view>
<view class="backlog_module">
<view class="t-icon t-icon-shengchangongdan backlogicon"></view>
<view class="backlogname">权限审批</view>
</view>
2024-03-13 16:07:11 +08:00
<view class="backlog_module" @click="toSafetyAccidents()">
2024-01-15 14:02:04 +08:00
<view class="t-icon t-icon-shengchangongdan backlogicon"></view>
<view class="backlogname">安全事故</view>
</view>
</view>
</view>
<view class="con_account" @click="toAccountCenter()">
<view class="t-icon t-icon-zhanghaozhongxin personicon"></view>
<view class="font14">账户中心</view>
</view>
<view class="con_data">
2024-03-13 16:07:11 +08:00
<view class="con_module" @click="toMessage">
2024-01-15 14:02:04 +08:00
<view class="t-icon t-icon-xiaoxitongzhi-gerenzhongxin personicon"></view>
<view class="font13">消息管理</view>
<view class=""></view>
</view>
2024-02-19 16:53:38 +08:00
<!-- <view class="con_module">
2024-01-15 14:02:04 +08:00
<view class="t-icon t-icon-shenpizhida personicon"></view>
<view class="font13">审批直达</view>
<view class=""></view>
2024-02-19 16:53:38 +08:00
</view> -->
2024-03-13 16:07:11 +08:00
<view class="con_module" @click="toMyAuthority()">
2024-01-15 14:02:04 +08:00
<view class="t-icon t-icon-wodequanxian personicon"></view>
<view class="font13">我的权限</view>
<view class=""></view>
</view>
2024-03-13 16:07:11 +08:00
<view class="con_module noborbot" @click="toFaceAuthentication()">
<view class="t-icon t-icon-renlianrenzheng personicon"></view>
<view class="font13">人脸认证</view>
<view class=""></view>
</view>
2024-01-15 14:02:04 +08:00
</view>
<view class="con_set">
<view class="t-icon t-icon-xitongshezhi-gerenzhongxin personicon"></view>
<view class="font13">系统设置</view>
2024-04-23 11:48:55 +08:00
</view>
<view class="login_out">
<view class="font13">退出登录</view>
2024-01-15 14:02:04 +08:00
</view>
2024-01-16 18:52:23 +08:00
</view>
<tab-bar :current-page="2"></tab-bar>
2024-01-15 14:02:04 +08:00
</view>
</template>
2024-01-16 18:52:23 +08:00
<script>
2024-02-19 16:53:38 +08:00
import tabBar from "@/components/customTabBar/index";
2024-04-23 11:48:55 +08:00
const defaultAvatarUrl = 'https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes_wechat/avatar.png';
2024-01-16 18:52:23 +08:00
export default {
components:{
2024-02-19 16:53:38 +08:00
tabBar
2024-01-16 18:52:23 +08:00
},
2024-02-19 16:53:38 +08:00
2024-01-15 14:02:04 +08:00
data() {
return {
2024-02-19 16:53:38 +08:00
avatarUrl:defaultAvatarUrl,
2024-01-15 14:02:04 +08:00
}
},
methods: {
2024-03-13 16:07:11 +08:00
//跳转设备报警
toAlarm(){
uni.navigateTo({
url:'/pages/person/alarm'
})
},
toSafetyAccidents(){
uni.navigateTo({
url:'/pages/person/safetyAccidents'
})
},
2024-01-15 14:02:04 +08:00
//跳转账户中心页
toAccountCenter(){
uni.navigateTo({
url: '/pages/person/accountCenter'
})
},
2024-03-13 16:07:11 +08:00
//跳转人脸认证页
toFaceAuthentication(){
uni.navigateTo({
url:'/pages/person/faceAuthentication'
})
},
toMyAuthority(){
uni.navigateTo({
url:'/pages/person/myAuthority'
})
},
//跳转消息页
toMessage(){
uni.navigateTo({
url: '/pages/index/message'
})
},
2024-01-15 14:02:04 +08:00
}
}
</script>
<style scoped lang="scss">
.person_page{ padding: 14px;
2024-02-19 16:53:38 +08:00
.person_top{margin-bottom:33px ;
.person_data{display: flex;align-items: center;
2024-04-23 11:48:55 +08:00
.person_logo{
border-radius: 50%;width: 54px;height: 54px;margin:0 6px 0 4px;position: relative;
.img{
height: 100%;width: 100%;
}
}
.person_logo::before{
content: '';position: absolute;right: 2px;bottom: 1px;z-index: 10;border: 1px solid $uni-bg-color-default; background: $uni-bg-color-whith;width: 10px;height: 10px;border-radius: 50%;
}
.person_logo::after{
content: '';position: absolute;right: 4px;bottom: 3px;z-index: 20;background: $uni-bg-color-success;width: 8px;height: 8px;border-radius: 50%;
}
2024-01-15 14:02:04 +08:00
2024-02-19 16:53:38 +08:00
.person_name{
.name{display: flex;align-items: center;margin-bottom: 2px;
image{width: 50px;height: 16px;margin-left: 4px;}
}
.account{margin-top: 2px;}
}
}
2024-01-15 14:02:04 +08:00
}
2024-04-23 11:48:55 +08:00
.person_content{
padding-bottom: 100px;
.con_backlog{padding: 14px 10px;background: $uni-bg-color-primary;border-radius: 8px;margin-bottom: 12px;
.backlog_data{
display: flex;flex-wrap:wrap;margin-top:7px;
.backlog_module{
width: calc(33.33% - 12px);height: 76px;display: flex;justify-content: center;flex-direction: column;align-items: center;border-radius: 8px;
background: $uni-color-info;margin: 5px 6px;
box-sizing: border-box;
}
2024-02-19 16:53:38 +08:00
.backlogicon{width: 32px;height: 32px;}
.backlogname{
font-size: $uni-font-size-sm;
2024-04-23 11:48:55 +08:00
padding-top: 5px;
}
2024-02-19 16:53:38 +08:00
}
}
.con_account{
border-radius: 8px;
2024-04-23 11:48:55 +08:00
background: $uni-bg-color-primary;
2024-02-19 16:53:38 +08:00
display: flex;
height: 52px;
align-items: center;
padding: 0 14px;
margin-bottom: 10px;
2024-01-15 14:02:04 +08:00
}
2024-02-19 16:53:38 +08:00
.personicon{width: 24px;height: 24px;margin-right: 15px;}
2024-04-23 11:48:55 +08:00
.con_data{
border-radius: 8px;
background: $uni-bg-color-primary;
2024-02-19 16:53:38 +08:00
padding: 0 14px;
margin-bottom: 12px;
2024-04-23 11:48:55 +08:00
.con_module{display: flex;height: 49px;align-items: center;border-bottom: 1px solid $uni-border-color-primary;}
2024-02-19 16:53:38 +08:00
}
2024-04-23 11:48:55 +08:00
.con_set{
border-radius: 8px;
background: $uni-bg-color-primary;
2024-02-19 16:53:38 +08:00
display: flex;
height: 48px;
align-items: center;
2024-04-23 11:48:55 +08:00
padding: 0 14px;
margin-bottom: 12px;
}
.login_out{
border-radius: 8px;
background: $uni-bg-color-primary;
display: flex;
height: 48px;
align-items: center;
justify-content: center;
padding: 0 14px;
color: $uni-text-color-danger;
}
2024-02-19 16:53:38 +08:00
}
2024-01-15 14:02:04 +08:00
}
</style>