package.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="common-page" style="padding: 0">
  3. <PageScroll
  4. requestStr="/app/orderStat/splitOrderStat"
  5. @updateList="updateList"
  6. ref="scrollRef"
  7. >
  8. <u-sticky :customNavHeight="0">
  9. <view class="search-area flex-a">
  10. <view class="text-item flex-1">日期</view>
  11. <view class="text-item flex-1">数量</view>
  12. </view>
  13. </u-sticky>
  14. <view class="list-con">
  15. <view v-for="(item, index) in dataList" :key="index" class="flex-a">
  16. <view class="text-item flex-1">{{ item.statDate }}</view>
  17. <view class="text-item flex-1">{{ item.statNum }}</view>
  18. </view>
  19. </view>
  20. </PageScroll>
  21. </view>
  22. </template>
  23. <script setup>
  24. import PageScroll from "@/components/pageScroll/index.vue";
  25. import { ref } from "vue";
  26. const scrollRef = ref(null);
  27. let dataList = ref([]);
  28. const updateList = (data) => {
  29. dataList.value = data;
  30. };
  31. </script>
  32. <style lang="scss">
  33. .search-area {
  34. padding: 24rpx;
  35. background-color: #ffffff;
  36. z-index: 9;
  37. }
  38. </style>