|
@@ -3,14 +3,13 @@
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<app-navbar title="预售竞拍" :show-back-button="false" />
|
|
<app-navbar title="预售竞拍" :show-back-button="false" />
|
|
|
</template>
|
|
</template>
|
|
|
- <Swipe :autoplay="5000" indicator-color="white" lazy-render>
|
|
|
|
|
|
|
+ <Swipe class="banner" :autoplay="5000" indicator-color="white" lazy-render>
|
|
|
<SwipeItem v-for="(item, index) in bannerList" :key="index">
|
|
<SwipeItem v-for="(item, index) in bannerList" :key="index">
|
|
|
<img :src="getFileUrl(item.bannerpicurl)" />
|
|
<img :src="getFileUrl(item.bannerpicurl)" />
|
|
|
</SwipeItem>
|
|
</SwipeItem>
|
|
|
</Swipe>
|
|
</Swipe>
|
|
|
- <div>正在抢购</div>
|
|
|
|
|
- <div class="waterfall">
|
|
|
|
|
- <div class="waterfall-item" v-for="(item, index) in startList" :key="index">
|
|
|
|
|
|
|
+ <Waterfall class="g-goods-list" :data-list="startList">
|
|
|
|
|
+ <template #default="{ item }">
|
|
|
<div class="goods"
|
|
<div class="goods"
|
|
|
@click="$router.push({ name: 'presale-detail', params: { item: JSON.stringify(item) } })">
|
|
@click="$router.push({ name: 'presale-detail', params: { item: JSON.stringify(item) } })">
|
|
|
<div class="goods-image">
|
|
<div class="goods-image">
|
|
@@ -24,11 +23,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div>发售历史</div>
|
|
|
|
|
- <div class="waterfall">
|
|
|
|
|
- <div class="waterfall-item" v-for="(item, index) in endList" :key="index">
|
|
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </Waterfall>
|
|
|
|
|
+ <Divider>发售历史</Divider>
|
|
|
|
|
+ <Waterfall class="g-goods-list" :data-list="endList">
|
|
|
|
|
+ <template #default="{ item }">
|
|
|
<div class="goods"
|
|
<div class="goods"
|
|
|
@click="$router.push({ name: 'presale-detail', params: { item: JSON.stringify(item) } })">
|
|
@click="$router.push({ name: 'presale-detail', params: { item: JSON.stringify(item) } })">
|
|
|
<div class="goods-image">
|
|
<div class="goods-image">
|
|
@@ -42,16 +41,17 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </Waterfall>
|
|
|
</app-view>
|
|
</app-view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
-import { Swipe, SwipeItem, Tag } from 'vant'
|
|
|
|
|
|
|
+import { Swipe, SwipeItem, Tag, Divider } from 'vant'
|
|
|
import { getFileUrl } from '@/filters'
|
|
import { getFileUrl } from '@/filters'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryPresaleAuctions } from '@/services/api/presale'
|
|
import { queryPresaleAuctions } from '@/services/api/presale'
|
|
|
|
|
+import Waterfall from '@mobile/components/modules/waterfall/index.vue'
|
|
|
|
|
|
|
|
const { dataList: bannerList } = useRequest(queryPresaleAuctions, {
|
|
const { dataList: bannerList } = useRequest(queryPresaleAuctions, {
|
|
|
params: {
|
|
params: {
|