发送参数
uni.navigateToMiniProgram({
appId: 'xxxxxxxxxxxxxxx',
path: 'pages/index/withdrawal',
extraData: {
//money: e.detail.value,
token: uni.getStorageSync("token"),
//openid: uni.getStorageSync("openid")
},
success(res) {
},
fail(res) {
console.log(res);
}
})
另一个小程序接收参数
onLoad(option) {
var that = this;
that.token = option.token;
console.log("onLoad.token = " that.token);
that.loadData();
},
跳转都是正常的,但是拿不到参数。请教一下各位大佬,这个token是传的有问题还是接的有问题啊
8***@qq.com (作者)
onShow我也收了,打印出来是空的
2022-11-04 09:30