点击view 跳转页面

<view class="album_image" data-album-obj="{{item}}" bindtap="imageclick"> 
       <image style="width:98%;" src="{{item.data[0].url}}"></image>
</view>

声明变量  data-album-obj

页面跳转

imageclick:function(e){
    console.log(e.currentTarget.dataset.albumObj);
    wx.navigateTo({
      url: 'albumdetail?str=' + JSON.stringify(e.currentTarget.dataset.albumObj),
    })
  },

跳转后的界面获取对象

 onLoad: function (options) {
      this.setData({
        albumData: JSON.parse(options.str)
      })
  },

 微信小程序 页面跳转传递数据

相关文章:

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