jiangping
2025-01-08 a35b8eec96aac2793de732c3fb7513cd6c5b2e4c
h5/pages/driver/reservedRecord.vue
@@ -23,7 +23,7 @@
          </view>
          <view class="box_list_item_nr_item">
            <text>司机姓名:</text>
            <text>{{item.driverName}}</text>
            <text>{{item.driverName}} {{item.driverPhone}}</text>
          </view>
          <view class="box_list_item_nr_item">
            <text>车辆信息:</text>
@@ -47,7 +47,7 @@
      isShowDate: false,
      param: {},
         page: 1,
         capacity: 10,
         capacity: 20,
         total: 0,
         datalist: [],
         statusMap: {
@@ -59,8 +59,18 @@
         }
    }
  },
   created() {
   onShow() {
      this.page = 1
      this.getList()
   },
   onReachBottom() {
      const { total,  datalist} = this
     if(datalist.length < total){
         this.page = this.page + 1
         this.getList()
      } else {
         this.showToast('暂无更多数据')
      }
   },
  methods: {
      getList() {
@@ -68,7 +78,7 @@
         driverApplyRecord({
            page, capacity,model: {}
         }).then(res => {
            this.datalist = res.data.records
            this.datalist = [...this.datalist, ...res.data.records]
            this.total = res.data.total
         })
      },