view
<view data-nowdata="{{list}}"></view>
js
clickDetails(e){ // 获取所需数据 var nowdata = e.currentTarget.dataset.nowdata //将对象转为string var queryBean = JSON.stringify(nowdata) wx.navigateTo({ url:'../../shop/details/details?queryBean=' + queryBean, }) },
接受页面 js
onLoad: function (options) { var queryBean = JSON.parse(options.queryBean) this.setData({ detailsData: queryBean }) },