From 64b432916af9c9218ab3f3eca614e26c542142ae Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 07 十一月 2023 15:47:13 +0800
Subject: [PATCH] bug

---
 minipro_standard/pages/personal/personal.vue |   93 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 93 insertions(+), 0 deletions(-)

diff --git a/minipro_standard/pages/personal/personal.vue b/minipro_standard/pages/personal/personal.vue
new file mode 100644
index 0000000..3677e11
--- /dev/null
+++ b/minipro_standard/pages/personal/personal.vue
@@ -0,0 +1,93 @@
+<template>
+	<view class="info">
+		<view class="info_portrait">
+			<image :src="userInfo.avatar ? userInfo.avatar : avatar" mode="widthFix" />
+			<text>鐢ㄦ埛鍚�</text>
+		</view>
+		<view class="info_list">
+			<view class="info_list_item">
+				<text>鏄电О</text>
+				<text>{{userInfo.realname ? userInfo.realname : '鏆傛棤鏄电О'}}</text>
+			</view>
+			<view class="info_list_item">
+				<text>鎵嬫満鍙�</text>
+				<text>{{userInfo.companyUser.phone ? userInfo.companyUser.phone : '鏆傛棤鎵嬫満鍙�'}}</text>
+			</view>
+			<view class="info_list_item">
+				<text>鎵�灞為儴闂�</text>
+				<text>{{userInfo.department.name ? userInfo.department.name : '鏆傛棤鎵�灞為儴闂�'}}</text>
+			</view>
+			<view class="info_list_item">
+				<text>宀椾綅</text>
+				<text>{{userInfo.companyUser.positionName ? userInfo.companyUser.positionName : '鏆傛棤宀椾綅'}}</text>
+			</view>
+			<view class="info_list_item">
+				<text>褰撳墠缁勭粐</text>
+				<text>{{userInfo.rootDepartment.name ? userInfo.rootDepartment.name : '鏆傛棤缁勭粐'}}</text>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import { mapState } from 'vuex'
+	export default {
+		data() {
+			return {
+				avatar: require('@/static/2@2x.png'),
+			};
+		},
+		computed: mapState([
+			'userInfo'
+		])
+	}
+</script>
+
+<style lang="scss" scoped>
+.info {
+    padding: 30rpx;
+    position: absolute;
+    width: 100%;
+    height: 100%;
+    box-sizing: border-box;
+    background: white;
+    .info_portrait {
+        display: flex;
+        align-items: center;
+        flex-direction: column;
+        margin-top: 60rpx;
+        image {
+            width: 140rpx;
+            height: 140rpx;
+            margin-bottom: 30rpx;
+        }
+        text {
+            font-size: 30rpx;
+            font-weight: 400;
+            color: #222222;
+        }
+    }
+    .info_list {
+        margin-top: 30rpx;
+        .info_list_item {
+            height: 98rpx;
+            display: flex;
+            align-items: center;
+            justify-content: space-between;
+            border-bottom: 1rpx solid #E5E5E5;
+            text {
+                &:first-child {
+                    font-size: 30rpx;
+                    font-weight: 400;
+                    color: #777777;
+                }
+                &:last-child {
+                    font-size: 28rpx;
+                    font-weight: 400;
+                    color: #222222;
+                }
+            }
+        }
+    }
+}
+</style>

--
Gitblit v1.9.3