付延余
2023-03-16 5355011b9d5e4f32a8751d1c2e600b2601fd8967
pages/customer-page/customer-index/customer-index.vue
@@ -1,6 +1,7 @@
<template>
   <view class="customer-index">
      <view class="customer-index-body">
         <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" iconSize="1000" v-if="orderPlanData.length == 0"></u-empty>
         <card v-for="(item, index) in orderPlanData" :key="index" :name="item.id" @click="cardBodyClick">
            <template v-slot:left>
               <view class="card-left__top">
@@ -86,11 +87,12 @@
      },
      // 获取发运计划列表
      GetOrderPlan() {
         // this.$reqGet('GetOrderPlan', { customerId: customerId }).then(res => {
         //    this.orderPlanData = res.data;
         // });
         uni.showLoading({
            title: '加载中...'
         });
         this.$reqGet('GetOrderPlan').then(res => {
            this.orderPlanData = res.data;
            uni.hideLoading()
         });
      },
      // 领取点击
@@ -152,7 +154,7 @@
      // 转发
      forwardClick(obj) {
         uni.navigateTo({
            url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNum=${obj.carNum}`
            url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNum=${obj.cars2}`
         });
      }
   }