Commit 5453aaa6 authored by chenqikuai's avatar chenqikuai

fix

parent 6e3eff9e
<template> <template>
<div> <div>
<nav-bar title="个人中心" :style="{ 'background-color':'#F7F7FA'}"/> <nav-bar title="个人中心" :style="{ 'background-color': '#F7F7FA' }" />
<!-- 头像 --> <!-- 头像 -->
<div class="px-5 py-3 flex justify-between items-center border-b border-gray-200"> <div class="px-5 py-3 flex justify-between items-center border-b border-gray-200">
<span class=" text-sm font-semibold">头像</span> <span class="text-sm font-semibold">头像</span>
<img src="../../../assets/icons/avatar.png" class=" w-12 h-12 rounded-full"> <img src="../../../assets/icons/avatar.png" class="w-12 h-12 rounded-full" />
</div> </div>
<!-- 手机号码 --> <!-- 手机号码 -->
<div class="px-5 py-5 flex justify-between items-center border-b border-gray-200"> <div class="px-5 py-5 flex justify-between items-center border-b border-gray-200">
<span class=" text-sm font-semibold">手机号码</span> <span class="text-sm font-semibold">手机号码</span>
<span class=" text-sm">{{getPhone}}</span> <span class="text-sm">{{ getPhone }}</span>
</div> </div>
<!-- 登陆密码 --> <!-- 登陆密码 -->
<div class="px-5 py-2 items-center border-b border-gray-200"> <div class="px-5 py-2 items-center border-b border-gray-200">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<div> <div>
<div class=" text-sm font-semibold">设置密码</div> <div class="text-sm font-semibold">设置密码</div>
<div class=" text-xs text-gray-400 pt-1">保障账户登录安全</div> <div class="text-xs text-gray-400 pt-1">保障账户登录安全</div>
</div> </div>
<div class="flex items-center text-xs h-1 text-right"> <div class="flex items-center text-xs h-1 text-right" @click="pushRouter">
<span @click="pushRouter">设置</span> <span>设置</span>
<icon <icon
name="icon-gengduo" name="icon-gengduo"
color="#8E92A3" color="#8E92A3"
size="12" size="12"
class=" inline-block align-text-bottom" class="inline-block align-text-bottom"
/> />
</div> </div>
</div> </div>
...@@ -44,18 +44,18 @@ import router from '@/router' ...@@ -44,18 +44,18 @@ import router from '@/router'
import { userLogout } from '@/service/UserManagementService' import { userLogout } from '@/service/UserManagementService'
export default defineComponent({ export default defineComponent({
components: { NavBar, Icon }, components: { NavBar, Icon },
data(){ data() {
return{ return {
role:'' role: ''
} }
}, },
computed: { computed: {
hasPassword(): eAccountType { hasPassword(): eAccountType {
return eAccountType.REG_NOPD return eAccountType.REG_NOPD
}, },
getPhone(){ getPhone() {
const phone =getUserMsg()?.userInfo.phone+'' const phone = getUserMsg()?.userInfo.phone + ''
var newphone= phone.replace(phone.substr(3,5),"*****") var newphone = phone.replace(phone.substr(3, 5), "*****")
return newphone return newphone
} }
}, },
...@@ -73,8 +73,8 @@ export default defineComponent({ ...@@ -73,8 +73,8 @@ export default defineComponent({
clickLogout clickLogout
} }
}, },
methods:{ methods: {
pushRouter(){ pushRouter() {
this.$router.push({ this.$router.push({
name: 'PwdSetting', name: 'PwdSetting',
query: { query: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment