Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks-h5
Commits
5940238c
Commit
5940238c
authored
Nov 16, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(backtop): 调整租户H5倒流策略
parent
e914ed57
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
8 deletions
+15
-8
editor.api.ts
app/web/api/editor.api.ts
+1
-1
dev.config.ts
app/web/config/dev.config.ts
+2
-1
prod.config.ts
app/web/config/prod.config.ts
+2
-1
test.config.ts
app/web/config/test.config.ts
+2
-1
index.vue
app/web/page/activity/component/BackTop/index.vue
+4
-2
apollo.json
config/apollo.json
+2
-1
apollo.ssr.json
config/apollo.ssr.json
+2
-1
No files found.
app/web/api/editor.api.ts
View file @
5940238c
...
...
@@ -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`
);
...
...
app/web/config/dev.config.ts
View file @
5940238c
...
...
@@ -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
)
{
...
...
app/web/config/prod.config.ts
View file @
5940238c
...
...
@@ -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
};
app/web/config/test.config.ts
View file @
5940238c
...
...
@@ -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
)
{
...
...
app/web/page/activity/component/BackTop/index.vue
View file @
5940238c
...
...
@@ -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
);
...
...
config/apollo.json
View file @
5940238c
...
...
@@ -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"
:
{
...
...
config/apollo.ssr.json
View file @
5940238c
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment