|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onLoad() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShow() { | 
|---|
|  |  |  | let that = this | 
|---|
|  |  |  | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE | 
|---|
|  |  |  | const eventChannel = this.getOpenerEventChannel(); | 
|---|
|  |  |  | that.baseUrl = uni.getStorageSync('baseUrl'); | 
|---|
|  |  |  | that.token = uni.getStorageSync('token'); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const eventChannel = that.getOpenerEventChannel(); | 
|---|
|  |  |  | eventChannel.on('order', function(data) { | 
|---|
|  |  |  | // console.log(data.item); | 
|---|
|  |  |  | that.orderNo = data.orderNo | 
|---|
|  |  |  |  | 
|---|
|  |  |  | that.getOrderNoList(that.orderNo) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShow() { | 
|---|
|  |  |  | this.baseUrl = uni.getStorageSync('baseUrl'); | 
|---|
|  |  |  | this.token = uni.getStorageSync('token'); | 
|---|
|  |  |  | this.getOrderNoList(this.orderNo) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | getOrderNoList(orderNo) { | 
|---|
|  |  |  | let that = this | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: this.baseUrl + '/orderDetl/forOrderNo/auth', | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | orderNo: that.orderNo | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | header: { | 
|---|
|  |  |  | 'token': uni.getStorageSync('token') | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: { orderNo: that.orderNo }, | 
|---|
|  |  |  | header: { 'token': uni.getStorageSync('token') }, | 
|---|
|  |  |  | success(res) { | 
|---|
|  |  |  | res = res.data | 
|---|
|  |  |  | that.menuList = res.data | 
|---|