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
b2551092
Commit
b2551092
authored
Oct 15, 2024
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改购物车跳转
parent
fd6d4f05
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
13 deletions
+18
-13
dev.config.ts
app/web/config/dev.config.ts
+1
-0
prod.config.ts
app/web/config/prod.config.ts
+1
-0
test.config.ts
app/web/config/test.config.ts
+1
-0
index.vue
app/web/page/activity/component/BackTop/index.vue
+14
-9
state.ts
app/web/page/store/modules/activity/state.ts
+1
-4
No files found.
app/web/config/dev.config.ts
View file @
b2551092
...
...
@@ -7,6 +7,7 @@ const hostMap = {
kdspHost
:
`
${
protocol
}
//kdsp-api-ds.liangkebang.net`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
mallHost
:
`
${
protocol
}
//mall-ds.liangkebang.net`
,
h5MallHost
:
`
${
protocol
}
//xincheng-ds.liangkebang.net`
,
xyqbH5Host
:
`
${
protocol
}
//mapi-ds.liangkebang.net`
,
test
:
true
,
yxmTenantId
:
560761
,
...
...
app/web/config/prod.config.ts
View file @
b2551092
...
...
@@ -8,6 +8,7 @@ const hostMap = {
kdspHost
:
`
${
protocol
}
//kdsp-api.q-gp.com`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=production`
,
mallHost
:
`
${
protocol
}
//mall.q-gp.com`
,
h5MallHost
:
`
${
protocol
}
//saas.q-gp.com`
,
xyqbH5Host
:
`
${
protocol
}
//h5-api.q-gp.com`
,
test
:
false
,
yxmTenantId
:
560761
,
...
...
app/web/config/test.config.ts
View file @
b2551092
...
...
@@ -7,6 +7,7 @@ const hostMap = {
kdspHost
:
`
${
protocol
}
//kdsp-api-test1.liangkebang.net`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
mallHost
:
`
${
protocol
}
//mall-test1.liangkebang.net`
,
h5MallHost
:
`
${
protocol
}
//xincheng-test1.liangkebang.net`
,
xyqbH5Host
:
`
${
protocol
}
//mapi-test1.liangkebang.net`
,
test
:
true
,
yxmTenantId
:
560761
,
...
...
app/web/page/activity/component/BackTop/index.vue
View file @
b2551092
...
...
@@ -62,7 +62,20 @@ export default {
if
(
isDef
(
this
.
cartIndex
)
&&
this
.
cartIndex
!==
-
1
&&
btAttachVal
.
length
)
{
btAttachVal
[
this
.
cartIndex
].
info
=
this
.
cartCount
;
}
return
isApp
?
btAttachVal
:
isWxMp
?
btAttachVal
.
filter
(
item
=>
item
.
persets
!==
'
购物车
'
)
:
[];
if
(
isApp
)
{
if
(
isHarmonyOS
)
{
return
btAttachVal
.
map
(
item
=>
{
if
(
item
.
persets
===
'
购物车
'
)
{
item
.
url
=
`
${
cfg
.
h5MallHost
}
/shopCart`
}
return
item
;
});
}
return
btAttachVal
;
}
else
if
(
isWxMp
)
{
return
btAttachVal
.
filter
(
item
=>
item
.
persets
!==
'
购物车
'
);
}
return
[]
// if (this.pageData.props && this.pageData.props.btAttachVal) {
// const { btAttachVal, showShare } = this.pageData.props;
// const btAttachValDeep = JSON.parse(JSON.stringify(btAttachVal));
...
...
@@ -86,7 +99,6 @@ export default {
backTopList
:
{
immediate
:
true
,
handler
(
val
)
{
console
.
log
(
'
backTopList val :>>
'
,
val
);
this
.
cartIndex
=
(
val
||
[]).
findIndex
(
item
=>
item
.
persets
===
'
购物车
'
);
this
.
getCartCountDebounce
();
}
...
...
@@ -96,9 +108,6 @@ export default {
if
(
!
EASY_ENV_IS_NODE
)
{
this
.
jsBridge
=
new
Bridge
();
this
.
initShareInfo
();
console
.
log
(
'
this.backTopList :>>
'
,
this
.
backTopList
);
console
.
log
(
'
isHarmonyOS :>>
'
,
isHarmonyOS
);
console
.
log
(
'
cfg.mallHost :>>
'
,
cfg
.
mallHost
);
this
.
getMpSchema
();
}
},
...
...
@@ -108,9 +117,6 @@ export default {
this
.
getCartCountDebounce
();
}
});
console
.
log
(
'
this.backTopList :>>
'
,
this
.
backTopList
);
console
.
log
(
'
isHarmonyOS :>>
'
,
isHarmonyOS
);
console
.
log
(
'
cfg.mallHost :>>
'
,
cfg
.
mallHost
);
},
methods
:
{
...
...
@@ -118,7 +124,6 @@ export default {
if
(
isH5Normal
&&
EASY_ENV_IS_BROWSER
&&
this
.
wxAppId
)
{
try
{
console
.
log
(
this
.
pageInfo
.
tenantId
);
console
.
log
(
'
-----2222222---------
'
);
console
.
log
(
'
-----3333333---------
'
);
const
[
schema
]
=
await
api
.
getMpSchema
({
miniUrl
:
WEAPP_PATH
,
...
...
app/web/page/store/modules/activity/state.ts
View file @
b2551092
import
{
isHarmonyOS
}
from
'
@/service/utils.service
'
;
import
hostPath
from
'
@/config
'
;
interface
Schame
{
key
:
string
;
name
:
string
;
...
...
@@ -80,7 +77,7 @@ export const defaultState = {
{
name
:
'
购物车
'
,
icon
:
'
shopping-cart-o
'
,
url
:
isHarmonyOS
?
`
${
hostPath
.
mallHost
}
/shopCart`
:
'
xyqb://shoppingCartTab
'
,
url
:
'
xyqb://shoppingCartTab
'
,
color
:
'
#333
'
,
background
:
'
#fff
'
}
...
...
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