Commit c63e6734 by 李敏

Merge branch 'v3.19.0' into 'master'

V3.19.0

See merge request !7
2 parents f82be725 d996ed36
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"@sentry/vue": "^7.7.0", "@sentry/vue": "^7.7.0",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^2.1.0", "glsx-common": "^2.10.1",
"glsx-common-sdk": "^0.3.0", "glsx-common-sdk": "^0.3.0",
"gltracker": "^0.1.3", "gltracker": "^0.1.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -8235,9 +8235,9 @@ ...@@ -8235,9 +8235,9 @@
} }
}, },
"node_modules/glsx-common": { "node_modules/glsx-common": {
"version": "2.1.0", "version": "2.10.1",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.1.0.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.10.1.tgz",
"integrity": "sha512-wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q==", "integrity": "sha512-bPEf1VZ25X1JPq63rsbmjLWRjwtnjmnCfDm4ktuIqlSIuG/Ci83OZGYOOXTVX17lQX/nqp7plYdTSbuwvA+39A==",
"dependencies": { "dependencies": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -8251,9 +8251,9 @@ ...@@ -8251,9 +8251,9 @@
"integrity": "sha512-hoTtZ2SEFzoJkW8aIYyb8ZOsaMqivCDOvPH6wvTLPXwFdMgZsls6E4nsTpOyC8WmPN5GmCB1QFyFCqTYsYE8Hg==" "integrity": "sha512-hoTtZ2SEFzoJkW8aIYyb8ZOsaMqivCDOvPH6wvTLPXwFdMgZsls6E4nsTpOyC8WmPN5GmCB1QFyFCqTYsYE8Hg=="
}, },
"node_modules/glsx-common/node_modules/qs": { "node_modules/glsx-common/node_modules/qs": {
"version": "6.11.1", "version": "6.11.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.1.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
"integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==", "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
"dependencies": { "dependencies": {
"side-channel": "^1.0.4" "side-channel": "^1.0.4"
}, },
...@@ -26282,9 +26282,9 @@ ...@@ -26282,9 +26282,9 @@
} }
}, },
"glsx-common": { "glsx-common": {
"version": "2.1.0", "version": "2.10.1",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.1.0.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.10.1.tgz",
"integrity": "sha512-wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q==", "integrity": "sha512-bPEf1VZ25X1JPq63rsbmjLWRjwtnjmnCfDm4ktuIqlSIuG/Ci83OZGYOOXTVX17lQX/nqp7plYdTSbuwvA+39A==",
"requires": { "requires": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -26293,9 +26293,9 @@ ...@@ -26293,9 +26293,9 @@
}, },
"dependencies": { "dependencies": {
"qs": { "qs": {
"version": "6.11.1", "version": "6.11.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.1.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
"integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==", "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
"requires": { "requires": {
"side-channel": "^1.0.4" "side-channel": "^1.0.4"
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"@sentry/vue": "^7.7.0", "@sentry/vue": "^7.7.0",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^2.1.0", "glsx-common": "^2.10.1",
"glsx-common-sdk": "^0.3.0", "glsx-common-sdk": "^0.3.0",
"gltracker": "^0.1.3", "gltracker": "^0.1.3",
"md5": "^2.3.0", "md5": "^2.3.0",
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
.i-arrow-down { width: 20px; height: 20px; background-position: -60px 0px; } .i-arrow-down { width: 20px; height: 20px; background-position: -60px 0px; }
.i-authorize-active { width: 20px; height: 20px; background-position: -60px -30px; } .i-authorize-active { width: 20px; height: 20px; background-position: -60px -30px; }
.i-authorize { width: 20px; height: 20px; background-position: 0px -60px; } .i-authorize { width: 20px; height: 20px; background-position: 0px -60px; }
.i-avatar { width: 16px; height: 16px; background-position: -240px -90px; } .i-avatar { width: 16px; height: 16px; background-position: -240px -210px; }
.i-back { width: 12px; height: 12px; background-position: -240px -194px; } .i-back { width: 12px; height: 12px; background-position: -78px -240px; }
.i-checked { width: 20px; height: 20px; background-position: -30px -60px; } .i-checked { width: 20px; height: 20px; background-position: -30px -60px; }
.i-commodity-active { width: 20px; height: 20px; background-position: -60px -60px; } .i-commodity-active { width: 20px; height: 20px; background-position: -60px -60px; }
.i-commodity { width: 20px; height: 20px; background-position: -90px 0px; } .i-commodity { width: 20px; height: 20px; background-position: -90px 0px; }
.i-contact { width: 16px; height: 16px; background-position: -240px -116px; } .i-contact { width: 16px; height: 16px; background-position: 0px -240px; }
.i-content-active { width: 20px; height: 20px; background-position: -90px -30px; } .i-content-active { width: 20px; height: 20px; background-position: -90px -30px; }
.i-content { width: 20px; height: 20px; background-position: -90px -60px; } .i-content { width: 20px; height: 20px; background-position: -90px -60px; }
.i-coupon-active { width: 20px; height: 20px; background-position: 0px -90px; } .i-coupon-active { width: 20px; height: 20px; background-position: 0px -90px; }
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.i-default { width: 20px; height: 20px; background-position: -120px -30px; } .i-default { width: 20px; height: 20px; background-position: -120px -30px; }
.i-discover-active { width: 20px; height: 20px; background-position: -120px -60px; } .i-discover-active { width: 20px; height: 20px; background-position: -120px -60px; }
.i-discover { width: 20px; height: 20px; background-position: -120px -90px; } .i-discover { width: 20px; height: 20px; background-position: -120px -90px; }
.i-dot { width: 12px; height: 12px; background-position: -240px -216px; } .i-dot { width: 12px; height: 12px; background-position: -100px -240px; }
.i-edit-active { width: 20px; height: 20px; background-position: 0px -120px; } .i-edit-active { width: 20px; height: 20px; background-position: 0px -120px; }
.i-edit { width: 20px; height: 20px; background-position: -30px -120px; } .i-edit { width: 20px; height: 20px; background-position: -30px -120px; }
.i-equity-active { width: 20px; height: 20px; background-position: -60px -120px; } .i-equity-active { width: 20px; height: 20px; background-position: -60px -120px; }
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
.i-home { width: 20px; height: 20px; background-position: 0px -150px; } .i-home { width: 20px; height: 20px; background-position: 0px -150px; }
.i-inventory-active { width: 20px; height: 20px; background-position: -30px -150px; } .i-inventory-active { width: 20px; height: 20px; background-position: -30px -150px; }
.i-inventory { width: 20px; height: 20px; background-position: -60px -150px; } .i-inventory { width: 20px; height: 20px; background-position: -60px -150px; }
.i-left { width: 10px; height: 9px; background-position: 0px -240px; } .i-left { width: 10px; height: 9px; background-position: -122px -240px; }
.i-link-active { width: 20px; height: 20px; background-position: -90px -150px; } .i-link-active { width: 20px; height: 20px; background-position: -90px -150px; }
.i-link { width: 20px; height: 20px; background-position: -120px -150px; } .i-link { width: 20px; height: 20px; background-position: -120px -150px; }
.i-live-active { width: 20px; height: 20px; background-position: -150px -150px; } .i-live-active { width: 20px; height: 20px; background-position: -150px -150px; }
...@@ -47,30 +47,34 @@ ...@@ -47,30 +47,34 @@
.i-mall { width: 20px; height: 20px; background-position: -180px -120px; } .i-mall { width: 20px; height: 20px; background-position: -180px -120px; }
.i-mapping-active { width: 20px; height: 20px; background-position: -180px -150px; } .i-mapping-active { width: 20px; height: 20px; background-position: -180px -150px; }
.i-mapping { width: 20px; height: 20px; background-position: 0px -180px; } .i-mapping { width: 20px; height: 20px; background-position: 0px -180px; }
.i-message-active { width: 16px; height: 16px; background-position: -240px -142px; } .i-message-active { width: 16px; height: 16px; background-position: -26px -240px; }
.i-message { width: 16px; height: 16px; background-position: -240px -168px; } .i-message { width: 16px; height: 16px; background-position: -52px -240px; }
.i-ordermanage-active { width: 20px; height: 20px; background-position: -30px -180px; } .i-ordermanage-active { width: 20px; height: 20px; background-position: -30px -180px; }
.i-ordermanage { width: 20px; height: 20px; background-position: -60px -180px; } .i-ordermanage { width: 20px; height: 20px; background-position: -60px -180px; }
.i-outbound-active { width: 20px; height: 20px; background-position: -90px -180px; } .i-outbound-active { width: 20px; height: 20px; background-position: -90px -180px; }
.i-outbound { width: 20px; height: 20px; background-position: -120px -180px; } .i-outbound { width: 20px; height: 20px; background-position: -120px -180px; }
.i-password { width: 20px; height: 20px; background-position: -150px -180px; } .i-password { width: 20px; height: 20px; background-position: -150px -180px; }
.i-provider-active { width: 20px; height: 20px; background-position: -180px -180px; }
.i-provider { width: 20px; height: 20px; background-position: -210px 0px; }
.i-purchase-active { width: 20px; height: 20px; background-position: -210px -30px; }
.i-purchase { width: 20px; height: 20px; background-position: -210px -60px; }
.i-right { width: 8px; height: 8px; background-position: -20px -240px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -210px -90px; }
.i-salepre { width: 20px; height: 20px; background-position: -210px -120px; }
.i-scene-active { width: 20px; height: 20px; background-position: -210px -150px; }
.i-scene { width: 20px; height: 20px; background-position: -210px -180px; }
.i-settings-active { width: 20px; height: 20px; background-position: 0px -210px; }
.i-settings { width: 20px; height: 20px; background-position: -30px -210px; }
.i-shop-active { width: 20px; height: 20px; background-position: -60px -210px; }
.i-shop { width: 20px; height: 20px; background-position: -90px -210px; }
.i-store-active { width: 20px; height: 20px; background-position: -120px -210px; }
.i-store { width: 20px; height: 20px; background-position: -150px -210px; }
.i-subscription-active { width: 20px; height: 20px; background-position: -180px -210px; }
.i-subscription { width: 20px; height: 20px; background-position: -210px -210px; }
.i-tools-active { width: 20px; height: 20px; background-position: -240px 0px; }
.i-tools { width: 20px; height: 20px; background-position: -240px -30px; }
.i-user { width: 20px; height: 20px; background-position: -240px -60px; }
\ No newline at end of file \ No newline at end of file
.i-peregrination-active { width: 20px; height: 20px; background-position: -180px -180px; }
.i-peregrination { width: 20px; height: 20px; background-position: -210px 0px; }
.i-points-active { width: 20px; height: 20px; background-position: -210px -30px; }
.i-points { width: 20px; height: 20px; background-position: -210px -60px; }
.i-provider-active { width: 20px; height: 20px; background-position: -210px -90px; }
.i-provider { width: 20px; height: 20px; background-position: -210px -120px; }
.i-purchase-active { width: 20px; height: 20px; background-position: -210px -150px; }
.i-purchase { width: 20px; height: 20px; background-position: -210px -180px; }
.i-right { width: 8px; height: 8px; background-position: -142px -240px; }
.i-salepre-active { width: 20px; height: 20px; background-position: 0px -210px; }
.i-salepre { width: 20px; height: 20px; background-position: -30px -210px; }
.i-scene-active { width: 20px; height: 20px; background-position: -60px -210px; }
.i-scene { width: 20px; height: 20px; background-position: -90px -210px; }
.i-settings-active { width: 20px; height: 20px; background-position: -120px -210px; }
.i-settings { width: 20px; height: 20px; background-position: -150px -210px; }
.i-shop-active { width: 20px; height: 20px; background-position: -180px -210px; }
.i-shop { width: 20px; height: 20px; background-position: -210px -210px; }
.i-store-active { width: 20px; height: 20px; background-position: -240px 0px; }
.i-store { width: 20px; height: 20px; background-position: -240px -30px; }
.i-subscription-active { width: 20px; height: 20px; background-position: -240px -60px; }
.i-subscription { width: 20px; height: 20px; background-position: -240px -90px; }
.i-tools-active { width: 20px; height: 20px; background-position: -240px -120px; }
.i-tools { width: 20px; height: 20px; background-position: -240px -150px; }
.i-user { width: 20px; height: 20px; background-position: -240px -180px; }
\ No newline at end of file \ No newline at end of file

52.4 KB | W: | H:

55.5 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 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2023-09-15 12:39:40 * @LastEditTime: 2023-10-07 10:01:47
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
let cfg = require('./conf.js') let cfg = require('./conf.js')
...@@ -25,7 +25,7 @@ export const fetchConfig = (isEnv = sw) => { ...@@ -25,7 +25,7 @@ export const fetchConfig = (isEnv = sw) => {
if ((_config && !_constRoutes.includes(_pathname)) || _pathname === _login_path || (_pathname === '/' && _login_path === '/login')) { if ((_config && !_constRoutes.includes(_pathname)) || _pathname === _login_path || (_pathname === '/' && _login_path === '/login')) {
return Promise.resolve(_config) return Promise.resolve(_config)
} }
return new Http({ headers: { refererurl: _pathname }, request: { timeout: 30000 } }).get('https://oss-config.dev.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config') return new Http({ headers: { refererurl: _pathname }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<el-popover v-if="showPop && menu.isCollapse" ref="pop" :reference="reference" placement="right-start" :visible-arrow="false" width="160" :open-delay="500" trigger="hover" popper-class="el-submenu-popper-base-left-side-menu"> <el-popover v-if="showPop && menu.isCollapse" ref="pop" :reference="reference" placement="right-start" :visible-arrow="false" width="160" :open-delay="500" trigger="hover" popper-class="el-submenu-popper-base-left-side-menu">
<LeftSideMenuLv2></LeftSideMenuLv2> <LeftSideMenuLv2></LeftSideMenuLv2>
</el-popover> </el-popover>
s
</div> </div>
</template> </template>
...@@ -85,6 +84,7 @@ $width: 160px; ...@@ -85,6 +84,7 @@ $width: 160px;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 6px 20px 0 #7a7a7a33; box-shadow: 0 6px 20px 0 #7a7a7a33;
} }
animation: pulse 0.06s steps(10) forwards;
} }
// } // }
</style> </style>
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
!this.menu.isCollapse && this.emitter() !this.menu.isCollapse && this.emitter()
}, },
emitter() { emitter() {
this.bus.$emit('menuChanged', { menus: this.menuData.children.noHidden() }) this.bus.$emit('menuChanged', { menus: this.menuData.children?.noHidden() })
}, },
...mapActions('menu', ['setHoverId']) ...mapActions('menu', ['setHoverId'])
} }
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
* @Author: lizhijie429 * @Author: lizhijie429
* @Date: 2021-08-19 11:16:08 * @Date: 2021-08-19 11:16:08
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2023-09-26 11:20:06 * @LastEditTime: 2023-09-27 18:46:23
* @Description: * @Description:
--> -->
<template> <template>
<div class="logo" :class="{ collapse: menu.isCollapse }"> <div class="logo" :class="{ collapse: menu.isCollapse }">
<!-- 防止切换图片闪烁,折叠和展开分别用标签展示 --> <!-- 防止切换图片闪烁,折叠和展开分别用标签展示 -->
<el-image :src="src_logo_menu" :class="{ 'img-active': !menu.isCollapse }"></el-image> <el-image :src="src_logo_menu"></el-image>
<el-image :src="src_logo_collapse" :class="{ 'img-active': menu.isCollapse }"></el-image> <el-image :src="src_logo_collapse"></el-image>
<div class="folder" @click="toggleFolder()"> <div class="folder" @click="toggleFolder()">
<i class="i i-left"></i> <i class="i i-left"></i>
</div> </div>
...@@ -28,8 +28,8 @@ export default { ...@@ -28,8 +28,8 @@ export default {
handler(n) { handler(n) {
const { cdn, customized, assets = customized.assets } = n const { cdn, customized, assets = customized.assets } = n
const src = `${cdn}/assets/${assets}` const src = `${cdn}/assets/${assets}`
this.src_logo_menu = `${src}/logo_menu_new.png` this.src_logo_menu = `${src}/logo_menu_new_common.png`
this.src_logo_collapse = `${src}/logo_collapse_new.png` this.src_logo_collapse = `${src}/logo_collapse_new_common.png`
}, },
immediate: true immediate: true
} }
...@@ -71,17 +71,39 @@ export default { ...@@ -71,17 +71,39 @@ export default {
} }
} }
.el-image { .el-image {
z-index: -1; padding: 12px 24px !important;
height: 0; left: 0;
top: 0;
position: absolute;
&:nth-child(1) {
opacity: 1;
}
&:nth-child(2) {
opacity: 0;
} }
.img-active {
z-index: 2;
height: 70px;
} }
&.collapse { &.collapse {
i { i {
transform: rotate(180deg); transform: rotate(180deg);
} }
.el-image {
padding: 12px 8px !important;
&:nth-child(1) {
opacity: 0;
}
&:nth-child(2) {
opacity: 1;
}
}
}
&::after {
position: absolute;
content: '';
width: 100%;
border-bottom: 1px solid #f5f7fa;
height: 0;
top: 70px;
z-index: 2;
} }
} }
</style> </style>
...@@ -63,8 +63,7 @@ export default { ...@@ -63,8 +63,7 @@ export default {
z-index: 1; z-index: 1;
flex: 0 0 $menu-width; flex: 0 0 $menu-width;
text-align: left; text-align: left;
transition: flex 0.08s; transition: flex 0.06s;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
&-right { &-right {
flex: 1; flex: 1;
......
...@@ -143,7 +143,7 @@ function __gen(moduleName, menu) { ...@@ -143,7 +143,7 @@ function __gen(moduleName, menu) {
} }
if (path.includes('^')) { if (path.includes('^')) {
// const [originPath] = path.split('^') // const [originPath] = path.split('^')
_path = '^'//_gen_path_() + id _path = '^' //_gen_path_() + id
redirect = _gen_path_(children.noHidden()[0].path) redirect = _gen_path_(children.noHidden()[0].path)
} else { } else {
_path = _gen_path_() _path = _gen_path_()
...@@ -175,14 +175,22 @@ function __gen(moduleName, menu) { ...@@ -175,14 +175,22 @@ function __gen(moduleName, menu) {
*/ */
function getDefaultPath(menu) { function getDefaultPath(menu) {
const { name, children, sub = children.noHidden(), child = sub.length ? sub : children } = menu const { name, children, sub = children.noHidden(), child = sub.length ? sub : children } = menu
let { path } = child[0] const path = _loop(child)
if (path.includes('^')) {
const [, targetPath] = path.split('^')
path = targetPath || child[0].children.noHidden()[0].path
}
return _get_path_(name, path) return _get_path_(name, path)
} }
/**
* 递归获取无实际路径的菜单下的第一个子菜单的路径
* @param {*} menus
* @returns
*/
function _loop(menus) {
const { path } = menus.noHidden()[0]
if (path.includes('^')) {
return _loop(menus[0].children)
}
return path
}
function _get_path_(moduleName, p) { function _get_path_(moduleName, p) {
return `/${moduleName}${p.startsWith('/') ? p : `/${p}`}` return `/${moduleName}${p.startsWith('/') ? p : `/${p}`}`
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!