| | |
| | | that.getOrderDetl(data.item.id) |
| | | |
| | | }) |
| | | eventChannel.on('item1', function(data) { |
| | | console.log(data); |
| | | that.orderId = data.item.orderId |
| | | uni.setNavigationBarTitle({ |
| | | title: data.item.orderNo, |
| | | |
| | | }) |
| | | that.getOrderDetl(data.item.id) |
| | | |
| | | }) |
| | | }, |
| | | onShow() { |
| | | if (this.dataList.length > 0) { |
| | |
| | | // 订单明细 |
| | | getOrderDetl(id) { |
| | | let _this = this |
| | | console.log(id); |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/orderDetl/list/auth`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: "../AGV/AGVPakin2", |
| | | url: "../AGV/AGVPakin3", |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('mats', { |