美文网首页
小程序navigate如何传递json数组

小程序navigate如何传递json数组

作者: 花影_62b4 | 来源:发表于2020-12-07 14:21 被阅读0次

//调用页面js

goSignUpPage(){

    var dataList=encodeURIComponent(JSON.stringify(this.data.canBuyTicketList));

    wx.navigateTo({

      url: `/pages/signUp/index?priceList=${dataList}&ConferenceId=${this.data.meetId}&ChannelType=${this.data.comeType}`,

    })

  },

//目的页面js

onLoad:function(options){

    let aa=decodeURIComponent(options.priceList)

    let prices=JSON.parse(aa) //prices及传递过来的json数组

}

相关文章

网友评论

      本文标题:小程序navigate如何传递json数组

      本文链接:https://www.haomeiwen.com/subject/usxtgktx.html