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

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

parent e914ed57
......@@ -3,7 +3,7 @@ import config from '../config';
export default {
getPageById(params) {
return http.get(`${config.apiHost}/editor/get/${params.pageId}`);
return http.get(`${config.apiHost}/editor/get/${params.pageId}?lite=1`);
},
getShopCartCount() {
return http.get(`${config.kdspHost}/api/kdsp/shop-cart/count`);
......
......@@ -6,7 +6,8 @@ const hostMap = {
kdspHost: `${protocol}//talos-bfe.liangkebang.net`,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`,
mallHost: `${protocol}://mall-bfe.liangkebang.net`,
test: true
test: true,
yxmTenantId: 560761
};
if (EASY_ENV_IS_BROWSER) {
......
......@@ -5,5 +5,6 @@ export default {
kdspHost: `https://talos.q-gp.com`,
shenceUrl: `https://bn.xyqb.com/sa?project=production`,
mallHost: `https://mall.q-gp.com`,
test: false
test: false,
yxmTenantId: 560761
};
......@@ -6,7 +6,8 @@ const hostMap = {
kdspHost: `${protocol}//talos-test1.liangkebang.net`,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`,
mallHost: `${protocol}://mall-test1.liangkebang.net`,
test: true
test: true,
yxmTenantId: 560761
};
if (EASY_ENV_IS_BROWSER) {
......
......@@ -24,7 +24,7 @@ import api from '@/api/editor.api';
import cfg from '@/config/index';
import localStorage from '@/service/localStorage.service';
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';
const WEAPP_PATH = 'pages/webview/webview';
......@@ -120,7 +120,9 @@ export default {
},
onShareOverlayClick() {
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(() => {
this.shareOpenMethod === 2 && navToDlApp();
}, 2000);
......
......@@ -7,7 +7,8 @@
"kdspHost": "https://talos-bfe.liangkebang.net",
"loginUrl": "",
"mallHost": "https://mall-bfe.liangkebang.net",
"h5ShopHost": "https://tenet-bfe.liangkebang.net/#"
"h5ShopHost": "https://tenet-bfe.liangkebang.net/#",
"yxmTenantId": 560761
},
"mysql": {
"low_code": {
......
......@@ -8,5 +8,6 @@
"mallHost": "https://mall-bfe.liangkebang.net",
"h5ShopHost": "https://tenet-bfe.liangkebang.net/#",
"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