1、为cell添加点击事件(item.targetFirstName为变量数组的字段信息)

<view class='list-view' data-title='{{item.targetFirstName}}' bindtap='cellClick'>
 

2、在page({})里面点击事件处理

cellClick: function(e) {
// 这里获取到点击cell传递的参数
var title = e.target.dataset.title;
wx.navigateTo({
// 这里拼接跳转的链接(带参数)
url: '../reportDetail/reportDetail?title='+title
})
}

相关文章:

  • 2021-07-05
  • 2022-02-07
  • 2021-06-05
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2022-02-07
  • 2022-01-16
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案