代码提交
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user