// 在test.vue页面,向起始页通过事件传递数据onLoad:function(option){const eventChannel =this.getOpenerEventChannel();
eventChannel.emit('acceptDataFromOpenedPage',{data:'data from test page'});
eventChannel.emit('someEvent',{data:'data from test page for someEvent'});// 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
eventChannel.on('acceptDataFromOpenerPage',function(data){
console.log(data)})}