From e680ee8cc2c34ec2d21c238e8110e4f1501eb8bc Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 24 十一月 2023 11:06:37 +0800
Subject: [PATCH] #
---
pages/user/user_detail/userDetail.vue | 141 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 141 insertions(+), 0 deletions(-)
diff --git a/pages/user/user_detail/userDetail.vue b/pages/user/user_detail/userDetail.vue
index 02409e3..7fa8d2d 100644
--- a/pages/user/user_detail/userDetail.vue
+++ b/pages/user/user_detail/userDetail.vue
@@ -1,8 +1,149 @@
<template>
+ <view>
+ <view style="background-color: #fff;" @click="clickk">
+ <view class="item">
+ <view>瑙掕壊</view><view class="item-right">{{detail.roleName}}</view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view>鎵�灞為儴闂�</view><view class="item-right">{{detail.deptName}}</view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view>璐﹀彿</view><view class="item-right">{{detail.username}}</view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view>鍚嶇О</view><view class="item-right">{{detail.nickname}}</view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view>鑱旂郴鏂瑰紡</view><view class="item-right">{{detail.mobile}}</view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view>閭鍦板潃</view><view class="item-right">{{detail.email}}</view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view>瀵嗙爜</view><view class="item-right"></view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view>娉ㄥ唽鏃堕棿</view><view class="item-right">{{detail.createTime$}}</view>
+ <view class="user-icons">
+ <uni-icons type="right" color="#c1c1c1"></uni-icons>
+ </view>
+ </view>
+ </view>
+ <view class="logOut" @click="logOut()">
+ 閫�鍑虹櫥褰�
+ </view>
+ </view>
</template>
<script>
+ export default {
+ data() {
+ return {
+ detail: ''
+ }
+ },
+ onShow() {
+ this.getDetail()
+ },
+ methods: {
+ getDetail() {
+ let that = this
+ uni.request({
+ url: that.baseUrl + '/user/detail/auth',
+ header: {'token' : uni.getStorageSync('token')},
+ method: 'POST',
+ success(res) {
+ res = res.data
+ if (res.code === 200) {
+ that.detail = res.data
+ } else if (res.code === 403) {
+ uni.showToast({title: res.msg, icon: "none", position: 'top'})
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../../login/login'
+ });
+ }, 1000);
+ } else {
+ uni.showToast({title: res.msg, icon: "none",position: 'top'})
+ }
+ }
+ })
+ },
+ clickk() {
+ uni.showToast({
+ icon:'error',
+ title: '鏆備笉鏀寔淇敼',
+ duration: 2000
+ })
+ },
+ logOut() {
+ uni.showToast({
+ title: '閫�鍑烘垚鍔�',
+ duration: 1000
+ })
+ setTimeout(() => {
+ uni.removeStorageSync('token');
+ uni.removeStorageSync('password');
+ uni.reLaunch({
+ url:"/pages/login/login"
+ });
+ }, 1000);
+ }
+
+ }
+ }
</script>
<style>
+ * {
+ font-weight: 700;
+ }
+ .item {
+ background-color: #FFF;
+ min-height: 90rpx;
+ border-bottom: 1px solid #f1f1f1;
+ margin-left: 30rpx;
+ display: grid;
+ grid-template-columns: 5fr 5fr 1fr;
+ align-items: center;
+ }
+ .item:last-child {
+ border: none;
+ }
+ .item-right {
+ text-align: end;
+ color: #6f6f6f;
+ font-weight: 400;
+ }
+ .user-icons {
+ text-align: center;
+ }
+ .logOut {
+ height: 90rpx;
+ line-height: 90rpx;
+ text-align: center;
+ background-color: #fff;
+ margin-top: 30rpx;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.1