Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
1a4aa9d7
Commit
1a4aa9d7
authored
Oct 23, 2025
by
劳琪峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 补充实现热区点击
parent
38622195
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
HotArea.vue
pages/activity/engine/components/HotArea.vue
+32
-2
No files found.
pages/activity/engine/components/HotArea.vue
View file @
1a4aa9d7
...
...
@@ -28,9 +28,36 @@ const debugMode = inject('debugMode', false)
function
transformClickAreaProperties
(
item
:
ClickAreaType
)
{
let
link
;
if
(
item
.
link
)
{
if
(
item
.
link
)
{
switch
(
item
.
link
.
type
)
{
case
'MINI_APP_THIRD'
:
case
'GOODS'
:
// 星妈优选商品
link
=
{
type
:
JumpType
.
MINI
,
url
:
`subPackages/shopMainProcess/product/index?productId=
${
item
.
link
.
value
}
&skuId=
${
item
.
link
.
skuId
}
`
,
extra
:
{
appId
:
'wx4205ec55b793245e'
,
}
}
break
case
'PAGE'
:
// 页面
link
=
{
type
:
JumpType
.
INNER
,
url
:
item
.
link
.
url
,
}
break
case
'LINK'
:
// 自定义链接
link
=
{
type
:
JumpType
.
H5
,
url
:
'/pages/activity/index?url='
+
encodeURIComponent
(
item
.
link
.
url
),
}
break
case
'MINI_APP'
:
// 小程序
link
=
{
type
:
JumpType
.
INNER
,
url
:
'/pages/index/index?pageType='
+
item
.
link
.
pageType
.
toLowerCase
(),
}
break
case
'MINI_APP_THIRD'
:
// 第三方小程序
link
=
{
type
:
JumpType
.
MINI
,
url
:
item
.
link
.
url
,
...
...
@@ -39,6 +66,9 @@ function transformClickAreaProperties(item: ClickAreaType) {
}
}
break
case
'VIDEO'
:
// 视频
// todo 视频播放
break
}
}
return
{
...
...
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