|
|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<app-view class="purchase">
|
|
|
<app-pull-refresh class="purchase__container" v-model:pageIndex="pageIndex" :page-count="pageCount"
|
|
|
- :updateList="dataList" @refresh="onRefresh" @updated="onRefreshUpdated">
|
|
|
+ :updateList="dataList" @refresh="onRefresh">
|
|
|
<template #header>
|
|
|
- <ul class="list list-row" v-if="showHeader">
|
|
|
+ <ul class="list list-row">
|
|
|
<li class="list-column">
|
|
|
<span>商品</span>
|
|
|
</li>
|
|
|
@@ -25,7 +25,7 @@
|
|
|
<li class="list-column">
|
|
|
<span>状态</span>
|
|
|
</li>
|
|
|
- <Button round @click="routerTo('')">更多</Button>
|
|
|
+ <Button round size="mini" @click="routerTo('')">更多</Button>
|
|
|
</ul>
|
|
|
</template>
|
|
|
<template #default="{ item }">
|
|
|
@@ -51,16 +51,12 @@ import { useNavigation } from '@/hooks/navigation'
|
|
|
import { Button } from 'vant'
|
|
|
|
|
|
const { dataList, pageIndex, pageCount, getTHJPurchaseTradeDetail } = useTHJPurchaseTradeDetail()
|
|
|
-const showHeader = shallowRef(false)
|
|
|
const { routerTo } = useNavigation()
|
|
|
|
|
|
const onRefresh = (callback: () => void) => {
|
|
|
getTHJPurchaseTradeDetail().finally(() => callback())
|
|
|
}
|
|
|
|
|
|
-const onRefreshUpdated = (data: Model.UserScoreLogRsp[]) => {
|
|
|
- showHeader.value = data.length > 0
|
|
|
-}
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|