Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b75b92d0
authored
Aug 22, 2020
by
TengFengLian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
首页banner跳转
parent
84bf24d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
pages/home/home.js
pages/home/home.js
View file @
b75b92d0
...
...
@@ -227,6 +227,26 @@ Page({
bannerClick
(
e
)
{
console
.
log
(
e
.
currentTarget
.
dataset
.
item
)
// 活动、动态、攻略详情 对应 1,2,3
let
jumpColumnId
=
e
.
currentTarget
.
dataset
.
item
.
jumpColumnId
*
1
let
jumpId
=
e
.
currentTarget
.
dataset
.
item
.
jumpId
switch
(
jumpColumnId
)
{
case
1
:
wx
.
navigateTo
({
url
:
'/pages/activity-detail/activity-detail?id='
+
jumpId
})
break
;
case
2
:
wx
.
navigateTo
({
url
:
'/pages/notice-detail/notice-detail?id='
+
jumpId
})
break
;
case
3
:
wx
.
navigateTo
({
url
:
'/pages/strategy/strategy?id='
+
jumpId
})
break
;
}
},
getBanner
()
{
...
...
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