Commit b75b92d0 by TengFengLian

首页banner跳转

parent 84bf24d4
Showing with 20 additions and 0 deletions
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment