fix: index page list
This commit is contained in:
@@ -3,14 +3,15 @@
|
||||
|
||||
<van-back-top bottom="80" />
|
||||
|
||||
<van-button :to="{ name: 'play', params: { tenant: 'ypl', hash: '123' } }" type="primary">主要按钮</van-button>
|
||||
|
||||
<van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" offset="100" @load="loadData">
|
||||
<van-card v-for="item in items" :key="item" :desc="item.title" :thumb="item.poster" @click="play(item)">
|
||||
<van-card v-for="item in items" :key="item" :thumb="item.poster" @click="play(item)">
|
||||
<template #title>
|
||||
<span>{{ item.title }}</span>
|
||||
<div class="van-card__title" style="margin-bottom: 0.5em;">
|
||||
<strong style="font-size: 1.5em">{{ item.title }}</strong>
|
||||
</div>
|
||||
</template>
|
||||
<template #price>
|
||||
|
||||
<template #price v-if="!item.bought">
|
||||
<template v-if="item.discount == 100"> 价格:{{ item.price }} 点 </template>
|
||||
|
||||
<template v-else>
|
||||
@@ -19,10 +20,11 @@
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<template #tag>
|
||||
<template v-if="item.bought">已购买</template>
|
||||
<template #price v-else>
|
||||
<van-tag type="success" size="large">已购买</van-tag>
|
||||
</template>
|
||||
|
||||
|
||||
<template #tags>
|
||||
<van-space>
|
||||
<van-tag v-for="resource in item.resources" plain type="primary">
|
||||
@@ -57,7 +59,6 @@ const play = (item) => {
|
||||
};
|
||||
|
||||
const loadData = () => {
|
||||
return
|
||||
// request /v1/medias
|
||||
const data = {
|
||||
offset: offset.value,
|
||||
|
||||
Reference in New Issue
Block a user