failurlnotinapp.json

  • • 发表于 8年前
  • • 作者 fanrs
  • • 779 人浏览
  • • 1 条评论
  • • 最后编辑时间 8年前
  • • 来自 [技 术]

原创声明:本文为作者原创,未经允许不得转载,经授权转载需注明作者和出处

<view class="container">
<block wx:for="{{newsData}}" wx:for-item="item">
<view class="details" data-url="{{item.url}}" bindtap="bindViewTap">
<text class="title">{{item.title}}</text>
<view class="picBox">
<image src="{{item.thumbnail_pic_s}}" mode="aspectFill"></image>
</view>
<view class="info">
<text class="author">{{item.author_name}}</text>
<text class="date">{{item.date}}</text>
</view>
</view>
</block>
</view>

bindViewTap: function (e) {
console.info(e.currentTarget.dataset.url);
wx.navigateTo({
url: ‘../detail/detail?title=’ + e.currentTarget.dataset.title + ‘&url=’ + e.currentTarget.dataset.url
})
}

分享到:
1条评论
Ctrl+Enter
作者

fanrs

fanrs

APP:0 帖子:1 回复:0 积分:23

已加入社区[2965]天

主人太懒,签名没设置!

作者详情》
Top