<template>
  <view class="index-container">
    <status-bar :backgroundColor="'#fff'" v-if="true"></status-bar>
    <view class="shop-info">
      <view
        class="shop-logo-img"
        :style="{ backgroundImage: `url(${logoUrl})` }"
      ></view>
      <view class="shop-name">{{ shopNmae }}</view>
    </view>
    <view class="tab-content">
      <tui-tabs
        :tabs="tabs"
        :currentTab="currentTab"
        backgroundColor="#fff"
        :height="88"
        color="#888"
        selectedColor="#4b71ff"
        sliderBgColor="#4b71ff"
        :bold="true"
        :width="width"
        unlined
        @change="handleTab"
      ></tui-tabs>
    </view>
    <view class="tab2-content" v-if="currentTab == 0">
      <tui-tabs
        class="tabs-2"
        :tabs="tabs2"
        :width="300"
        :currentTab="currentTab2"
        @change="handleTab2"
        backgroundColor="#f5f5f5"
        :height="88"
        unlined
        :sliderWidth="150"
        :sliderHeight="60"
        bottom="50%"
        color="#888"
        selectedColor="#fff"
        :bold="true"
        sliderBgColor="#4b71ff"
      ></tui-tabs>
    </view>
    <view
      class="search-contetn"
      v-if="orderInfo.order_page_list.records.length > 0"
    >
      <u-search
        placeholder="请输入订单号搜索"
        :showAction="false"
        bgColor="#fff"
        v-model="keyword"
        @input="searchOrder()"
      ></u-search>
      <!-- <view class="btn-content" @click="handleShowDropDown">
        <tui-dropdown-list :show="showDropdown" :top="94" :height="400">
          <template v-slot:selectionbox>
            <view class="btn-down">
              功能模块
              <u-icon
                :class="[
                  'tui-animation',
                  showDropdown ? 'tui-animation-show' : '',
                ]"
                style="display: inline-block; margin-left: 6rpx"
                :name="'arrow-down'"
                color="#cccccc"
                size="12"
              ></u-icon>
            </view>
          </template>
          <template v-slot:dropdownbox>
            <view class="btn-down-list">
              <view class="btn-unfold">全部展开</view>
              <view class="btn-unfold">全部收回</view>
            </view>
          </template>
        </tui-dropdown-list>
      </view> -->
    </view>

    <view class="order-info-content" v-if="currentTab2 == 0">
      <favorite-loading
        class="order-loading"
        v-show="showOrderLoading"
        :color="'#4b71ff'"
        text=""
        animation="spinner15"
      ></favorite-loading>
      <scroll-view
        class="uni-swiper-list"
        scroll-y
        :scroll-top="0"
        enhanced
        :show-scrollbar="false"
        @scrolltolower="scrolltolower"
        v-if="orderInfo.order_page_list.records.length > 0"
      >
        <view
          :class="[
            'order-info-block',
            { 'order-info-oepn': item.showRefundOrderInfo },
          ]"
          v-for="(item, index) of orderInfo.order_page_list.records"
          :key="index"
        >
          <view class="order-info-hander">
            <view class="order-num-block">
              <view class="order-serial-num"
                >#<text
                  style="
                    font-size: 46rpx;
                    padding-left: 4rpx;
                    font-weight: bold;
                  "
                  >{{ item.orderNum }}</text
                ></view
              >
              <view class="delivery-status">
                {{ sfFormatStatus(item.order_state_id) }}
              </view>
            </view>
            <view class="rider-info">
              <view class="delivery-time">
                预计送达{{ formatTime(item.arrival_time) }}前
              </view>
              <view class="order-num">订单号：{{ item.order_id }}</view>
            </view>
          </view>
          <view class="" v-show="item.showRefundOrderInfo">
            <view class="user-info-block">
              <view class="user-info">
                {{ item.buyer_info.da_name }} 手机尾号{{
                  item.buyer_info.da_mobile.slice(-4)
                }}
              </view>
              <view class="user-address"
                >收货地址：{{
                  item.buyer_info.da_province +
                  item.buyer_info.da_city +
                  item.buyer_info.da_county +
                  item.buyer_info.da_address
                }}</view
              >
              <view class="distance">距离：{{ item.distance / 1000 }}km</view>
            </view>
            <view class="picking-info">
              <view class="picking-status">
                <view class="picking-name">拣货中</view>
                <view class="picking-time">已用时 03:54</view>
              </view>
              <u-button class="picking-btn">拣货完成</u-button>
            </view>
            <view class="delivery-status-info">
              <view class="delivery-status">{{
                sfFormatStatus(item.order_state_id)
              }}</view>
              <view class="delivery-num">{{ item.order_pickup_num_str }}</view>
            </view>
            <view class="order-remark">
              <text style="color: red; font-weight: bold">备注：</text>
              <text>{{ item.buyer_info.order_message }}</text>
            </view>
            <view class="commodity-info-block">
              <view class="commodity-num">
                <text style="font-size: 36rpx">{{
                  item.order_items.length || 0
                }}</text>
                <text>件商品</text>
              </view>
              <view
                class="commodity-info"
                v-for="(group, index) of item.order_items"
                :key="index"
              >
                <image
                  class="commodity-info-img"
                  :src="group.order_item_image"
                ></image>
                <view class="commodity-content">
                  <view class="commodity-name"
                    >{{ group.item_name || 0 }}
                  </view>
                  <view class="commodity-barcode"
                    >条码
                    <text style="padding-left: 8rpx"
                      >{{ group.item_barcode || 0 }}
                    </text></view
                  >
                  <view class="commodity-specification"
                    >规格
                    <text style="padding-left: 8rpx"
                      >{{ item.specification || 0 }}
                    </text>
                  </view>
                </view>
                <view class="commodity-num"
                  >X
                  <text style="padding-left: 8rpx">{{
                    item.order_item_quantity || 0
                  }}</text></view
                >
                <view class="commodity-price"
                  >￥{{ item.item_cost_price || 0 }}</view
                >
              </view>
            </view>
            <!-- <view class="baling-charges-block">
              <view class="baling-charges-name">打包费</view>
              <view class="baling charges-num">￥0.5</view>
            </view> -->
            <view class="cost-info-block">
              <view class="cost-info-item cost-info-subtotal">
                <view class="cost-info-title">小计</view>
                <view class="cost-info-num"
                  >￥{{ item.order_product_amount }}</view
                >
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >商家活动支付<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num"
                  >￥{{ item.order_discount_amount }}</view
                >
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >平台服务费<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="#aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num">￥{{ item.platform_fee }}</view>
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >配送费用<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="#aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num"
                  >￥{{ item.order_shipping_fee }}</view
                >
              </view>
              <view class="cost-info-income">
                <view class="predict-income"
                  >预计收入<text
                    style="font-size: 40rpx; color: #333333; font-weight: 700"
                    >￥24.95</text
                  ></view
                >
                <view class="customer-actual-payment">
                  顾客实际支付 ￥30.50
                </view>
              </view>
            </view>
          </view>
          <view class="order-btn-block">
            <view class="btn-list">
              <u-button class="btn-item">取消订单</u-button>
              <u-button class="btn-item">退差价</u-button>
              <u-button class="btn-item">部分退款</u-button>
            </view>
            <view class="arrow-item" @click="showRefundOrderInfo(item, index)">
              {{ item.showRefundOrderInfo ? "收起订单" : "展开订单" }}
              <u-icon
                style="display: inline-block; margin-left: 6rpx"
                :name="item.showRefundOrderInfo ? 'arrow-up' : 'arrow-down'"
                color="#cccccc"
                size="12"
              ></u-icon>
            </view>
          </view>
        </view>
        <view
          class="m-loading-box"
          v-if="orderInfo.order_page_list.records.length > 0 && !isNoOrderData"
        >
          <block v-if="isLoadingReachData">
            <view class="u-loadmore">
              <view class="u-loading"></view>
              <text class="u-loadmore-tips">正在加载...</text>
            </view>
          </block>
          <block v-else>
            <view class="u-loadmore u-loadmore-line">
              <text class="u-loadmore-tips">没有更多数据啦！</text>
            </view>
          </block>
        </view>
      </scroll-view>
      <view
        class="no-data"
        v-if="orderInfo.order_page_list.records.length <= 0 && isNoOrderData"
      >
        <view class="no-data-bg"></view>
        <view class="no-data-tips">暂无交易记录!</view>
      </view>
    </view>
    <view class="order-info-content" v-if="currentTab2 == 1">
      <favorite-loading
        class="order-loading"
        v-show="showOrderLoading"
        :color="'#4b71ff'"
        text=""
        animation="spinner15"
      ></favorite-loading>
      <scroll-view
        class="uni-swiper-list"
        scroll-y
        :scroll-top="0"
        enhanced
        :show-scrollbar="false"
        @scrolltolower="scrolltolower"
        v-if="orderInfo.order_page_list.records.length > 0"
      >
        <view
          :class="[
            'order-info-block',
            { 'order-info-oepn': item.showRefundOrderInfo },
            { 'order-abnormal': currentTab2 == 1 && item.showRefundOrderInfo },
          ]"
          v-for="(item, index) of orderInfo.order_page_list.records"
          :key="index"
        >
          <view class="order-info-hander">
            <view class="order-num-block">
              <view class="order-serial-num"
                >#<text
                  style="
                    font-size: 46rpx;
                    padding-left: 4rpx;
                    font-weight: bold;
                  "
                  >{{ item.orderNum }}</text
                ></view
              >
              <view class="delivery-status" style="color: red">
                {{ sfFormatStatus(item.order_state_id) }}
              </view>
            </view>
            <view class="rider-info">
              <view class="delivery-time">
                预计送达{{ formatTime(item.arrival_time) }}前
              </view>
              <view class="order-num">订单号：{{ item.order_id }}</view>
            </view>
          </view>
          <view class="" v-show="item.showRefundOrderInfo">
            <view class="user-info-block">
              <view class="user-info">
                <view class="user-info-block">
                  {{ item.buyer_info.da_name }} 手机尾号{{
                    item.buyer_info.da_mobile.slice(-4)
                  }}
                </view>
                <view class="user-info-icon-block"> </view>
              </view>
              <view class="user-address"
                >收货地址：{{
                  item.buyer_info.da_province +
                  item.buyer_info.da_city +
                  item.buyer_info.da_county +
                  item.buyer_info.da_address
                }}</view
              >
              <view class="distance">距离：{{ item.distance / 1000 }}km</view>
            </view>
            <!-- <view class="picking-info">
              <view class="picking-status">
                <view class="picking-name">拣货中</view>
                <view class="picking-time">已用时 03:54</view>
              </view>
              <u-button class="picking-btn">拣货完成</u-button>
            </view> -->
            <view class="delivery-status-info">
              <!-- <view class="delivery-status">{{
                sfFormatStatus(item.order_state_id)
              }}</view> -->
              <view class="delivery-num">{{ item.order_pickup_num_str }}</view>
            </view>
            <view class="order-remark">
              <text style="color: red; font-weight: bold">备注：</text>
              <text>{{ item.buyer_info.order_message }}</text>
            </view>
            <view class="commodity-info-block">
              <view class="commodity-num">
                <text style="font-size: 36rpx">{{
                  item.order_items.length || 0
                }}</text>
                <text>件商品</text>
              </view>
              <view
                class="commodity-info"
                v-for="(group, index) of item.order_items"
                :key="index"
              >
                <image
                  class="commodity-info-img"
                  :src="group.order_item_image"
                ></image>
                <view class="commodity-content">
                  <view class="commodity-name"
                    >{{ group.item_name || 0 }}
                  </view>
                  <view class="commodity-barcode"
                    >条码
                    <text style="padding-left: 8rpx"
                      >{{ group.item_barcode || 0 }}
                    </text></view
                  >
                  <view class="commodity-specification"
                    >规格
                    <text style="padding-left: 8rpx"
                      >{{ item.specification || 0 }}
                    </text>
                  </view>
                </view>
                <view class="commodity-num"
                  >X
                  <text style="padding-left: 8rpx">{{
                    item.order_item_quantity || 0
                  }}</text></view
                >
                <view class="commodity-price"
                  >￥{{ item.item_cost_price || 0 }}</view
                >
              </view>
            </view>
            <!-- <view class="baling-charges-block">
              <view class="baling-charges-name">打包费</view>
              <view class="baling charges-num">￥0.5</view>
            </view> -->
            <view class="cost-info-block">
              <view class="cost-info-item cost-info-subtotal">
                <view class="cost-info-title">小计</view>
                <view class="cost-info-num"
                  >￥{{ item.order_product_amount }}</view
                >
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >商家活动支付<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num"
                  >￥{{ item.order_discount_amount }}</view
                >
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >平台服务费<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="#aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num">￥{{ item.platform_fee }}</view>
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >配送费用<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="#aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num"
                  >￥{{ item.order_shipping_fee }}</view
                >
              </view>
              <view class="cost-info-income">
                <view class="predict-income"
                  >预计收入<text
                    style="font-size: 40rpx; color: #333333; font-weight: 700"
                    >￥24.95</text
                  ></view
                >
                <view class="customer-actual-payment">
                  顾客实际支付 ￥30.50
                </view>
              </view>
            </view>
          </view>
          <view class="order-btn-block">
            <view class="btn-list">
              <u-button class="btn-item">取消订单</u-button>
              <u-button class="btn-item">退差价</u-button>
              <u-button class="btn-item">部分退款</u-button>
            </view>
            <view class="arrow-item" @click="showRefundOrderInfo(item, index)">
              {{ item.showRefundOrderInfo ? "收起订单" : "展开订单" }}
              <u-icon
                style="display: inline-block; margin-left: 6rpx"
                :name="item.showRefundOrderInfo ? 'arrow-up' : 'arrow-down'"
                size="12"
                color="#cccccc"
              ></u-icon>
            </view>
          </view>
        </view>
        <view class="m-loading-box">
          <block v-if="isLoadingReachData">
            <view class="u-loadmore">
              <view class="u-loading"></view>
              <text class="u-loadmore-tips">正在加载...</text>
            </view>
          </block>
          <block v-else>
            <view class="u-loadmore u-loadmore-line">
              <text class="u-loadmore-tips">没有更多数据啦！</text>
            </view>
          </block>
        </view>
      </scroll-view>
      <view
        class="no-data"
        v-if="orderInfo.order_page_list.records.length <= 0 && isNoOrderData"
      >
        <view class="no-data-bg"></view>
        <view class="no-data-tips">暂无交易记录!</view>
      </view>
    </view>
    <view class="order-info-content" v-if="currentTab2 == 2">
      <favorite-loading
        class="order-loading"
        v-show="showOrderLoading"
        :color="'#4b71ff'"
        text=""
        animation="spinner15"
      ></favorite-loading>
      <scroll-view
        class="uni-swiper-list"
        scroll-y
        :scroll-top="0"
        enhanced
        :show-scrollbar="false"
        v-if="orderInfo.order_page_list.records.length > 0"
      >
        <view
          :class="[
            'order-info-block',
            { 'order-info-oepn': item.showRefundOrderInfo },
            { 'order-refund': currentTab2 == 2 },
            {
              'order-refund-open': currentTab2 == 2 && item.showRefundOrderInfo,
            },
          ]"
          v-for="(item, index) of orderInfo.order_page_list.records"
          :key="index"
        >
          <view class="order-info-hander">
            <view class="order-num-block">
              <view class="order-serial-num"
                >#<text
                  style="
                    font-size: 46rpx;
                    padding-left: 4rpx;
                    font-weight: bold;
                  "
                  >3</text
                ></view
              >
              <view class="order-num">订单号：{{ item.order_id }}</view>
            </view>
            <view class="rider-info">
              <view class="delivery-time"> </view>
              <view class="delivery-status">
                {{ sfFormatStatus(item.order_state_id) }}
              </view>
            </view>
            <view class="order-msg-tips"
              >取消原因：订单符合未发货秒退规则，平台已优先退款</view
            >
          </view>
          <view class="steps-content" v-show="item.showRefundOrderInfo">
            <view class="steps-title"
              >退款
              <u-icon
                style="display: inline-block; margin: 0 8rpx"
                @click="handlePopup"
                name="question-circle"
                size="12"
                color="aaaaaa"
              >
              </u-icon
            ></view>
            <u-steps :current="0" direction="column" :dot="true">
              <u-steps-item
                class="steps-item-1"
                title="系统自动退款"
                desc="订单符合未发货秒退规则，平台已优先退款"
              >
              </u-steps-item>
              <u-steps-item
                title="顾客申请全部退款"
                desc="理由：商家联系我说没货了"
              ></u-steps-item>
            </u-steps>
          </view>
          <view class="" v-show="item.showRefundOrderInfo">
            <view class="user-info-block">
              <view class="user-info"> 张先生 手机尾号3158 </view>
              <view class="user-address"
                >收货地址：金凤凰商业街18号4楼（桂平发发网络有限公司）</view
              >
            </view>
            <view class="order-remark">
              <text style="color: red; font-weight: bold">备注：</text>
              <text>【如遇缺货】：缺货时请与我电话联系</text>
            </view>
            <view class="commodity-info-block">
              <view class="commodity-num">
                <text style="font-size: 36rpx">{{ commodityArr.length }}</text>
                <text>件商品</text>
              </view>
              <view
                class="commodity-info"
                v-for="(item, index) of commodityArr"
                :key="index"
              >
                <image class="commodity-info-img" :src="item.imrUrl"></image>
                <view class="commodity-content">
                  <view class="commodity-name">{{ item.name }}</view>
                  <view class="commodity-barcode"
                    >条码
                    <text style="padding-left: 8rpx">{{
                      item.barcode
                    }}</text></view
                  >
                  <view class="commodity-specification"
                    >规格
                    <text style="padding-left: 8rpx">{{
                      item.specification
                    }}</text>
                  </view>
                </view>
                <view class="commodity-num"
                  >X
                  <text style="padding-left: 8rpx">{{ item.num }}</text></view
                >
                <view class="commodity-price">￥{{ item.price }}</view>
              </view>
            </view>
            <view class="baling-charges-block">
              <view class="baling-charges-name">打包费</view>
              <view class="baling charges-num">￥0.5</view>
            </view>
            <view class="cost-info-block">
              <view class="cost-info-item cost-info-subtotal">
                <view class="cost-info-title">小计</view>
                <view class="cost-info-num">￥30.50</view>
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >商家活动支付<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num">￥30.50</view>
              </view>
              <view class="cost-info-item cost-info-subtotal">
                <view
                  class="cost-info-title"
                  style="color: #333333; font-weight: 700"
                  >平台服务费<text
                    ><u-icon
                      style="display: inline-block; margin-left: 8rpx"
                      name="question-circle"
                      size="12"
                      color="#aaaaaa"
                    ></u-icon></text
                ></view>
                <view class="cost-info-num">￥30.50</view>
              </view>
              <view class="cost-info-income">
                <view class="predict-income"
                  >预计收入<text
                    style="font-size: 40rpx; color: #333333; font-weight: 700"
                    >￥24.95</text
                  ></view
                >
                <view class="customer-actual-payment">
                  顾客实际支付 ￥30.50
                </view>
              </view>
            </view>
          </view>
          <view class="order-btn-block">
            <view class="btn-list">
              <u-button class="btn-item">拒绝退款</u-button>
              <u-button class="btn-item">同意退款</u-button>
            </view>
            <view class="arrow-item" @click="showRefundOrderInfo(item, index)">
              {{ item.showRefundOrderInfo ? "收起订单" : "展开订单" }}
              <u-icon
                style="display: inline-block; margin-left: 6rpx"
                :name="item.showRefundOrderInfo ? 'arrow-up' : 'arrow-down'"
                size="12"
                color="#cccccc"
              ></u-icon>
            </view>
          </view>
        </view>
        <view class="m-loading-box">
          <block v-if="isLoadingReachData">
            <view class="u-loadmore">
              <view class="u-loading"></view>
              <text class="u-loadmore-tips">正在加载...</text>
            </view>
          </block>
          <block v-else>
            <view class="u-loadmore u-loadmore-line">
              <text class="u-loadmore-tips">没有更多数据啦！</text>
            </view>
          </block>
        </view>
      </scroll-view>
      <view
        class="no-data"
        v-if="orderInfo.order_page_list.records.length <= 0 && isNoOrderData"
      >
        <view class="no-data-bg"></view>
        <view class="no-data-tips">暂无交易记录!</view>
      </view>
    </view>
  </view>
</template>

<script>
import statusBar from "../../components/status-bar.vue";
import tuiTabs from "../../components/tui-tabs.vue";
import { GetOrderList } from "../../api/order";
import { mapState } from "vuex";
import { GetAuditInfo } from "../../api/audit";
import { GetAccountDashboard } from "../../api/user";
import favoriteLoading from "@/components/favorite-loading/favorite-loading.vue";
import tuiDropdownList from "@/components/tui-dropdown-list/tui-dropdown-list.vue";
export default {
  components: {
    tuiTabs,
    statusBar,
    favoriteLoading,
    tuiDropdownList,
  },
  computed: {
    ...mapState("account", ["accountInfo"]),
    ...mapState("user", ["userInfo"]),
  },
  data() {
    return {
      showDropdown: false,
      currentTab: 0,
      currentTab2: 0,
      keyword: "",
      pageNum: 1,
      pageSize: 10,
      width: uni.upx2px(200),
      tabs: [
        {
          name: "同城订单",
          num: 1,
        },
        // {
        //   name: "预订单",
        // },
        // {
        //   name: "物流订单",
        // },
        // {
        //   name: "全部订单",
        //   num: 0,
        // },
      ],
      tabs2: [
        {
          name: "进行中",
        },
        {
          name: "异常配送",
        },
        {
          name: "退款",
        },
      ],
      commodityArr: [
        {
          imrUrl: "../../static/logo.png",
          name: "猪肉",
          barcode: "11131312123",
          specification: "500g*1袋",
          num: "3",
          price: 300,
        },
        {
          imrUrl: "../../static/logo.png",
          name: "猪肉",
          barcode: "11131312123",
          specification: "500g*1袋",
          num: "3",
          price: 300,
        },
        {
          imrUrl: "../../static/logo.png",
          name: "猪肉",
          barcode: "11131312123",
          specification: "500g*1袋",
          num: "3",
          price: 300,
        },
      ],
      orderInfo: {
        order_count: {},
        order_page_list: {
          records: [],
        },
      },
      shopNmae: "",
      logoUrl: "",
      sfStatus: [
        {
          id: 1,
          label: "订单创建",
        },
        {
          id: 2,
          label: "订单取消",
        },
        {
          id: 10,
          label: "配送员接单",
        },
        {
          id: 12,
          label: "配送员到店",
        },
        {
          id: 15,
          label: "配送中（已取货）",
        },
        {
          id: 17,
          label: "配送员妥投完单",
        },
        {
          id: 22,
          label: "配送员撤单",
        },
        {
          id: 91,
          label: "骑士上报异常",
        },
        {
          id: 31,
          label: "取消中",
        },
      ],
      deliveryType: [
        {
          key: 16,
          value: "同城",
        },
        {
          key: 10,
          value: "普通快递",
        },
        {
          key: 5,
          value: "自提",
        },
      ],
      time: 0,
      isLoadingReachData: false,
      params: {
        storeId: "",
        keyword: "",
        pageNum: "",
        pageSize: "",
      },
      isNoOrderData: false,
      showOrderLoading: false,
    };
  },
  onLoad() {},
  onShow() {
    let accountDashboard = uni.getStorageSync("accountDashboard");
    let auditInfo = uni.getStorageSync("auditInfo");

    if (accountDashboard) {
      this.shopNmae = accountDashboard.store_info.store_name;
      this.logoUrl = accountDashboard.store_info.store_logo;
    } else {
      this.getAccountDashboard();
    }
    if (!auditInfo) {
      this.getAuditInfo();
    }

    this.getOrderList();
  },
  onPullDownRefresh() {
    this.pageNum = 1;
    this.pageSize = 10;
    this.keyword = "";
    this.getOrderList();
  },
  // onReachBottom() {
  //   clearTimeout(this.time);
  //   this.isLoadingReachData = true;
  //   this.time = setTimeout(() => {
  //     this.pageNum = this.pageNum + 1;
  //     this.getOrderList();
  //   }, 500);
  // },
  methods: {
    async getOrderList() {
      this.showOrderLoading = true;
      this.params = {
        storeId: this.accountInfo.store_info.store_id,
        keyword: this.keyword,
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        delivery: this.currentTab + 1,
        status: this.currentTab2 + 1,
      };

      let res = await GetOrderList(this.params);
      if (res && res.status == 200) {
        res.data.order_page_list.records = [
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
          {
            buyer_info: {
              buyer_user_id: 10013,
              is_new_buyer: 1,
              da_name: "潘特",
              da_mobile: "13128997057",
              order_message: "小哥请送到驿站",
              da_latitude: "23.366250981849255",
              da_longitude: "110.07123874241765",
              da_province: "广西壮族自治区",
              da_city: "贵港市",
              da_county: "桂平市",
              da_address: "广西壮族自治区贵港市桂平市中山南路中山医院斜对面",
            },
            store_info: {
              store_id: 3,
              store_name: "福家优鲜超市",
              store_logo: "https://sfexpress.com/h5/trace.html",
              store_latitude: "23.363879745439718",
              store_longitude: "110.06631162013622",
              store_area: "广西壮族自治区/贵港市/桂平市",
              store_address: "桂贵南路65号桂平凤凰公寓",
              store_grade_id: "1001",
              store_grade_name: "白金店铺",
            },
            order_items: [
              {
                product_id: 39,
                item_id: 40,
                item_name: "油麦菜 500g 2斤装",
                order_item_quantity: 1,
                item_unit_price: 0.01,
                item_cost_price: 0,
                item_barcode: "",
                order_item_image: "https://sfexpress.com/h5/trace.html",
                spec_info: "2斤装",
              },
            ],
            sf_order_info: {
              sf_order_id: "JS4153126256762",
              operator_name: "微微",
              operator_phone: "13810702280",
              rider_lng: "",
              rider_lat: "",
              order_status: "2",
              status_desc: "顺丰取消订单",
              cancel_code: "102",
              cancel_reason: "餐箱已满，无法配送",
              push_time: "1741352410",
              h5_url: "https://sfexpress.com/h5/trace.html",
              feed: '[{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"顺丰同城","operator_name":"顺丰同城","operator_phone":"15788572483","order_status":1,"status_desc":"创建订单成功","content":"创建订单成功","push_time":"2025-03-07 17:03:10","create_time":"2025-03-07 17:03:10"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"订单指派成功","content":"订单指派成功 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"},{"sf_order_id":"JS4153126256762","shop_order_id":"DD-20250307-1","operator":"罗宇聪","operator_name":"罗宇聪","operator_phone":"13810702280","order_status":10,"status_desc":"骑士接单","content":"骑士接单 操作人：罗宇聪 联系电话：13810702280","push_time":"2025-03-07 19:18:24","create_time":"2025-03-07 19:18:24"}]',
            },
            order_id: "DD-20250307-1",
            order_title: "油麦菜 500g 2斤装",
            order_pickup_num: 212,
            order_pickup_num_str: "0000212",
            order_time: "2025-03-07 17:02:56",
            payment_time: "2025-03-07 17:03:09",
            arrival_time: 1741338176,
            order_product_amount: 0.11,
            order_payment_amount: 5.16,
            order_discount_amount: 0.01,
            platform_fee: 0.05,
            order_shipping_fee: 5.0,
            currency_id: 86,
            order_state_id: 15,
            delivery_type_id: 16,
            distance: 567,
          },
        ];

        if (this.isLoadingReachData) {
          if (res.data.order_page_list.records.length <= 0) {
            this.showOrderLoading = false;
            this.isLoadingReachData = false;
            return;
          } else {
            // this.orderInfo = { ...this.orderInfo, ...res.data };
            this.orderInfo.order_page_list.records = [
              ...this.orderInfo.order_page_list.records,
              ...res.data.order_page_list.records,
            ];
          }
        } else {
          this.orderInfo = res.data;
        }

        this.tabs[0].num = this.orderInfo.order_count.same_city_order_count;
        // this.tabs[2].num = this.orderInfo.order_count.logistics_order_count;
        // this.tabs[3].num = this.orderInfo.order_count.all_order_count;

        if (res.data.order_page_list.records.length <= 0) {
          // this.showOrderLoading = false;
          this.isNoOrderData = true;
          return;
        }

        this.orderInfo.order_page_list.records =
          this.orderInfo.order_page_list.records.map((item, index) => {
            if (item) {
              item.orderNum = index + 1;
              item.showRefundOrderInfo = false;
            }
            return item;
          });
      }

      // console.log(this.orderInfo.order_page_list.records);

      this.showOrderLoading = false;
      this.isLoadingReachData = false;
      // uni.stopPullDownRefresh();
    },
    showRefundOrderInfo(item, index) {
      this.$set(this.orderInfo.order_page_list.records, index, {
        ...item,
        showRefundOrderInfo: !item.showRefundOrderInfo,
      });
      console.log(
        this.orderInfo.order_page_list.records[index].showRefundOrderInfo
      );
    },
    async getAuditInfo() {
      var params = {};

      let isContain = this.userInfo.user_mobile.indexOf("86");

      if (isContain != -1 && this.userInfo.user_mobile.length > 11) {
        params.mobile = this.userInfo.user_mobile.slice(2);
      } else {
        params.mobile = this.userInfo.user_mobile;
      }

      let res = await GetAuditInfo(params);
      if (res && res.status == 200) {
        uni.setStorageSync("auditInfo", res.data);

        if (res.data.contract_download_url) {
          uni.setStorageSync(
            "contractDownloadUrl",
            res.data.contract_download_url
          );
        }
      }
    },
    async getAccountDashboard() {
      let res = await GetAccountDashboard();

      if (res && res.status == 200) {
        uni.setStorageSync("accountDashboard", res.data);
        this.shopNmae = res.data.store_info.store_name;
        this.logoUrl = res.data.store_info.store_logo;
      }
    },
    sfFormatStatus(id) {
      let label = "";
      this.sfStatus.forEach((item) => {
        if (item.id == id) {
          label = item.label;
        }
      });

      return label;
    },
    formatTime(time) {
      let date = new Date(time);
      let hours = String(date.getHours()).padStart(2, "0");
      let minutes = String(date.getMinutes()).padStart(2, "0");
      return hours + ":" + minutes;
    },
    handleTab(e) {
      this.currentTab = e.index;
      this.pageNum = 1;
      this.pageSize = 10;
      this.keyword = "";
      this.isNoOrderData = false;
      this.getOrderList();
    },
    handleTab2(e) {
      this.currentTab2 = e.index;
      this.pageNum = 1;
      this.pageSize = 10;
      this.keyword = "";
      this.isNoOrderData = false;
      this.getOrderList();
    },
    searchOrder() {
      this.pageNum = 1;
      this.pageSize = 10;

      setTimeout(() => {
        this.getOrderList();
      }, 600);
    },
    scrolltolower() {
      clearTimeout(this.time);
      this.isLoadingReachData = true;
      this.time = setTimeout(() => {
        this.pageNum = this.pageNum + 1;
        this.getOrderList();
      }, 500);
    },
    handleShowDropDown() {
      this.showDropdown = !this.showDropdown;
    },
  },
};
</script>



<style lang="scss">
.index-container {
  // overflow: hidden;
  background: #f5f5f5;
  min-height: 100vh;
  .shop-info {
    display: flex;
    align-items: center;
    padding: 40rpx;
    padding-top: 20rpx;
    background: #fff;

    .shop-logo-img {
      width: 90rpx;
      height: 90rpx;
      background-image: url("../../static/logo.png");
      background-size: 100% 100%;
      border-radius: 50%;
    }
    .shop-name {
      margin-left: 20rpx;
      font-weight: bold;
      background: #fff;
    }
  }

  .order-loading {
    margin: 70% auto;
    display: flex;
  }

  .tab-content {
    margin-bottom: 20rpx;
    background: #fff;
  }

  .tab2-content {
    background: #f5f5f5;
  }

  .search-contetn {
    display: flex;
    align-items: center;
    padding: 40rpx;

    .btn-content {
      margin-left: 20rpx;
      padding: 16rpx 20rpx;
      width: 200rpx;
      border-radius: 60rpx;
      background: #fff;
      color: #333333;
      font-size: 14px;
      text-align: center;
    }
  }

  .order-info-content {
    border-radius: 8rpx;

    .uni-swiper-list {
      height: calc(100vh - 310px);
    }

    .order-msg-tips {
      padding: 12rpx;
      height: 72rpx;
      line-height: 72rpx;
      font-size: 26rpx;
      background: #efdfc7;
      color: #d9001b;
    }

    .steps-content {
      padding: 20rpx;
      border-bottom: 1px solid #d7d7d7;

      .steps-title {
        font-size: 20px;
        font-weight: bold;
        color: #333333;
      }

      .steps-item-1 {
        /deep/.u-text__value--tips {
          margin: 40rpx 0;
        }
      }
    }

    .order-info-block {
      margin: 28rpx;
      border-radius: 24rpx;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
      transition: height 0.5s ease;

      // #ifdef H5
      height: 380rpx;
      // #endif

      // #ifdef APP-PLUS
      height: 360rpx;
      // #endif

      .order-info-hander {
        margin: 24rpx;
        font-size: 32rpx;
        border-bottom: 1px solid #f7f7f7;

        .order-num-block {
          display: flex;
          justify-content: space-between;
          align-items: center;

          .order-serial-num {
            color: #333333;
          }
        }
        .rider-info {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 24rpx 0;
          color: #333333;

          .delivery-time {
            font-size: 26rpx;
          }
        }

        .order-num {
          font-size: 24rpx;
        }

        .delivery-status {
          font-size: 32rpx;
          font-weight: bold;
          color: #4b71ff;
        }
      }

      .user-info-block {
        padding: 32rpx 0;
        margin: 0 24rpx;
        border-bottom: 1px solid #f7f7f7;

        .user-info {
          font-size: 26rpx;
          margin-bottom: 20rpx;
        }

        .user-address {
          font-size: 24rpx;
          margin-bottom: 20rpx;
        }

        .distance {
          font-size: 24rpx;
        }
      }

      .picking-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 32rpx 0;
        margin: 0 24rpx;
        border-bottom: 1px solid #f7f7f7;

        .picking-status {
          font-size: 26rpx;
          color: #7f7f7f;
          font-weight: 500;
          flex: 1;
        }

        .picking-btn {
          width: 34%;
          height: 60rpx;
          font-size: 24rpx;
          border-radius: 32rpx;
          background: #4b71ff;
          color: #fff;
          border: none;
        }
      }

      .delivery-status-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 32rpx 0;
        margin: 0 24rpx;
        border-bottom: 1px solid #f7f7f7;
        color: #333333;

        .delivery-status {
          font-size: 40rpx;
          font-weight: 700;
        }

        .delivery-num {
          font-size: 26rpx;
        }
      }

      .order-remark {
        margin: 12rpx;
        padding: 12rpx;
        background: #4b71ff;
        color: #fff;
      }

      .commodity-info-block {
        padding: 12rpx 0;
        margin: 0 24rpx;
        border-bottom: 1px solid #f7f7f7;

        .commodity-num {
          font-size: 28rpx;
        }

        .commodity-info {
          margin: 16rpx 8rpx;
          display: flex;
          // justify-content: space-between;
          align-items: center;
          color: #333333;

          .commodity-info-img {
            width: 120rpx;
            height: 120rpx;
          }

          .commodity-content {
            width: 50%;
            margin-left: 16rpx;

            .commodity-name {
              font-size: 28rpx;
            }

            .commodity-barcode,
            .commodity-specification {
              font-size: 24rpx;
            }
          }

          .commodity-num {
            flex: 1;
          }
        }
      }

      .baling-charges-block {
        display: flex;
        justify-content: space-between;
        padding: 24rpx 0;
        margin: 0 24rpx;
        font-size: 24rpx;
        border-bottom: 1px solid #f7f7f7;
        color: #aaaaaa;
      }

      .cost-info-block {
        padding: 24rpx 0;
        margin: 0 24rpx;
        border-bottom: 1px solid #f7f7f7;
        font-size: 26rpx;

        .cost-info-item {
          display: flex;
          justify-content: space-between;
          margin-bottom: 40rpx;

          .cost-info-num {
            margin-right: 20rpx;
          }
        }

        .cost-info-income {
          margin-top: 20rpx;
          font-size: 26rpx;
          text-align: right;
          color: #7f7f7f;
        }
      }

      .predict-income {
        margin-bottom: 40rpx;
      }

      .order-btn-block {
        padding: 24rpx;
        .btn-list {
          display: flex;
          justify-content: flex-end;
          .btn-item {
            margin: 0;
            margin-left: 24rpx;
            width: 160rpx;
            height: 60rpx;
            font-size: 24rpx;
            border-radius: 32rpx;
            background: #4b71ff;
            color: #fff;
            border: none;
          }
        }

        .arrow-item {
          display: flex;
          align-items: center;
          justify-content: flex-end;
          margin-top: 40rpx;
          font-size: 26rpx;
          color: #cccccc;
        }
      }
    }

    .order-info-oepn {
      // #ifdef H5
      height: 940px;
      // #endif

      // #ifdef APP-PLUS
      height: 1460rpx;
      // #endif
    }

    .order-abnormal {
      // #ifdef H5
      height: 900px;
      // #endif

      // #ifdef APP-PLUS
      height: 1400rpx;
      // #endif
    }

    .order-refund {
      // #ifdef H5
      height: 480rpx;
      // #endif

      // #ifdef APP-PLUS
      height: 460rpx;
      // #endif
    }

    .order-refund-open {
      // #ifdef H5
      height: 1150px;
      // #endif

      // #ifdef APP-PLUS
      height: 1850rpx;
      // #endif
    }
  }

  .m-loading-box {
    text-align: center;
    margin: 40rpx;
    color: #aaaa;
    font-size: 28rpx;
  }

  .no-data {
    .no-data-bg {
      margin: 20% auto;
      margin-bottom: 0;
      width: 480rpx;
      height: 480rpx;
      background-image: url("../../static/no-order-data.png");
      background-size: 100%;
    }
    .no-data-tips {
      margin: 80rpx auto;
      color: #aaaaaa;
      text-align: center;
    }
  }

  .btn-down-list {
  }

  .tui-animation {
    display: inline-block;
    transform: rotate(0deg);
    transition: all 0.2s;
  }

  .tui-animation-show {
    transform: rotate(180deg);
  }
}
</style>
