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
0949640f
Commit
0949640f
authored
Jun 11, 2025
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 在首页卡片中添加点击事件,优化链接跳转逻辑
parent
5b9f52b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
.DS_Store
.DS_Store
+0
-0
Home.vue
views/Home.vue
+9
-1
No files found.
.DS_Store
View file @
0949640f
No preview for this file type
views/Home.vue
View file @
0949640f
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<view
class=
"cardScroller"
>
<view
class=
"cardScroller"
>
<view
class=
"cardbox"
>
<view
class=
"cardbox"
>
<view
class=
"cardboxitem"
v-for=
"cardData in vipCardList"
:key=
"cardData.level"
>
<view
class=
"cardboxitem"
v-for=
"cardData in vipCardList"
:key=
"cardData.level"
>
<image
class=
"bg"
:src=
"$baseUrl + cardData.bgUrl"
></image>
<image
@
tap=
"jumpLinkCard(cardData)"
class=
"bg"
:src=
"$baseUrl + cardData.bgUrl"
></image>
<text
class=
"level"
>
{{
cardData
.
level
}}
</text>
<text
class=
"level"
>
{{
cardData
.
level
}}
</text>
<text
class=
"subTitle"
>
{{
cardData
.
subTitle
}}
</text>
<text
class=
"subTitle"
>
{{
cardData
.
subTitle
}}
</text>
<view
class=
"showCornerTxt"
v-if=
"cardData.showCornerTxt && cardData.showCornerTxt.length > 0"
>
<view
class=
"showCornerTxt"
v-if=
"cardData.showCornerTxt && cardData.showCornerTxt.length > 0"
>
...
@@ -262,6 +262,14 @@ export default {
...
@@ -262,6 +262,14 @@ export default {
jump
(
link
);
jump
(
link
);
}
}
},
},
jumpLinkCard
(
item
){
if
(
item
.
btnSubTitle
.
length
>
0
&&
item
.
btnTitle
.
length
>
0
){
return
;
//如果有按钮的话,废弃这个点击事件
}
if
(
item
.
link
){
jump
(
item
.
link
);
}
},
jumpLink
(
link
,
videoUrl
)
{
jumpLink
(
link
,
videoUrl
)
{
if
(
videoUrl
)
{
if
(
videoUrl
)
{
// 弹出视频
// 弹出视频
...
...
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