isbn-order.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="common-page" style="padding: 0;">
  3. <PageScroll requestStr="/team/token/shop/invite/page" @updateList="updateList" ref="scrollRef"
  4. :otherParams="otherParams">
  5. <order-item style="margin-top:10px"></order-item>
  6. <order-item></order-item>
  7. <view class="list-con" v-if="dataList.length">
  8. <OrderItem v-for="cell in dataList" :key="cell.id" :item="cell" class="mt-20">
  9. </OrderItem>
  10. </view>
  11. </PageScroll>
  12. </view>
  13. </template>
  14. <script setup>
  15. import {
  16. reactive
  17. } from 'vue';
  18. import PageScroll from '@/components/pageScroll/index.vue'
  19. import OrderItem from '@/pages/my/components/orderItem.vue';
  20. import {
  21. ref
  22. } from 'vue';
  23. import {
  24. onLoad
  25. } from '@dcloudio/uni-app'
  26. const otherParams = ref({
  27. sender: '',
  28. })
  29. const scrollRef = ref(null)
  30. const refreshList = () => {
  31. scrollRef.value?.resetUpScroll()
  32. }
  33. let dataList = ref([])
  34. const updateList = (data) => {
  35. dataList.value = data
  36. }
  37. </script>
  38. <style lang="scss">
  39. .search-area {
  40. padding: 24rpx;
  41. background-color: #ffffff;
  42. z-index: 9;
  43. }
  44. </style>