Commit 5940238c authored by 郭志伟's avatar 郭志伟

feat(backtop): 调整租户H5倒流策略

parent e914ed57
...@@ -3,7 +3,7 @@ import config from '../config'; ...@@ -3,7 +3,7 @@ import config from '../config';
export default { export default {
getPageById(params) { getPageById(params) {
return http.get(`${config.apiHost}/editor/get/${params.pageId}`); return http.get(`${config.apiHost}/editor/get/${params.pageId}?lite=1`);
}, },
getShopCartCount() { getShopCartCount() {
return http.get(`${config.kdspHost}/api/kdsp/shop-cart/count`); return http.get(`${config.kdspHost}/api/kdsp/shop-cart/count`);
......
...@@ -6,7 +6,8 @@ const hostMap = { ...@@ -6,7 +6,8 @@ const hostMap = {
kdspHost: `${protocol}//talos-bfe.liangkebang.net`, kdspHost: `${protocol}//talos-bfe.liangkebang.net`,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`,
mallHost: `${protocol}://mall-bfe.liangkebang.net`, mallHost: `${protocol}://mall-bfe.liangkebang.net`,
test: true test: true,
yxmTenantId: 560761
}; };
if (EASY_ENV_IS_BROWSER) { if (EASY_ENV_IS_BROWSER) {
......
...@@ -5,5 +5,6 @@ export default { ...@@ -5,5 +5,6 @@ export default {
kdspHost: `https://talos.q-gp.com`, kdspHost: `https://talos.q-gp.com`,
shenceUrl: `https://bn.xyqb.com/sa?project=production`, shenceUrl: `https://bn.xyqb.com/sa?project=production`,
mallHost: `https://mall.q-gp.com`, mallHost: `https://mall.q-gp.com`,
test: false test: false,
yxmTenantId: 560761
}; };
...@@ -6,7 +6,8 @@ const hostMap = { ...@@ -6,7 +6,8 @@ const hostMap = {
kdspHost: `${protocol}//talos-test1.liangkebang.net`, kdspHost: `${protocol}//talos-test1.liangkebang.net`,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`,
mallHost: `${protocol}://mall-test1.liangkebang.net`, mallHost: `${protocol}://mall-test1.liangkebang.net`,
test: true test: true,
yxmTenantId: 560761
}; };
if (EASY_ENV_IS_BROWSER) { if (EASY_ENV_IS_BROWSER) {
......
...@@ -24,7 +24,7 @@ import api from '@/api/editor.api'; ...@@ -24,7 +24,7 @@ import api from '@/api/editor.api';
import cfg from '@/config/index'; import cfg from '@/config/index';
import localStorage from '@/service/localStorage.service'; import localStorage from '@/service/localStorage.service';
import DisableTouchMixin from '../../../mixins/disableTouch.mixin'; import DisableTouchMixin from '../../../mixins/disableTouch.mixin';
import { navToDlApp } from '@qg/citrus-ui/src/helper/service/utils'; import { navToDlApp, getParameterByName } from '@qg/citrus-ui/src/helper/service/utils';
import { EventBus } from '@qg/citrus-ui/src/helper/service/eventBus'; import { EventBus } from '@qg/citrus-ui/src/helper/service/eventBus';
const WEAPP_PATH = 'pages/webview/webview'; const WEAPP_PATH = 'pages/webview/webview';
...@@ -120,7 +120,9 @@ export default { ...@@ -120,7 +120,9 @@ export default {
}, },
onShareOverlayClick() { onShareOverlayClick() {
if (isH5Normal) { if (isH5Normal) {
window.location.href = this.shareOpenMethod === 1 ? this.mpSchema : this.appSchema; const fromHost = getParameterByName('fromHost', window.location.href);
const loginUrl = `${fromHost}/login?redirectUrl=${window.location.href}`;
window.location.href = fromHost ? loginUrl : this.shareOpenMethod === 1 ? this.mpSchema : this.appSchema;
setTimeout(() => { setTimeout(() => {
this.shareOpenMethod === 2 && navToDlApp(); this.shareOpenMethod === 2 && navToDlApp();
}, 2000); }, 2000);
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
"kdspHost": "https://talos-bfe.liangkebang.net", "kdspHost": "https://talos-bfe.liangkebang.net",
"loginUrl": "", "loginUrl": "",
"mallHost": "https://mall-bfe.liangkebang.net", "mallHost": "https://mall-bfe.liangkebang.net",
"h5ShopHost": "https://tenet-bfe.liangkebang.net/#" "h5ShopHost": "https://tenet-bfe.liangkebang.net/#",
"yxmTenantId": 560761
}, },
"mysql": { "mysql": {
"low_code": { "low_code": {
......
...@@ -8,5 +8,6 @@ ...@@ -8,5 +8,6 @@
"mallHost": "https://mall-bfe.liangkebang.net", "mallHost": "https://mall-bfe.liangkebang.net",
"h5ShopHost": "https://tenet-bfe.liangkebang.net/#", "h5ShopHost": "https://tenet-bfe.liangkebang.net/#",
"qiniuUpHost": "https://up-z0.qiniup.com", "qiniuUpHost": "https://up-z0.qiniup.com",
"qiniuHost": "https://appsync.lkbang.net" "qiniuHost": "https://appsync.lkbang.net",
"yxmTenantId": 560761
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment