代码提交

This commit is contained in:
黄少君
2023-11-17 20:55:32 +08:00
parent 35b43ffd97
commit c3e62f8922
73 changed files with 1808 additions and 781 deletions

View File

@ -29,13 +29,16 @@
</view>
<Empty
v-else
:iconSrc="emptyIcon"
:iconSrc="emptyOrderIcon"
></Empty>
<!-- 加载中 -->
<ListLoadLoading v-if="loading" />
<!-- 加载完毕-->
<ListLoadOver v-if="loadend" />
</layout>
<ReturnTop :scroll-top="scrollTop" />
</template>
<script setup>
@ -43,9 +46,15 @@ import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { orderList, storeAfterSalesList } from '@/api/order'
import { useRouter } from "@/hooks/useRouter";
import emptyIcon from "@/static/icon/empty/订单.png"
import {emptyOrderIcon} from "@/utils/images";
import Empty from "@/components/Empty/index.vue"
import { usePage } from "@/hooks";
import ReturnTop from "@/components/ReturnTop/index.vue";
import ListLoadOver from "@/components/ListLoadOver/index.vue"
import ListLoadLoading from "@/components/ListLoadLoading/index.vue"
import { useScroll } from "@/hooks/useScroll";
const {scrollTop} = useScroll()
const {type, refresh, dataList, loadend, loading, listEmpty} = usePage(storeAfterSalesList)