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
461d276a
Commit
461d276a
authored
Oct 14, 2024
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改购物车跳转链接
parent
0d1c0e63
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
index.vue
app/web/page/activity/component/BackTop/index.vue
+1
-0
state.ts
app/web/page/store/modules/activity/state.ts
+4
-1
utils.service.ts
app/web/service/utils.service.ts
+3
-0
No files found.
app/web/page/activity/component/BackTop/index.vue
View file @
461d276a
...
@@ -111,6 +111,7 @@ export default {
...
@@ -111,6 +111,7 @@ export default {
if
(
isH5Normal
&&
EASY_ENV_IS_BROWSER
&&
this
.
wxAppId
)
{
if
(
isH5Normal
&&
EASY_ENV_IS_BROWSER
&&
this
.
wxAppId
)
{
try
{
try
{
console
.
log
(
this
.
pageInfo
.
tenantId
);
console
.
log
(
this
.
pageInfo
.
tenantId
);
console
.
log
(
'
-----2222222---------
'
);
const
[
schema
]
=
await
api
.
getMpSchema
({
const
[
schema
]
=
await
api
.
getMpSchema
({
miniUrl
:
WEAPP_PATH
,
miniUrl
:
WEAPP_PATH
,
params
:
`url=
${
encodeURIComponent
(
JSON
.
stringify
(
this
.
link
))}
`
params
:
`url=
${
encodeURIComponent
(
JSON
.
stringify
(
this
.
link
))}
`
...
...
app/web/page/store/modules/activity/state.ts
View file @
461d276a
import
{
isHarmonyOS
}
from
'
@/service/utils.service
'
;
import
hostPath
from
'
@/config
'
;
interface
Schame
{
interface
Schame
{
key
:
string
;
key
:
string
;
name
:
string
;
name
:
string
;
...
@@ -77,7 +80,7 @@ export const defaultState = {
...
@@ -77,7 +80,7 @@ export const defaultState = {
{
{
name
:
'
购物车
'
,
name
:
'
购物车
'
,
icon
:
'
shopping-cart-o
'
,
icon
:
'
shopping-cart-o
'
,
url
:
'
xyqb://shoppingCartTab
'
,
url
:
isHarmonyOS
?
`
${
hostPath
.
mallHost
}
/shopCart`
:
'
xyqb://shoppingCartTab
'
,
color
:
'
#333
'
,
color
:
'
#333
'
,
background
:
'
#fff
'
background
:
'
#fff
'
}
}
...
...
app/web/service/utils.service.ts
View file @
461d276a
...
@@ -143,6 +143,9 @@ export const isWxMp = ua.match(/miniProgram/i) == 'miniprogram' || (!EASY_ENV_IS
...
@@ -143,6 +143,9 @@ export const isWxMp = ua.match(/miniProgram/i) == 'miniprogram' || (!EASY_ENV_IS
// 判断羊小咩(信用钱包)环境
// 判断羊小咩(信用钱包)环境
export
const
isApp
=
ua
.
match
(
/xyqb/i
)
==
"
xyqb
"
;
export
const
isApp
=
ua
.
match
(
/xyqb/i
)
==
"
xyqb
"
;
// 判断羊小咩(harmony)环境
export
const
isHarmonyOS
=
/xyqbharmonyos/
.
test
(
ua
);
// 判断真享生活
// 判断真享生活
export
const
isVcc
=
ua
.
match
(
/VCC/i
)
==
"
vcc
"
;
export
const
isVcc
=
ua
.
match
(
/VCC/i
)
==
"
vcc
"
;
...
...
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