|
@ -3,10 +3,13 @@ |
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="myCommonsService" class="card" |
|
|
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="myCommonsService" class="card" |
|
|
:offset="50"> |
|
|
:offset="50"> |
|
|
<div class="card m-bottom10" v-for="(item,index) in EnjoyableList" :key="index" @click="$router.push({ path: `/detailServices`,query:{id:item.id} })"> |
|
|
<div class="card m-bottom10" v-for="(item, index) in EnjoyableList" :key="index" |
|
|
|
|
|
@click="$router.push({ path: `/detailServices`, query: { id: item.id } })"> |
|
|
<div class="flex flex-x flex-center2"> |
|
|
<div class="flex flex-x flex-center2"> |
|
|
<van-tag v-if="item.status" color="#EBF1FE" text-color="#3974F6" size="large">{{ item.status? "进行中":"已结束" }}</van-tag> |
|
|
<van-tag v-if="item.status" color="#EBF1FE" text-color="#3974F6" size="large">{{ item.status ? |
|
|
<van-tag v-if="!item.status" color="#F5F5F5" text-color="#AAAAAA" size="large">{{ item.status? "进行中":"已结束" }}</van-tag> |
|
|
"进行中":"已结束" }}</van-tag> |
|
|
|
|
|
<van-tag v-if="!item.status" color="#F5F5F5" text-color="#AAAAAA" size="large">{{ item.status ? |
|
|
|
|
|
"进行中":"已结束" }}</van-tag> |
|
|
<div class="font-size13 C1 m-left12">{{ item.startDate }}</div> |
|
|
<div class="font-size13 C1 m-left12">{{ item.startDate }}</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="m-top10">{{ item.title }}</div> |
|
|
<div class="m-top10">{{ item.title }}</div> |
|
@ -39,16 +42,17 @@ import { myCommonsService } from '@/api/user' |
|
|
async myCommonsService() { |
|
|
async myCommonsService() { |
|
|
let res = await myCommonsService() |
|
|
let res = await myCommonsService() |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|
|
|
|
debugger |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
if (res.data.list.length < this.pageSize) { |
|
|
if (!res.data || res.data.list.length < this.pageSize) { |
|
|
this.finished = true; |
|
|
this.finished = true; |
|
|
} |
|
|
} |
|
|
|
|
|
if(res.data){ |
|
|
this.EnjoyableList = this.EnjoyableList.concat(res.data.list); |
|
|
this.EnjoyableList = this.EnjoyableList.concat(res.data.list); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped></style> |
|
|
|
|
|
|
|
|
</style> |
|
|
|