onLoad: function (options) { console.log(options, 'options') wx.setNavigationBarTitle({ title: '绑定二维码', success: function (res) { // success } }) let scene = decodeURIComponent(options.scene) let key = scene.split('=')[0] let value = scene.split('=')[1] console.log(scene, key, value,'sad') this.setData({ key: key, //绑定的值和参 value: value, }) },