小程序navigate如何传递json数组

//调用页面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数组)