Commit 65e2853f by 李敏

Merge branch 'v3.9.0' into 'master'

V3.9.0

See merge request !3
2 parents f6f33520 e7a8ba2c
...@@ -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.0.5", "glsx-common": "^2.1.0",
"gltracker": "^0.1.3", "gltracker": "^0.1.3",
"md5": "^2.3.0", "md5": "^2.3.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
...@@ -3479,25 +3479,6 @@ ...@@ -3479,25 +3479,6 @@
"follow-redirects": "^1.14.0" "follow-redirects": "^1.14.0"
} }
}, },
"node_modules/axios/node_modules/follow-redirects": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/babel-eslint": { "node_modules/babel-eslint": {
"version": "10.1.0", "version": "10.1.0",
"resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-10.1.0.tgz", "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-10.1.0.tgz",
...@@ -7792,10 +7773,9 @@ ...@@ -7792,10 +7773,9 @@
} }
}, },
"node_modules/follow-redirects": { "node_modules/follow-redirects": {
"version": "1.13.3", "version": "1.15.2",
"resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.3.tgz?cache=0&sync_timestamp=1614437038110&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.3.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha1-5VmK1QF0wbxOhyMB6CrCzZf5Amc=", "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
"dev": true,
"funding": [ "funding": [
{ {
"type": "individual", "type": "individual",
...@@ -8254,9 +8234,9 @@ ...@@ -8254,9 +8234,9 @@
} }
}, },
"node_modules/glsx-common": { "node_modules/glsx-common": {
"version": "2.0.5", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.5.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.1.0.tgz",
"integrity": "sha512-4P5VobJFonr9avr21QVMFrY5yx1rfueyu8eVGCEGUL6B1Sp6yuv3q7F1HfsH6TyCNVThkGUlauNZnz7FiqRcIA==", "integrity": "sha512-wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q==",
"dependencies": { "dependencies": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -8265,9 +8245,9 @@ ...@@ -8265,9 +8245,9 @@
} }
}, },
"node_modules/glsx-common/node_modules/qs": { "node_modules/glsx-common/node_modules/qs": {
"version": "6.11.0", "version": "6.11.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.1.tgz",
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==",
"dependencies": { "dependencies": {
"side-channel": "^1.0.4" "side-channel": "^1.0.4"
}, },
...@@ -22454,13 +22434,6 @@ ...@@ -22454,13 +22434,6 @@
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": { "requires": {
"follow-redirects": "^1.14.0" "follow-redirects": "^1.14.0"
},
"dependencies": {
"follow-redirects": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
}
} }
}, },
"babel-eslint": { "babel-eslint": {
...@@ -25940,10 +25913,9 @@ ...@@ -25940,10 +25913,9 @@
} }
}, },
"follow-redirects": { "follow-redirects": {
"version": "1.13.3", "version": "1.15.2",
"resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.3.tgz?cache=0&sync_timestamp=1614437038110&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.3.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha1-5VmK1QF0wbxOhyMB6CrCzZf5Amc=", "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
"dev": true
}, },
"for-in": { "for-in": {
"version": "1.0.2", "version": "1.0.2",
...@@ -26304,9 +26276,9 @@ ...@@ -26304,9 +26276,9 @@
} }
}, },
"glsx-common": { "glsx-common": {
"version": "2.0.5", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.5.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.1.0.tgz",
"integrity": "sha512-4P5VobJFonr9avr21QVMFrY5yx1rfueyu8eVGCEGUL6B1Sp6yuv3q7F1HfsH6TyCNVThkGUlauNZnz7FiqRcIA==", "integrity": "sha512-wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q==",
"requires": { "requires": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -26315,9 +26287,9 @@ ...@@ -26315,9 +26287,9 @@
}, },
"dependencies": { "dependencies": {
"qs": { "qs": {
"version": "6.11.0", "version": "6.11.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.1.tgz",
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==",
"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.0.5", "glsx-common": "^2.1.0",
"gltracker": "^0.1.3", "gltracker": "^0.1.3",
"md5": "^2.3.0", "md5": "^2.3.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
......
.i { display: inline-block; vertical-align: middle; background-image: url(./sprite.png) } .i { display: inline-block; vertical-align: middle; background-image: url(./sprite.png) }
.i-activity-active { width: 20px; height: 20px; background-position: -132px 0px; } .i-activity-active { width: 20px; height: 20px; background-position: -60px -104px; }
.i-activity { width: 20px; height: 20px; background-position: -132px -30px; } .i-activity { width: 20px; height: 20px; background-position: -90px -104px; }
.i-activityCenter-active { width: 20px; height: 21px; background-position: -42px 0px; } .i-activityCenter-active { width: 20px; height: 21px; background-position: -42px 0px; }
.i-activityCenter { width: 20px; height: 20px; background-position: -132px -60px; } .i-activityCenter { width: 20px; height: 20px; background-position: -120px -104px; }
.i-arrow-down { width: 20px; height: 20px; background-position: 0px -104px; } .i-arrow-down { width: 20px; height: 20px; background-position: -163px 0px; }
.i-authorize-active { width: 20px; height: 20px; background-position: -30px -104px; } .i-authorize-active { width: 20px; height: 20px; background-position: -163px -30px; }
.i-authorize { width: 20px; height: 20px; background-position: -60px -104px; } .i-authorize { width: 20px; height: 20px; background-position: -163px -60px; }
.i-avatar { width: 32px; height: 32px; background-position: 0px 0px; } .i-avatar { width: 32px; height: 32px; background-position: 0px 0px; }
.i-back { width: 10px; height: 10px; background-position: -100px -224px; }
.i-checked { width: 20px; height: 20px; background-position: -90px -104px; }
.i-contact { width: 16px; height: 16px; background-position: 0px -224px; }
.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: -120px -104px; }
.i-custom { width: 20px; height: 20px; background-position: -162px 0px; }
.i-dataview-active { width: 20px; height: 20px; background-position: -162px -30px; }
.i-dataview { width: 20px; height: 20px; background-position: -162px -60px; }
.i-dot { width: 12px; height: 12px; background-position: -78px -224px; }
.i-drainage-active { width: 20px; height: 20px; background-position: -162px -90px; }
.i-drainage { width: 20px; height: 20px; background-position: 0px -134px; }
.i-edit-active { width: 20px; height: 20px; background-position: -30px -134px; }
.i-edit { width: 20px; height: 20px; background-position: -60px -134px; }
.i-equity-active { width: 20px; height: 20px; background-position: -90px -134px; }
.i-equity { width: 20px; height: 20px; background-position: -120px -134px; }
.i-exchange-active { width: 20px; height: 20px; background-position: -150px -134px; }
.i-exchange-disabled { width: 20px; height: 20px; background-position: -192px 0px; }
.i-exchange { width: 20px; height: 20px; background-position: -192px -30px; }
.i-finance-active { width: 20px; height: 20px; background-position: -192px -60px; }
.i-finance { width: 20px; height: 20px; background-position: -192px -90px; }
.i-home-active { width: 20px; height: 20px; background-position: -192px -120px; }
.i-home { width: 20px; height: 20px; background-position: 0px -164px; }
.i-inventory-active { width: 20px; height: 20px; background-position: -30px -164px; }
.i-inventory { width: 20px; height: 20px; background-position: -60px -164px; }
.i-left { width: 10px; height: 9px; background-position: -120px -224px; }
.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: -90px -164px; }
.i-live { width: 20px; height: 20px; background-position: -120px -164px; }
.i-logoff-active { width: 20px; height: 20px; background-position: -150px -164px; }
.i-logoff { width: 20px; height: 20px; background-position: -180px -164px; }
.i-mapping-active { width: 20px; height: 21px; background-position: -102px 0px; }
.i-mapping { width: 20px; height: 21px; background-position: -102px -31px; }
.i-marketing-active { width: 20px; height: 20px; background-position: -222px 0px; }
.i-marketing { width: 20px; height: 20px; background-position: -222px -30px; }
.i-message-active { width: 16px; height: 16px; background-position: -26px -224px; }
.i-message { width: 16px; height: 16px; background-position: -52px -224px; }
.i-outbound-active { width: 20px; height: 21px; background-position: 0px -73px; }
.i-outbound { width: 20px; height: 20px; background-position: -222px -60px; }
.i-password { width: 20px; height: 20px; background-position: -222px -90px; }
.i-provider-active { width: 20px; height: 21px; background-position: -30px -73px; }
.i-provider { width: 20px; height: 20px; background-position: -222px -120px; }
.i-purchase-active { width: 20px; height: 20px; background-position: -222px -150px; }
.i-purchase { width: 20px; height: 20px; background-position: 0px -194px; }
.i-right { width: 8px; height: 8px; background-position: -140px -224px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -30px -194px; }
.i-salepre { width: 20px; height: 20px; background-position: -60px -194px; }
.i-services-active { width: 20px; height: 20px; background-position: -90px -194px; }
.i-services { width: 20px; height: 20px; background-position: -120px -194px; }
.i-settings-active { width: 20px; height: 20px; background-position: -150px -194px; }
.i-settings { width: 20px; height: 20px; background-position: -180px -194px; }
.i-subscription-active { width: 20px; height: 21px; background-position: -60px -73px; }
.i-subscription { width: 20px; height: 21px; background-position: -90px -73px; }
.i-user { width: 20px; height: 20px; background-position: -210px -194px; }
\ No newline at end of file \ No newline at end of file
.i-back { width: 10px; height: 10px; background-position: -190px -225px; }
.i-checked { width: 20px; height: 20px; background-position: -163px -90px; }
.i-commodity-active { width: 20px; height: 21px; background-position: -72px 0px; }
.i-commodity { width: 20px; height: 21px; background-position: 0px -42px; }
.i-contact { width: 16px; height: 16px; background-position: -90px -225px; }
.i-content-active { width: 20px; height: 21px; background-position: -30px -42px; }
.i-content { width: 20px; height: 21px; background-position: -60px -42px; }
.i-coupon-active { width: 20px; height: 20px; background-position: 0px -135px; }
.i-coupon { width: 20px; height: 20px; background-position: -30px -135px; }
.i-custom-active { width: 20px; height: 20px; background-position: -60px -135px; }
.i-custom { width: 20px; height: 20px; background-position: -90px -135px; }
.i-dataview-active { width: 20px; height: 20px; background-position: -120px -135px; }
.i-dataview { width: 20px; height: 20px; background-position: -150px -135px; }
.i-discover-active { width: 20px; height: 20px; background-position: -193px 0px; }
.i-discover { width: 21px; height: 20px; background-position: -102px 0px; }
.i-dot { width: 12px; height: 12px; background-position: -168px -225px; }
.i-drainage-active { width: 20px; height: 20px; background-position: -193px -30px; }
.i-drainage { width: 20px; height: 20px; background-position: -193px -60px; }
.i-edit-active { width: 20px; height: 20px; background-position: -193px -90px; }
.i-edit { width: 20px; height: 20px; background-position: -193px -120px; }
.i-equity-active { width: 20px; height: 20px; background-position: 0px -165px; }
.i-equity { width: 20px; height: 20px; background-position: -30px -165px; }
.i-exchange-active { width: 20px; height: 20px; background-position: -60px -165px; }
.i-exchange-disabled { width: 20px; height: 20px; background-position: -90px -165px; }
.i-exchange { width: 20px; height: 20px; background-position: -120px -165px; }
.i-finance-active { width: 20px; height: 20px; background-position: -150px -165px; }
.i-finance { width: 20px; height: 20px; background-position: -180px -165px; }
.i-home-active { width: 20px; height: 20px; background-position: -223px 0px; }
.i-home { width: 20px; height: 20px; background-position: -223px -30px; }
.i-inventory-active { width: 20px; height: 20px; background-position: -223px -60px; }
.i-inventory { width: 20px; height: 20px; background-position: -223px -90px; }
.i-left { width: 10px; height: 9px; background-position: -210px -225px; }
.i-link-active { width: 20px; height: 21px; background-position: -102px -30px; }
.i-link { width: 20px; height: 21px; background-position: 0px -73px; }
.i-live-active { width: 20px; height: 20px; background-position: -223px -120px; }
.i-live { width: 20px; height: 20px; background-position: -223px -150px; }
.i-logoff-active { width: 20px; height: 20px; background-position: 0px -195px; }
.i-logoff { width: 20px; height: 20px; background-position: -30px -195px; }
.i-mall-active { width: 20px; height: 20px; background-position: -60px -195px; }
.i-mall { width: 20px; height: 20px; background-position: -90px -195px; }
.i-mapping-active { width: 20px; height: 21px; background-position: -30px -73px; }
.i-mapping { width: 20px; height: 21px; background-position: -60px -73px; }
.i-marketing-active { width: 20px; height: 20px; background-position: -120px -195px; }
.i-marketing { width: 20px; height: 20px; background-position: -150px -195px; }
.i-message-active { width: 16px; height: 16px; background-position: -116px -225px; }
.i-message { width: 16px; height: 16px; background-position: -142px -225px; }
.i-ordermanage-active { width: 20px; height: 21px; background-position: -90px -73px; }
.i-ordermanage { width: 20px; height: 21px; background-position: -133px 0px; }
.i-outbound-active { width: 20px; height: 21px; background-position: -133px -31px; }
.i-outbound { width: 20px; height: 20px; background-position: -180px -195px; }
.i-password { width: 20px; height: 20px; background-position: -210px -195px; }
.i-provider-active { width: 20px; height: 21px; background-position: -133px -62px; }
.i-provider { width: 20px; height: 20px; background-position: -253px 0px; }
.i-purchase-active { width: 20px; height: 20px; background-position: -253px -30px; }
.i-purchase { width: 20px; height: 20px; background-position: -253px -60px; }
.i-right { width: 8px; height: 8px; background-position: -230px -225px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -253px -90px; }
.i-salepre { width: 20px; height: 20px; background-position: -253px -120px; }
.i-services-active { width: 20px; height: 20px; background-position: -253px -150px; }
.i-services { width: 20px; height: 20px; background-position: -253px -180px; }
.i-settings-active { width: 20px; height: 20px; background-position: 0px -225px; }
.i-settings { width: 20px; height: 20px; background-position: -30px -225px; }
.i-subscription-active { width: 20px; height: 21px; background-position: 0px -104px; }
.i-subscription { width: 20px; height: 21px; background-position: -30px -104px; }
.i-user { width: 20px; height: 20px; background-position: -60px -225px; }
\ No newline at end of file \ No newline at end of file

28.8 KB | W: | H:

32.3 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,12 +4,13 @@ ...@@ -4,12 +4,13 @@
* @Author: limin * @Author: limin
* @Date: 2021-09-18 09:35:02 * @Date: 2021-09-18 09:35:02
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2023-04-11 10:21:58 * @LastEditTime: 2023-04-20 16:53:09
* @FilePath: \scrm-base\src\common\constants.js * @FilePath: \scrm-base\src\common\constants.js
*/ */
export default { export default {
SCRM_BASE_SESSION: 'SCRM_BASE_SESSION', SCRM_BASE_SESSION: 'SCRM_BASE_SESSION',
SCRM_BASE_MENULIST: 'SCRM_BASE_MENULIST', SCRM_BASE_MENULIST: 'SCRM_BASE_MENULIST',
SCRM_BASE_CONFIG: 'SCRM_BASE_CONFIG',
SCRM_BASE_FUNCTIONAL_FLAG: 'function', SCRM_BASE_FUNCTIONAL_FLAG: 'function',
SCRM_BASE_USERTYPE: { SCRM_BASE_USERTYPE: {
MERCHANT: '1', MERCHANT: '1',
......
...@@ -4,21 +4,26 @@ ...@@ -4,21 +4,26 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2023-04-18 18:37:49 * @LastEditTime: 2023-05-05 09:36:16
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import { constants } from '@/common' import { constants } from '@/common'
import router from '../router'
const sw = !!+process.env.VUE_APP_CONFIG_SWITCH_LOCAL const sw = !!+process.env.VUE_APP_CONFIG_SWITCH_LOCAL
export const fetchConfig = (isEnv = sw) => { export const fetchConfig = (isEnv = sw) => {
if (isEnv) { if (isEnv) {
return Promise.resolve(cfg) return Promise.resolve(cfg)
} }
const _config = utils.storage.getSession(constants.SCRM_BASE_CONFIG) const _config = utils.storage.getSession(constants.SCRM_BASE_CONFIG)
const _session = utils.storage.getSession(constants.SCRM_BASE_SESSION)
const _pathname = location.pathname const _pathname = location.pathname
if (_config && _pathname !== '/') { const _login_path = _session?.loginpath
const _constRoutes = router.constantRoutes.map(({ path }) => path)
// 如果存在配置缓存,并且当前路径不是用以区分不同产品的路由(oss:运营版,login:基础版,sp:服务商版).说明是刷新页面,则直接返回缓存的配置.另外如果当前路由与登录时缓存的路由一致,也直接返回缓存配置.
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.test.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')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!