Skip to content

Commit

Permalink
沸点 tab 页顶部推荐添加详情页跳转
Browse files Browse the repository at this point in the history
  • Loading branch information
myvin committed Oct 29, 2018
1 parent 4ef341c commit 2f2bfd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pages/feidian/feidian.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ Page({
},
})
},
toFeidianDetail(e) {
let id = e.currentTarget.dataset.id
wx.navigateTo({
url: `/pages/feidianDetail/feidianDetail?msgId=${id}`,
})
},
onReachBottom() {
this.pinListRecommend()
},
Expand Down
2 changes: 1 addition & 1 deletion pages/feidian/feidian.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<view class='recommendList'>
<swiper autoplay='{{false}}' circular='{{false}}' duration="500" wx:if='{{recommendList.length}}' next-margin='100rpx' style='height:{{swiperHeight}}'>
<block wx:for="{{recommendList}}" wx:key="{{index}}">
<swiper-item>
<swiper-item catchtap='toFeidianDetail' data-id='{{item.objectId}}'>
<view class='item'>
<view class='title' wx:if='{{item.isRecommend}}'>
<image class='icon' src='/img/ic_topic_star.png'></image>
Expand Down

0 comments on commit 2f2bfd2

Please sign in to comment.