| | |
| | | }, |
| | | methods: { |
| | | findOrder() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/order/list/orderNo', |
| | | data: {orderNo: that.orderNo} , |
| | | method: 'GET', |
| | | success(result) { |
| | | result = result.data |
| | | console.log(result); |
| | | return |
| | | if (result.code === 200 && result.data) { |
| | | uni.navigateTo({ |
| | | url: "../order/orderDetil", |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | success: function(res) { |
| | | res.eventChannel.emit('mat', { |
| | | data: result.data |
| | | }) |
| | | }, |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 |
| | | events: { |
| | | matList: function(data) { |
| | | that.checkMat(data.data) |
| | | that.focuss() |
| | | }, |
| | | }, |
| | | }); |
| | | } else if (res.code == 403) { |
| | | uni.showToast({title: res.msg,icon: "none",position: 'top' |
| | | }) |
| | | setTimeout(() => {uni.reLaunch({url: '../login/login'});}, 1000); |
| | | } else { |
| | | uni.showToast({title: res.msg,icon: "none",position: 'top'}) |
| | | } |
| | | |
| | | } |
| | | }); |
| | | }, |
| | | selectOrder() { |
| | | let that = this |