Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_uniapp
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
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
刘怀志
intel_promotion_uniapp
Commits
d98137e4
Commit
d98137e4
authored
Jul 16, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页轮播图点击事件
parent
4c87b98a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
index.vue
pages/shop/index.vue
+12
-0
No files found.
pages/shop/index.vue
View file @
d98137e4
...
@@ -9,12 +9,14 @@
...
@@ -9,12 +9,14 @@
<!--
</view>
-->
<!--
</view>
-->
<!--
</u-col>
-->
<!--
</u-col>
-->
<u-col>
<u-col>
<view
bindtap=
"navigateToPage"
>
<u-swiper
<u-swiper
:list=
"topicList"
:list=
"topicList"
indicator
indicator
indicatorMode=
"line"
indicatorMode=
"line"
circular
circular
></u-swiper>
></u-swiper>
</view>
</u-col>
</u-col>
</u-row>
</u-row>
<view
style=
"padding-bottom: 30rpx;"
>
<view
style=
"padding-bottom: 30rpx;"
>
...
@@ -141,6 +143,16 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
...
@@ -141,6 +143,16 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
this
.
queryVideo
()
this
.
queryVideo
()
this
.
queryTopic
();
this
.
queryTopic
();
},
},
navigateToPage
(
e
)
{
// 获取点击的u-swiper组件的索引
const
index
=
e
.
currentTarget
.
dataset
.
index
;
// 根据索引或其他逻辑确定跳转的页面
const
link
=
this
.
topicList
[
index
].
url
;
// 执行页面跳转
wx
.
navigateTo
({
url
:
link
,
});
},
sectionChange
(
index
)
{
sectionChange
(
index
)
{
this
.
curNow
=
index
;
this
.
curNow
=
index
;
},
},
...
...
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