Commit 6768af94 by liimin

1、修改登录oss 时,超时退出,404的问题

2、商户类型帐户登录,右上角显示商户名称。员工类型帐户登录,右上角显示员工姓名
1 parent e2de31bc
.i { display: inline-block; vertical-align: middle; background-image: url(./sprite.png) }
.i-activity-active { width: 20px; height: 20px; background-position: -30px -42px; }
.i-activity { width: 20px; height: 20px; background-position: -60px -42px; }
.i-activity-active { width: 20px; height: 20px; background-position: -60px -73px; }
.i-activity { width: 20px; height: 20px; background-position: -90px -73px; }
.i-activityCenter-active { width: 20px; height: 21px; background-position: -42px 0px; }
.i-activityCenter { width: 20px; height: 20px; background-position: -102px 0px; }
.i-arrow-down { width: 20px; height: 20px; background-position: -102px -30px; }
.i-authorize-active { width: 20px; height: 20px; background-position: 0px -73px; }
.i-authorize { width: 20px; height: 20px; background-position: -30px -73px; }
.i-activityCenter { width: 20px; height: 20px; background-position: -132px 0px; }
.i-arrow-down { width: 20px; height: 20px; background-position: -132px -30px; }
.i-authorize-active { width: 20px; height: 20px; background-position: -132px -60px; }
.i-authorize { width: 20px; height: 20px; background-position: 0px -104px; }
.i-avatar { width: 32px; height: 32px; background-position: 0px 0px; }
.i-back { width: 10px; height: 10px; background-position: -222px -160px; }
.i-checked { width: 20px; height: 20px; background-position: -60px -73px; }
.i-contact { width: 16px; height: 16px; background-position: -222px -60px; }
.i-custom-active { width: 20px; height: 20px; background-position: -90px -73px; }
.i-custom { width: 20px; height: 20px; background-position: -132px 0px; }
.i-dataview-active { width: 20px; height: 20px; background-position: -132px -30px; }
.i-dataview { width: 20px; height: 20px; background-position: -132px -60px; }
.i-dot { width: 12px; height: 12px; background-position: -222px -138px; }
.i-drainage-active { width: 20px; height: 20px; background-position: 0px -103px; }
.i-drainage { width: 20px; height: 20px; background-position: -30px -103px; }
.i-edit-active { width: 20px; height: 20px; background-position: -60px -103px; }
.i-edit { width: 20px; height: 20px; background-position: -90px -103px; }
.i-equity-active { width: 20px; height: 20px; background-position: -120px -103px; }
.i-equity { width: 20px; height: 20px; background-position: -162px 0px; }
.i-exchange-active { width: 20px; height: 20px; background-position: -162px -30px; }
.i-exchange-disabled { width: 20px; height: 20px; background-position: -162px -60px; }
.i-exchange { width: 20px; height: 20px; background-position: -162px -90px; }
.i-finance-active { width: 20px; height: 20px; background-position: 0px -133px; }
.i-finance { width: 20px; height: 20px; background-position: -30px -133px; }
.i-home-active { width: 20px; height: 20px; background-position: -60px -133px; }
.i-home { width: 20px; height: 20px; background-position: -90px -133px; }
.i-left { width: 10px; height: 9px; background-position: 0px -193px; }
.i-live-active { width: 20px; height: 20px; background-position: -120px -133px; }
.i-live { width: 20px; height: 20px; background-position: -150px -133px; }
.i-logoff-active { width: 20px; height: 20px; background-position: -192px 0px; }
.i-logoff { width: 20px; height: 20px; background-position: -192px -30px; }
.i-marketing-active { width: 20px; height: 20px; background-position: -192px -60px; }
.i-marketing { width: 20px; height: 20px; background-position: -192px -90px; }
.i-message-active { width: 16px; height: 16px; background-position: -222px -86px; }
.i-message { width: 16px; height: 16px; background-position: -222px -112px; }
.i-outbound-active { width: 20px; height: 21px; background-position: -72px 0px; }
.i-outbound { width: 20px; height: 20px; background-position: -192px -120px; }
.i-password { width: 20px; height: 20px; background-position: 0px -163px; }
.i-provider-active { width: 20px; height: 21px; background-position: 0px -42px; }
.i-provider { width: 20px; height: 20px; background-position: -30px -163px; }
.i-right { width: 8px; height: 8px; background-position: -20px -193px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -60px -163px; }
.i-salepre { width: 20px; height: 20px; background-position: -90px -163px; }
.i-services-active { width: 20px; height: 20px; background-position: -120px -163px; }
.i-services { width: 20px; height: 20px; background-position: -150px -163px; }
.i-settings-active { width: 20px; height: 20px; background-position: -180px -163px; }
.i-settings { width: 20px; height: 20px; background-position: -222px 0px; }
.i-user { width: 20px; height: 20px; background-position: -222px -30px; }
\ No newline at end of file
.i-back { width: 10px; height: 10px; background-position: -160px -194px; }
.i-checked { width: 20px; height: 20px; background-position: -30px -104px; }
.i-contact { width: 16px; height: 16px; background-position: -60px -194px; }
.i-content-active { width: 20px; height: 21px; background-position: -72px 0px; }
.i-content { width: 20px; height: 21px; background-position: 0px -42px; }
.i-custom-active { width: 20px; height: 20px; background-position: -60px -104px; }
.i-custom { width: 20px; height: 20px; background-position: -90px -104px; }
.i-dataview-active { width: 20px; height: 20px; background-position: -120px -104px; }
.i-dataview { width: 20px; height: 20px; background-position: -162px 0px; }
.i-dot { width: 12px; height: 12px; background-position: -138px -194px; }
.i-drainage-active { width: 20px; height: 20px; background-position: -162px -30px; }
.i-drainage { width: 20px; height: 20px; background-position: -162px -60px; }
.i-edit-active { width: 20px; height: 20px; background-position: -162px -90px; }
.i-edit { width: 20px; height: 20px; background-position: 0px -134px; }
.i-equity-active { width: 20px; height: 20px; background-position: -30px -134px; }
.i-equity { width: 20px; height: 20px; background-position: -60px -134px; }
.i-exchange-active { width: 20px; height: 20px; background-position: -90px -134px; }
.i-exchange-disabled { width: 20px; height: 20px; background-position: -120px -134px; }
.i-exchange { width: 20px; height: 20px; background-position: -150px -134px; }
.i-finance-active { width: 20px; height: 20px; background-position: -192px 0px; }
.i-finance { width: 20px; height: 20px; background-position: -192px -30px; }
.i-home-active { width: 20px; height: 20px; background-position: -192px -60px; }
.i-home { width: 20px; height: 20px; background-position: -192px -90px; }
.i-left { width: 10px; height: 9px; background-position: -180px -194px; }
.i-link-active { width: 20px; height: 21px; background-position: -30px -42px; }
.i-link { width: 20px; height: 21px; background-position: -60px -42px; }
.i-live-active { width: 20px; height: 20px; background-position: -192px -120px; }
.i-live { width: 20px; height: 20px; background-position: 0px -164px; }
.i-logoff-active { width: 20px; height: 20px; background-position: -30px -164px; }
.i-logoff { width: 20px; height: 20px; background-position: -60px -164px; }
.i-marketing-active { width: 20px; height: 20px; background-position: -90px -164px; }
.i-marketing { width: 20px; height: 20px; background-position: -120px -164px; }
.i-message-active { width: 16px; height: 16px; background-position: -86px -194px; }
.i-message { width: 16px; height: 16px; background-position: -112px -194px; }
.i-outbound-active { width: 20px; height: 21px; background-position: -102px 0px; }
.i-outbound { width: 20px; height: 20px; background-position: -150px -164px; }
.i-password { width: 20px; height: 20px; background-position: -180px -164px; }
.i-provider-active { width: 20px; height: 21px; background-position: -102px -31px; }
.i-provider { width: 20px; height: 20px; background-position: -222px 0px; }
.i-right { width: 8px; height: 8px; background-position: -200px -194px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -222px -30px; }
.i-salepre { width: 20px; height: 20px; background-position: -222px -60px; }
.i-services-active { width: 20px; height: 20px; background-position: -222px -90px; }
.i-services { width: 20px; height: 20px; background-position: -222px -120px; }
.i-settings-active { width: 20px; height: 20px; background-position: -222px -150px; }
.i-settings { width: 20px; height: 20px; background-position: 0px -194px; }
.i-subscription-active { width: 20px; height: 21px; background-position: 0px -73px; }
.i-subscription { width: 20px; height: 21px; background-position: -30px -73px; }
.i-user { width: 20px; height: 20px; background-position: -30px -194px; }
\ No newline at end of file

22.6 KB | W: | H:

24.9 KB | W: | H:

src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2022-12-28 10:03:28
* @LastEditTime: 2022-12-30 14:37:55
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
let cfg = require('./conf.js')
......@@ -15,7 +15,7 @@ export const fetchConfig = (isEnv = sw) => {
return Promise.resolve(cfg)
}
return new Http({ headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config')
return new Http({ headers: { refererurl: location.pathname }, request: { timeout: 30000 } }).get('https://oss-config.dev.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -37,7 +37,7 @@
<i class="i i-avatar" />
</div>
<template v-if="auth.session">
<span class="nav-text nav-text-avatar">{{ auth.session.userName }}</span>
<span class="nav-text nav-text-avatar" :title="showName">{{ showName }}</span>
<el-dropdown @command="handleCommand" trigger="click" :hide-on-click="false" @visible-change="dropdownVisibleChange">
<span class="el-dropdown-link">
<i class="i i-arrow-down" :class="{ drOpen }"></i>
......@@ -96,7 +96,11 @@ export default {
}
},
computed: {
...mapGetters(['auth'])
...mapGetters(['auth']),
showName() {
const { userType, userName, merchantName } = this.auth?.session
return { userName, merchantName }[{ 1: 'merchantName', 2: 'userName' }[userType]] || ''
}
},
beforeDestroy() {
this.resetIcon()
......@@ -224,6 +228,10 @@ export default {
margin-left: 2px;
&-avatar {
margin-left: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 16em;
}
}
.nav-left {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!