页面跳转保留数据

 

a页面

toSupplier(){
uni.navigateTo({
url:'/pages/index/purchaseReturnSupplier/index',
events:{
select: (info)=>{
this.supplierName(info)
}
}
})
},
supplierName(info){
this.chineseName=info.chineseName
this.supplierId=info.supplierId
},

 

 

 

b页面

select(item){
let info=item
this.getOpenerEventChannel().emit("select",info);
uni.navigateBack({
});
}

posted @ 2021-05-13 15:50  k凯阳  阅读(134)  评论(0)    收藏  举报