Merge branch 'master' of https://gitee.com/beijing_hongye_huicheng/lilishop-ui
commit
1ac5dcfe25
|
@ -13,23 +13,32 @@
|
||||||
<!-- 顶部标题栏主体 -->
|
<!-- 顶部标题栏主体 -->
|
||||||
<div class="main-header-con">
|
<div class="main-header-con">
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div :class="{'header-avator-con':navType!=4, 'header-avator-con nav4':navType == 4}">
|
<div
|
||||||
|
:class="{
|
||||||
|
'header-avator-con': navType != 4,
|
||||||
|
'header-avator-con nav4': navType == 4,
|
||||||
|
}"
|
||||||
|
>
|
||||||
<!-- 通知消息 -->
|
<!-- 通知消息 -->
|
||||||
<message-tip v-if="tipsMessage" :res="tipsMessage"></message-tip>
|
<message-tip v-if="tipsMessage" :res="tipsMessage"></message-tip>
|
||||||
<!-- 用户头像 -->
|
<!-- 用户头像 -->
|
||||||
<div class="user-dropdown-menu-con">
|
<div class="user-dropdown-menu-con">
|
||||||
|
|
||||||
<Row type="flex" justify="end" align="middle" class="user-dropdown-innercon">
|
<Row type="flex" justify="end" align="middle" class="user-dropdown-innercon">
|
||||||
<Dropdown transfer trigger="hover" @on-click="handleClickUserDropdown">
|
<Dropdown transfer trigger="hover" @on-click="handleClickUserDropdown">
|
||||||
<div class="dropList">
|
<div class="dropList">
|
||||||
<span class="main-user-name">{{ userInfo.nickName }}</span>
|
<span class="main-user-name">{{ userInfo.nickName }}</span>
|
||||||
<Icon type="md-arrow-dropdown" />
|
<Icon type="md-arrow-dropdown" />
|
||||||
<Avatar :src="avatarPath" style="background: #fff;margin-left: 10px;"></Avatar>
|
<Avatar
|
||||||
|
:src="avatarPath"
|
||||||
|
style="background: #fff; margin-left: 10px"
|
||||||
|
></Avatar>
|
||||||
</div>
|
</div>
|
||||||
<DropdownMenu slot="list">
|
<DropdownMenu slot="list">
|
||||||
<DropdownItem name="personalCenter">{{ $t('userCenter') }}</DropdownItem>
|
<DropdownItem name="personalCenter">{{
|
||||||
<DropdownItem name="changePass">{{ $t('changePass') }}</DropdownItem>
|
$t("userCenter")
|
||||||
<DropdownItem name="loginOut" divided>{{ $t('logout') }}</DropdownItem>
|
}}</DropdownItem>
|
||||||
|
<DropdownItem name="changePass">{{ $t("changePass") }}</DropdownItem>
|
||||||
|
<DropdownItem name="loginOut" divided>{{ $t("logout") }}</DropdownItem>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -90,7 +99,7 @@ export default {
|
||||||
},
|
},
|
||||||
lang() {
|
lang() {
|
||||||
return this.$store.state.app.lang;
|
return this.$store.state.app.lang;
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -131,13 +140,13 @@ export default {
|
||||||
}
|
}
|
||||||
// 退出登录
|
// 退出登录
|
||||||
else if (name === "loginOut") {
|
else if (name === "loginOut") {
|
||||||
logout().then(res => {
|
logout().then((res) => {
|
||||||
this.$store.commit("logout", this);
|
this.$store.commit("logout", this);
|
||||||
this.$store.commit('setAdded', false);
|
this.$store.commit("setAdded", false);
|
||||||
this.setStore("accessToken", "");
|
this.setStore("accessToken", "");
|
||||||
this.setStore("refreshToken", "");
|
this.setStore("refreshToken", "");
|
||||||
this.$router.push({ path: "/login" });
|
this.$router.push({ path: "/login" });
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//切换标签
|
//切换标签
|
||||||
|
@ -149,12 +158,7 @@ export default {
|
||||||
});
|
});
|
||||||
if (!openpageHasTag) {
|
if (!openpageHasTag) {
|
||||||
// 解决关闭当前标签后再点击回退按钮会退到当前页时没有标签的问题
|
// 解决关闭当前标签后再点击回退按钮会退到当前页时没有标签的问题
|
||||||
util.openNewPage(
|
util.openNewPage(this, name, this.$route.params || {}, this.$route.query || {});
|
||||||
this,
|
|
||||||
name,
|
|
||||||
this.$route.params || {},
|
|
||||||
this.$route.query || {}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//宽度动态计算
|
//宽度动态计算
|
||||||
|
|
Loading…
Reference in New Issue