From e4a3062329fd75d83500f578a9223b4c5d2557b3 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期六, 21 六月 2025 15:14:21 +0800
Subject: [PATCH] 12
---
pages/order/orderDetlList.vue | 25 +++++++++++--------------
1 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/pages/order/orderDetlList.vue b/pages/order/orderDetlList.vue
index 591c514..bc17371 100644
--- a/pages/order/orderDetlList.vue
+++ b/pages/order/orderDetlList.vue
@@ -20,31 +20,28 @@
}
},
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
--
Gitblit v1.9.1