This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Augcl
/
novel-front-app
generated from
hly/uniapp-shop-templates
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix: 修复轮播图点击跳转功能
添加对轮播图点击事件的处理逻辑,当banner包含appPath时进行页面跳转
master
前端-胡立永
4 weeks ago
parent
ac591d924a
commit
acb29181f0
1 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
pages/index/index.vue
+ 6
- 1
pages/index/index.vue
View File
@ -143,7 +143,12 @@
}
,
/
/
点
击
轮
播
图
clickBanner
(
index
)
{
/
/
c
o
n
s
t
b
a
n
n
e
r
=
t
h
i
s
.
b
a
n
n
e
r
L
i
s
t
[
i
n
d
e
x
]
;
const
banner
=
this
.
bannerList
[
index
]
;
if
(
banner
.
appPath
)
{
uni
.
navigateTo
(
{
url
:
banner
.
appPath
}
)
}
/
/
c
o
n
s
o
l
e
.
l
o
g
(
'
点
击
了
轮
播
图
:
'
,
b
a
n
n
e
r
.
t
i
t
l
e
)
;
/
/
/
/
跳
转
到
小
说
详
情
页
/
/
u
n
i
.
s
h
o
w
T
o
a
s
t
(
{
Write
Preview
Loading…
Cancel
Save