智能安全检查移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

297 lines
7.8 KiB

<template>
<view class="mine-container" :style="{ height: `${windowHeight}px` }">
<uni-nav-bar :fixed="true" :border="false" :fontSizes="17" background-color="transparent" status-bar title="我的" />
<view class="head-bg">
<image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/me-bg@2x.png"></image>
<!-- <image src="https://i.postimg.cc/pL2zv5W0/me-bg-2x.png"></image> -->
</view>
<!--顶部个人信息栏-->
<view class="header-section">
<view class="flex padding justify-between">
<view class="flex align-center">
<view class="cu-avatar xl round">
<view class="user-avatar">
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/user-head@2x.png"></image> -->
<image src="https://i.postimg.cc/B6DXHJZL/user-head-2x.png"></image>
</view>
</view>
<!-- <image v-if="avatar" @click="handleToAvatar" :src="avatar" class="cu-avatar xl round" mode="widthFix"> -->
<!-- </image> -->
<view v-if="!name" @click="handleToLogin" class="login-tip">
点击登录
</view>
<!-- <view v-if="name" @click="handleToInfo" class="user-info"> -->
<view v-if="name" class="user-info">
<view class="u_title">
{{ name }}
</view>
</view>
</view>
<!-- <view @click="handleToInfo" class="flex align-center">
<text>个人信息</text>
<view class="iconfont icon-right"></view>
</view> -->
</view>
</view>
<view class="content-boxs" v-if="0 == 1">
<view class="content-title">隐患管理</view>
<view class="flex justify-around align-center card-content">
<view class="action-item" @click="handleBuilding">
<view class="job-icon">
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/my-job@2x.png"></image> -->
<image src="https://i.postimg.cc/nh07hVMn/my-job-2x.png"></image>
</view>
<text class="text">我的任务</text>
</view>
<view class="action-item" @click="handleBuilding">
<view class="job-icon">
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/my-check-his@2x.png"></image> -->
<image src="https://i.postimg.cc/L6kLG3pY/my-check-his-2x.png"></image>
</view>
<text class="text">检查记录</text>
</view>
<view class="action-item" @click="handleBuilding">
<view class="job-icon">
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/my-war-tip@2x.png"></image> -->
<image src="https://i.postimg.cc/d03CkMTr/my-war-tip-2x.png"></image>
</view>
<text class="text">隐患标签</text>
</view>
</view>
</view>
<view class="content-boxs">
<view class="menu-list">
<view class="list-cell list-cell-arrow" @click="changePdw">
<view class="menu-item-box">
<view class="list-icon">
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/kefu@2x.png"></image> -->
<image src="https://i.postimg.cc/fTs07S9w/qianming-2x.png"></image>
<!-- <image src="https://i.postimg.cc/Sxq7Ktrf/kefu-2x.png"></image> -->
</view>
<view>修改密码</view>
</view>
</view>
<!-- <view class="list-cell list-cell-arrow" @click="handleBuilding">
<view class="menu-item-box">
<view class="list-icon"> -->
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/qianming@2x.png"></image> -->
<!-- <image src="https://i.postimg.cc/fTs07S9w/qianming-2x.png"></image>
</view>
<view>我的签名</view>
</view>
</view> -->
<view class="list-cell list-cell-arrow" @click="handleLogout">
<view class="menu-item-box">
<view class="list-icon">
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/user/tuichu@2x.png"></image> -->
<image src="https://i.postimg.cc/MGgnnnwJ/tuichu-2x.png"></image>
</view>
<view>退出登录</view>
</view>
</view>
</view>
</view>
<menusBar :activeNum="2"></menusBar>
</view>
</template>
<script>
import storage from '@/utils/storage'
import menusBar from '@/components/menusBar/menusBar';
export default {
components: {
menusBar
},
data() {
return {
name: this.$store.state.user.name,
userType: this.$store.state.user.userType,
// name: "河北省文化和旅游厅市场管理处",
version: getApp().globalData.config.appInfo.version
}
},
computed: {
avatar() {
return this.$store.state.user.avatar
},
windowHeight() {
return uni.getSystemInfoSync().windowHeight - 50
}
},
methods: {
changePdw(){
uni.navigateTo({
url: '/pages/mine/pwd/index'
})
},
handleLogout() {
this.$modal.confirm('确定注销并退出系统吗?').then(() => {
this.$store.dispatch('LogOut').then(() => {
this.$tab.reLaunch('/pages/login')
})
})
},
handleBuilding() {
this.$modal.showToast('模块建设中~')
}
}
}
</script>
<style lang="scss" scoped>
.mine-container {
width: 100%;
height: 100%;
background: #F6F8FC;
position: relative;
.head-bg {
width: 100%;
height: 560rpx;
position: absolute;
top: 0;
z-index: 0;
background: linear-gradient(180deg, #C0D8FC 0%, rgba(192, 216, 252, 0) 100%);
image {
display: block;
width: 410rxp;
height: inherit;
position: absolute;
right: -70rpx;
top: -10rpx;
z-index: 1;
}
}
.header-section {
position: relative;
z-index: 9;
padding: 24rpx;
background-color: transparent;
color: white;
.login-tip {
font-size: 18px;
margin-left: 10px;
color: #1B1B1B;
}
.cu-avatar {
background: transparent;
.icon {
font-size: 40px;
}
}
.user-info {
margin-left: 15px;
.u_title {
font-size: 34rpx;
font-weight: 500;
color: #1B1B1B;
}
}
.user-avatar {
width: 106rpx;
height: 106rpx;
border-radius: 50%;
border: 1rpx solid #FFFFFF;
background: #E0EBFF;
overflow: hidden;
image {
width: 90%;
height: 90%;
margin: 10% 5% 0;
}
}
}
.content-section {
position: relative;
top: -50px;
.mine-actions {
margin: 15px 15px;
padding: 20px 0px;
border-radius: 8px;
background-color: white;
.action-item {
.icon {
font-size: 28px;
}
.text {
display: block;
font-size: 13px;
margin: 8px 0px;
}
}
}
}
.card-content {
margin-top: 38rpx;
.action-item {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
.job-icon {
width: 70rpx;
height: 70rpx;
margin-bottom: 7rpx;
image {
width: 100%;
height: 100%;
;
}
}
.text {
color: #1b1b1b;
}
}
}
.menu-list {
margin: 0;
.list-cell {
padding: 26rpx 0;
}
.list-cell:last-child::after {
border: none !important;
}
}
.list-icon {
width: 36rpx;
height: 36rpx;
margin-right: 30rpx;
image {
width: 100%;
height: 100%;
}
}
}
.content-title::after{
background: transparent;
}
</style>