#
zjj
2024-04-15 14baa19873ed843f09ff34f8d8df008dce95dce2
pages/order/orderDetil.vue
@@ -43,13 +43,27 @@
   export default {
      data() {
         return {
            dataList: [{name:'xyz'},{name:'xx'}],
            dataList: [],
            check: '',
            baseUrl: '',
            token: ''
            token: '',
            orderNo: ''
         }
      },
      onShow() {
         let that = this
         // #ifdef APP-NVUE
         const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
         // #endif
         // #ifndef APP-NVUE
         const eventChannel = this.getOpenerEventChannel();
         // #endif
         // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
         eventChannel.on('orderNo', function(data) {
            that.orderNo = data.orderNo
            console.log(data);
         })
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.getOrderDetl();
@@ -58,7 +72,6 @@
         set(e) {
            var ck = this.dataList[e].checked
            this.dataList[e].checked = ck ? false:true
            console.log(this.dataList);
         },
         back() {
            let that = this
@@ -69,8 +82,13 @@
                  confirmList.push(that.dataList[k])
               }
            }
            this.getOpenerEventChannel().emit('orderList', {data: confirmList});
            uni.navigateBack({
            })
         },
         getOrderDetl() {
            console.log(this.orderNo);
            let that = this
            uni.request({
               url: that.baseUrl + '/order/list/orderNo',