MrShi
2026-05-20 b806c4ad52a661a1e5f0695650ec1a7e42f01633
app/pages/order/order.vue
@@ -20,7 +20,7 @@
         </view>
      </view>
      <scroll-view class="order-page__body" scroll-y :style="bodyStyle">
      <scroll-view class="order-page__body" scroll-y :style="bodyStyle" @scrolltolower="handleScrollToLower">
         <view class="order-page__list">
            <view v-for="(item, index) in orders" :key="item.id" class="order-card" @click="goToOrderDetail(item, index)">
               <view class="order-card__head">
@@ -224,11 +224,6 @@
      onShow() {
         this.getActiveOrderCount()
      },
      onReachBottom() {
         if (!this.hasMore || this.loading) return
         this.page++
         this.getOrderList()
      },
      watch: {
         activeTab() {
            this.page = 1
@@ -238,6 +233,11 @@
         }
      },
      methods: {
         handleScrollToLower() {
            if (!this.hasMore || this.loading) return
            this.page++
            this.getOrderList()
         },
         searchOrder() {
            this.page = 1
            this.hasMore = true
@@ -291,6 +291,10 @@
         },
         getOrderList() {
            if (this.loading) return
            console.log({
               status: this.activeTab,
               keyword: this.searchKeyword
            })
            this.loading = true
            this.$u.api.orderPage({
               capacity: 10,