之前页面,需要修改UnNum:
wx.navigateTo({
url: '/pages/myOrder/myOrder?active=' + active,
events: {
acceptDataFromOpenedPage: function (data) {
console.log(data);
that.setData({
UnNum: data,
});
},
},
success: function (res) {
res.eventChannel.emit('acceptDataFromOpenerPage', {
navToZhi: '22'
})
}
})
跳转过去界面,携带回来的改动的值;
that.setData({
UnNum,
});
console.log(UnNum);
const eventChannel = this.getOpenerEventChannel()
eventChannel.emit('acceptDataFromOpenedPage', {
unan: UnNum.unan,
unfa: UnNum.unfa,
unpay: UnNum.unpay,
unshou: UnNum.unshou,
});
做个记录。。。。。。。。。