2021-06-07 17:22:07 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="personal">
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<!-- 个人信息 -->
|
|
|
|
|
|
<el-col :xs="24" :sm="16">
|
|
|
|
|
|
<el-card shadow="hover" header="个人信息">
|
|
|
|
|
|
<div class="personal-user">
|
|
|
|
|
|
<div class="personal-user-left">
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<el-upload class="h100 personal-user-left-upload" action="" multiple :limit="1">
|
2023-03-15 11:41:03 +08:00
|
|
|
|
<img :src="userInfo.photo" />
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-upload>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="personal-user-right">
|
|
|
|
|
|
<el-row>
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<el-col :span="24" class="personal-title mb18"
|
|
|
|
|
|
>{{ currentTime }},{{ userInfo.name }},生活变的再糟糕,也不妨碍我变得更好!
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-row>
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<el-col :xs="24" :sm="12" class="personal-item mb6">
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<div class="personal-item-label">用户名:</div>
|
2023-03-15 11:41:03 +08:00
|
|
|
|
<div class="personal-item-value">{{ userInfo.username }}</div>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-col>
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<el-col :xs="24" :sm="12" class="personal-item mb6">
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<div class="personal-item-label">角色:</div>
|
|
|
|
|
|
<div class="personal-item-value">{{ roleInfo }}</div>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-row>
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<el-col :xs="24" :sm="12" class="personal-item mb6">
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<div class="personal-item-label">上次登录IP:</div>
|
2023-03-15 11:41:03 +08:00
|
|
|
|
<div class="personal-item-value">{{ userInfo.lastLoginIp }}</div>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-col>
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<el-col :xs="24" :sm="12" class="personal-item mb6">
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<div class="personal-item-label">上次登录时间:</div>
|
2023-07-06 20:59:22 +08:00
|
|
|
|
<div class="personal-item-value">{{ dateFormat(userInfo.lastLoginTime) }}</div>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 消息通知 -->
|
|
|
|
|
|
<el-col :xs="24" :sm="8" class="pl15 personal-info">
|
|
|
|
|
|
<el-card shadow="hover">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>消息通知</span>
|
2021-11-25 14:34:15 +08:00
|
|
|
|
<span @click="showMsgs" class="personal-info-more">更多</span>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<div class="personal-info-box">
|
|
|
|
|
|
<ul class="personal-info-ul">
|
2022-10-29 20:08:15 +08:00
|
|
|
|
<li v-for="(v, k) in msgDialog.msgs.list as any" :key="k" class="personal-info-li">
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<a class="personal-info-li-title">{{ `[${getMsgTypeDesc(v.type)}] ${v.msg}` }}</a>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
2021-11-25 14:34:15 +08:00
|
|
|
|
<el-dialog width="900px" title="消息" v-model="msgDialog.visible">
|
|
|
|
|
|
<el-table border :data="msgDialog.msgs.list" size="small">
|
|
|
|
|
|
<el-table-column property="type" label="类型" width="60">
|
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
{{ getMsgTypeDesc(scope.row.type) }}
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column property="msg" label="消息"></el-table-column>
|
|
|
|
|
|
<el-table-column property="createTime" label="时间" width="150">
|
|
|
|
|
|
<template #default="scope">
|
2022-10-29 20:08:15 +08:00
|
|
|
|
{{ dateFormat(scope.row.createTime) }}
|
2021-11-25 14:34:15 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
2022-12-17 22:24:21 +08:00
|
|
|
|
<el-row type="flex" class="mt5" justify="center">
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<el-pagination
|
|
|
|
|
|
small
|
|
|
|
|
|
@current-change="getMsgs"
|
|
|
|
|
|
style="text-align: center"
|
|
|
|
|
|
background
|
|
|
|
|
|
layout="prev, pager, next, total, jumper"
|
|
|
|
|
|
:total="msgDialog.msgs.total"
|
|
|
|
|
|
v-model:current-page="msgDialog.query.pageNum"
|
|
|
|
|
|
:page-size="msgDialog.query.pageSize"
|
|
|
|
|
|
/>
|
2022-12-17 22:24:21 +08:00
|
|
|
|
</el-row>
|
2021-11-25 14:34:15 +08:00
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
<!-- 营销推荐 -->
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<!-- <el-col :span="24">
|
2021-06-07 17:22:07 +08:00
|
|
|
|
<el-card shadow="hover" class="mt15" header="营销推荐">
|
|
|
|
|
|
<el-row :gutter="15" class="personal-recommend-row">
|
|
|
|
|
|
<el-col :sm="6" v-for="(v, k) in recommendList" :key="k" class="personal-recommend-col">
|
|
|
|
|
|
<div class="personal-recommend" :style="{ 'background-color': v.bg }">
|
|
|
|
|
|
<i :class="v.icon" :style="{ color: v.iconColor }"></i>
|
|
|
|
|
|
<div class="personal-recommend-auto">
|
|
|
|
|
|
<div>{{ v.title }}</div>
|
|
|
|
|
|
<div class="personal-recommend-msg">{{ v.msg }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-card>
|
2021-09-11 14:04:09 +08:00
|
|
|
|
</el-col> -->
|
2021-06-07 17:22:07 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 更新信息 -->
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-card shadow="hover" class="mt15 personal-edit" header="更新信息">
|
|
|
|
|
|
<div class="personal-edit-title">基本信息</div>
|
2023-07-03 21:42:04 +08:00
|
|
|
|
<el-form :model="accountForm" label-width="auto" class="mt35 mb35">
|
2021-06-07 17:22:07 +08:00
|
|
|
|
<el-row :gutter="35">
|
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" class="mb20">
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<el-form-item label="密码">
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<el-input type="password" show-password v-model="accountForm.password" placeholder="请输入新密码" clearable></el-input>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2021-09-11 14:04:09 +08:00
|
|
|
|
<!-- -->
|
2021-06-07 17:22:07 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
|
|
|
|
|
|
<el-form-item>
|
2022-01-13 17:06:04 +08:00
|
|
|
|
<el-button @click="updateAccount" type="primary" icon="position">更新个人信息</el-button>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
2021-09-11 14:04:09 +08:00
|
|
|
|
|
2023-07-22 20:51:46 +08:00
|
|
|
|
<span v-show="authStatus.enable">
|
|
|
|
|
|
<div class="personal-edit-title mb15">账号信息</div>
|
|
|
|
|
|
<div class="personal-edit-safe-box">
|
|
|
|
|
|
<div class="personal-edit-safe-item">
|
|
|
|
|
|
<div class="personal-edit-safe-item-left">
|
|
|
|
|
|
<div class="personal-edit-safe-item-left-label">Oauth2</div>
|
|
|
|
|
|
<div class="personal-edit-safe-item-left-value">当前状态:{{ authStatus.bind ? '已绑定' : '未绑定' }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="personal-edit-safe-item-right">
|
2023-07-24 22:36:07 +08:00
|
|
|
|
<el-button v-if="!authStatus.bind" link @click="bindOAuth2" type="primary">立即绑定</el-button>
|
|
|
|
|
|
<el-button v-else link @click="unbindOAuth2()" type="warning">解绑</el-button>
|
2023-07-22 20:51:46 +08:00
|
|
|
|
</div>
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-07-22 20:51:46 +08:00
|
|
|
|
</span>
|
|
|
|
|
|
<!-- <div class="personal-edit-safe-box">
|
2021-06-07 17:22:07 +08:00
|
|
|
|
<div class="personal-edit-safe-item">
|
|
|
|
|
|
<div class="personal-edit-safe-item-left">
|
|
|
|
|
|
<div class="personal-edit-safe-item-left-label">密保手机</div>
|
|
|
|
|
|
<div class="personal-edit-safe-item-left-value">已绑定手机:132****4108</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="personal-edit-safe-item-right">
|
|
|
|
|
|
<el-button type="text">立即修改</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="personal-edit-safe-box">
|
|
|
|
|
|
<div class="personal-edit-safe-item">
|
|
|
|
|
|
<div class="personal-edit-safe-item-left">
|
|
|
|
|
|
<div class="personal-edit-safe-item-left-label">密保问题</div>
|
|
|
|
|
|
<div class="personal-edit-safe-item-left-value">已设置密保问题,账号安全大幅度提升</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="personal-edit-safe-item-right">
|
|
|
|
|
|
<el-button type="text">立即设置</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-07-21 21:18:31 +08:00
|
|
|
|
</div> -->
|
2021-06-07 17:22:07 +08:00
|
|
|
|
</el-card>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
2022-10-29 20:08:15 +08:00
|
|
|
|
<script lang="ts" setup>
|
2021-09-11 14:04:09 +08:00
|
|
|
|
import { toRefs, reactive, computed, onMounted } from 'vue';
|
|
|
|
|
|
import { ElMessage } from 'element-plus';
|
2023-03-15 11:41:03 +08:00
|
|
|
|
import { formatAxis } from '@/common/utils/format';
|
2021-09-11 14:04:09 +08:00
|
|
|
|
import { personApi } from './api';
|
2022-10-29 20:08:15 +08:00
|
|
|
|
import { dateFormat } from '@/common/utils/date';
|
2023-03-15 11:41:03 +08:00
|
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
|
|
|
import { useUserInfo } from '@/store/userInfo';
|
2023-07-21 21:49:49 +08:00
|
|
|
|
import config from '@/common/config';
|
2023-09-16 17:07:48 +08:00
|
|
|
|
import { getToken } from '@/common/utils/storage';
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2023-03-15 11:41:03 +08:00
|
|
|
|
const { userInfo } = storeToRefs(useUserInfo());
|
2022-10-29 20:08:15 +08:00
|
|
|
|
const state = reactive({
|
|
|
|
|
|
accountInfo: {
|
|
|
|
|
|
roles: [],
|
|
|
|
|
|
},
|
|
|
|
|
|
msgs: [],
|
|
|
|
|
|
msgDialog: {
|
|
|
|
|
|
visible: false,
|
|
|
|
|
|
query: {
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
},
|
|
|
|
|
|
msgs: {
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
total: null,
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
recommendList: [],
|
|
|
|
|
|
accountForm: {
|
|
|
|
|
|
password: '',
|
2021-06-07 17:22:07 +08:00
|
|
|
|
},
|
2023-07-21 21:49:49 +08:00
|
|
|
|
authStatus: {
|
2023-07-24 22:36:07 +08:00
|
|
|
|
enable: false,
|
|
|
|
|
|
bind: false,
|
2023-07-22 20:51:46 +08:00
|
|
|
|
},
|
2022-10-29 20:08:15 +08:00
|
|
|
|
});
|
|
|
|
|
|
|
2023-07-21 21:49:49 +08:00
|
|
|
|
const { msgDialog, accountForm, authStatus } = toRefs(state);
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
|
|
|
|
|
// 当前时间提示语
|
|
|
|
|
|
const currentTime = computed(() => {
|
|
|
|
|
|
return formatAxis(new Date());
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const showMsgs = () => {
|
|
|
|
|
|
state.msgDialog.visible = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const roleInfo = computed(() => {
|
|
|
|
|
|
if (state.accountInfo.roles.length == 0) {
|
|
|
|
|
|
return '';
|
|
|
|
|
|
}
|
|
|
|
|
|
return state.accountInfo.roles.map((val: any) => val.name).join('、');
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2023-07-21 21:49:49 +08:00
|
|
|
|
onMounted(async () => {
|
2022-10-29 20:08:15 +08:00
|
|
|
|
getAccountInfo();
|
|
|
|
|
|
getMsgs();
|
2023-07-22 20:51:46 +08:00
|
|
|
|
state.authStatus = await personApi.authStatus.request();
|
2022-10-29 20:08:15 +08:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const getAccountInfo = async () => {
|
|
|
|
|
|
state.accountInfo = await personApi.accountInfo.request();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const updateAccount = async () => {
|
|
|
|
|
|
await personApi.updateAccount.request(state.accountForm);
|
|
|
|
|
|
ElMessage.success('更新成功');
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2023-07-21 21:49:49 +08:00
|
|
|
|
const bindOAuth2 = () => {
|
2023-07-24 22:36:07 +08:00
|
|
|
|
const width = 700;
|
|
|
|
|
|
const height = 500;
|
|
|
|
|
|
var iTop = (window.screen.height - 30 - height) / 2; //获得窗口的垂直位置;
|
|
|
|
|
|
var iLeft = (window.screen.width - 10 - width) / 2; //获得窗口的水平位置;
|
2023-07-21 21:49:49 +08:00
|
|
|
|
// 小窗口打开oauth2鉴权
|
2023-07-24 22:36:07 +08:00
|
|
|
|
let oauthWindow = window.open(
|
2023-09-16 17:07:48 +08:00
|
|
|
|
config.baseApiUrl + '/auth/oauth2/bind?token=' + getToken(),
|
2023-07-24 22:36:07 +08:00
|
|
|
|
'oauth2',
|
|
|
|
|
|
`height=${height},width=${width},top=${iTop},left=${iLeft},location=no`
|
|
|
|
|
|
);
|
2023-07-22 20:51:46 +08:00
|
|
|
|
if (oauthWindow) {
|
2023-07-21 21:49:49 +08:00
|
|
|
|
const handler = (e: any) => {
|
2023-07-22 20:51:46 +08:00
|
|
|
|
if (e.data.action === 'oauthBind') {
|
|
|
|
|
|
window.removeEventListener('message', handler);
|
2023-07-21 21:49:49 +08:00
|
|
|
|
// 处理登录token
|
|
|
|
|
|
ElMessage.success('绑定成功');
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
location.reload();
|
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
}
|
2023-07-22 20:51:46 +08:00
|
|
|
|
};
|
|
|
|
|
|
window.addEventListener('message', handler);
|
2023-07-21 21:49:49 +08:00
|
|
|
|
setInterval(() => {
|
2023-07-22 20:51:46 +08:00
|
|
|
|
if (oauthWindow!.closed) {
|
|
|
|
|
|
window.removeEventListener('message', handler);
|
2023-07-21 21:49:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
}
|
2023-07-22 20:51:46 +08:00
|
|
|
|
};
|
2023-07-21 21:49:49 +08:00
|
|
|
|
|
2023-07-24 22:36:07 +08:00
|
|
|
|
const unbindOAuth2 = async () => {
|
|
|
|
|
|
await personApi.unbindOauth2.request();
|
|
|
|
|
|
ElMessage.success('解绑成功');
|
|
|
|
|
|
state.authStatus = await personApi.authStatus.request();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2022-10-29 20:08:15 +08:00
|
|
|
|
const getMsgs = async () => {
|
|
|
|
|
|
const res = await personApi.getMsgs.request(state.msgDialog.query);
|
|
|
|
|
|
state.msgDialog.msgs = res;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const getMsgTypeDesc = (type: number) => {
|
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
|
return '登录';
|
|
|
|
|
|
}
|
|
|
|
|
|
if (type == 2) {
|
|
|
|
|
|
return '通知';
|
|
|
|
|
|
}
|
2021-06-07 17:22:07 +08:00
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2023-09-13 19:54:43 +08:00
|
|
|
|
@import '../../theme/mixins/index.scss';
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal {
|
|
|
|
|
|
.personal-user {
|
|
|
|
|
|
height: 130px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-user-left {
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
height: 130px;
|
|
|
|
|
|
border-radius: 3px;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
::v-deep(.el-upload) {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-user-left-upload {
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
img {
|
|
|
|
|
|
animation: logoAnimation 0.3s ease-in-out;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-user-right {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
padding: 0 15px;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-title {
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
@include text-ellipsis(1);
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
font-size: 13px;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-item-label {
|
|
|
|
|
|
color: gray;
|
|
|
|
|
|
@include text-ellipsis(1);
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-item-value {
|
|
|
|
|
|
@include text-ellipsis(1);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-info {
|
|
|
|
|
|
.personal-info-more {
|
|
|
|
|
|
float: right;
|
|
|
|
|
|
color: gray;
|
|
|
|
|
|
font-size: 13px;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
&:hover {
|
2023-09-13 19:54:43 +08:00
|
|
|
|
color: var(--el-color-primary);
|
2021-06-07 17:22:07 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-info-box {
|
|
|
|
|
|
height: 130px;
|
|
|
|
|
|
overflow: hidden;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-info-ul {
|
|
|
|
|
|
list-style: none;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-info-li {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
padding-bottom: 10px;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-info-li-title {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
@include text-ellipsis(1);
|
|
|
|
|
|
color: grey;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
& a:hover {
|
2023-09-13 19:54:43 +08:00
|
|
|
|
color: var(--el-color-primary);
|
2021-06-07 17:22:07 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-recommend-row {
|
|
|
|
|
|
.personal-recommend-col {
|
|
|
|
|
|
.personal-recommend {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
height: 100px;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
cursor: pointer;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
i {
|
|
|
|
|
|
right: 0px !important;
|
|
|
|
|
|
bottom: 0px !important;
|
|
|
|
|
|
transition: all ease 0.3s;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
i {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: -10px;
|
|
|
|
|
|
bottom: -10px;
|
|
|
|
|
|
font-size: 70px;
|
|
|
|
|
|
transform: rotate(-30deg);
|
|
|
|
|
|
transition: all ease 0.3s;
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-recommend-auto {
|
|
|
|
|
|
padding: 15px;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
top: 5%;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-recommend-msg {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-edit {
|
|
|
|
|
|
.personal-edit-title {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
|
color: #606266;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
&::after {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
width: 2px;
|
|
|
|
|
|
height: 10px;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
transform: translateY(-50%);
|
2023-09-13 19:54:43 +08:00
|
|
|
|
background: var(--el-color-primary);
|
2021-06-07 17:22:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-edit-safe-box {
|
|
|
|
|
|
border-bottom: 1px solid #ebeef5;
|
|
|
|
|
|
padding: 15px 0;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-edit-safe-item {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-edit-safe-item-left {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow: hidden;
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-edit-safe-item-left-label {
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
.personal-edit-safe-item-left-value {
|
|
|
|
|
|
color: gray;
|
|
|
|
|
|
@include text-ellipsis(1);
|
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-10-29 20:08:15 +08:00
|
|
|
|
|
2021-06-07 17:22:07 +08:00
|
|
|
|
&:last-of-type {
|
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|