navigateTo传对象参数
var url = `../../pages/order_confirm/order_confirm?params=${JSON.stringify(params)}`;
wx.navigateTo({
url: url,
})
接收时解析参数
onLoad: function (options) {
const {params} = options;
this.data.params = JSON.parse(params);
console.log(this.data.params);
},