whycq
2024-11-19 fe8fb74ce94e7bee23ed47b7175236248ac93b98
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