wx.redirectTo({
url: "/pages/public/order/pay?order_id=" + id + "&sum=" + sum + "&car_number=" +
this.data.orderInfo.goods[0].id,
});
pay页面:
onLoad: function (options) {
console.log(options)
this.setData({
"payInfo.orderId": options.order_id,
"payInfo.sum": options.sum,
"payInfo.car_number": options.car_number
})
console.log(this.data.payInfo)
}
console.log(this.data.payInfo)打印未出现乱码,但是将该参数传入api,后台数据库中出现乱码
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。