通过encodeURIComponent来增大跳转携带的参数大小,decodeURIComponent解析参数
跳转参数只能是字符串,通过JSON.stringify转换
跳转页

// 选择产品信息
onGoodsInfo() {
    uni.navigateTo({
    url: '../selectGoods/selectGoods?goodsList=' + encodeURIComponent(JSON.stringify(this.form.goodList))
    })
},

接收页

onLoad(options) {
    let goodsList = JSON.parse(decodeURIComponent(options.goodsList));
    console.log('goodsList===', goodsList);
},

兔子先森
466 声望555 粉丝

致力于新技术的推广与优秀技术的普及。