2 回复
bindViewNongchang: function (e) {
var cdata = {};
cdata.supplierid = e.currentTarget.dataset.supplierid;
cdata.suppliertruename = e.currentTarget.dataset.suppliertruename;
wx.navigateTo({
url: '../03_nongchang/nongchang?cdata=' + JSON.stringify(cdata)
})
}
接收的页面中可以这样
onLoad: function (options) {
var THIS = this;
if (options && options.cdata) {
var cdata = JSON.parse(options.cdata);
THIS.setData({
cdata: cdata
});
}
},