mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
用户中心调整
This commit is contained in:
@@ -16,6 +16,11 @@
|
||||
用户名称
|
||||
<div class="pull-right">{{ user.userName }}</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<svg-icon icon-class="number" />
|
||||
用户编号
|
||||
<div class="pull-right">{{ user.userId }}</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<svg-icon icon-class="phone" />
|
||||
手机号码
|
||||
@@ -26,7 +31,7 @@
|
||||
用户邮箱
|
||||
<div class="pull-right">{{ user.email }}</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<li class="list-group-item" style="padding-top:40px;">
|
||||
<svg-icon icon-class="tree" />
|
||||
所属部门
|
||||
<div class="pull-right" v-if="user.dept">{{ user.dept.deptName }} / {{ postGroup }}</div>
|
||||
@@ -45,13 +50,12 @@
|
||||
<svg-icon icon-class="qq" />
|
||||
QQ
|
||||
<div class="pull-right" v-if="!this.qqBind">
|
||||
<el-button size="mini" style="margin-top: -7px" @click="bind(socialAccount.QQ.name)">未绑定</el-button>
|
||||
<el-button size="mini" style="margin-top: -7px" @click="bind(socialAccount.QQ.name)" disabled>未绑定</el-button>
|
||||
</div>
|
||||
<div style="float:right;display: flex;" v-else>
|
||||
<span>{{ this.socialAccount.QQ.value.nickname }}</span>
|
||||
<el-image style="width: 25px; height: 25px; margin-top: -7px;margin-left: 5px;margin-right: 5px"
|
||||
:src="this.socialAccount.QQ.value.avatar"/>
|
||||
<el-button style="margin-top: -5px" size="mini" @click="unbind(socialAccount.QQ.name)">解除绑定
|
||||
<el-image style="width: 25px; height: 25px; margin-top: -7px;margin-left: 5px;margin-right: 5px" :src="this.socialAccount.QQ.value.avatar" />
|
||||
<el-button style="margin-top: -5px" size="mini" @click="unbind(socialAccount.QQ.name)" disabled>解除绑定
|
||||
</el-button>
|
||||
</div>
|
||||
</li>
|
||||
@@ -60,7 +64,7 @@
|
||||
<svg-icon icon-class="wechat" />
|
||||
微信
|
||||
<div class="pull-right">
|
||||
<el-button style="margin-top: -7px" size="mini">未绑定</el-button>
|
||||
<el-button style="margin-top: -7px" size="mini" disabled>未绑定</el-button>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -91,12 +95,21 @@
|
||||
import userAvatar from "./userAvatar";
|
||||
import userInfo from "./userInfo";
|
||||
import resetPwd from "./resetPwd";
|
||||
import {getUserProfile} from "@/api/system/user";
|
||||
import {unbind, bind} from "@/api/iot/platform";
|
||||
import {
|
||||
getUserProfile
|
||||
} from "@/api/system/user";
|
||||
import {
|
||||
unbind,
|
||||
bind
|
||||
} from "@/api/iot/platform";
|
||||
|
||||
export default {
|
||||
name: "Profile",
|
||||
components: {userAvatar, userInfo, resetPwd},
|
||||
components: {
|
||||
userAvatar,
|
||||
userInfo,
|
||||
resetPwd
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
user: {},
|
||||
|
||||
Reference in New Issue
Block a user