|
|
@@ -0,0 +1,83 @@
|
|
|
+<template>
|
|
|
+ <app-view class="ballot-list">
|
|
|
+ <template #header>
|
|
|
+ <app-navbar title="预售中签" />
|
|
|
+ </template>
|
|
|
+ <Banner :data-list="bannerList" />
|
|
|
+ <Waterfall class="g-goods-list" :data-list="startList">
|
|
|
+ <template #default="{ item }">
|
|
|
+ <div class="goods"
|
|
|
+ @click="$router.push({ name: 'presale-detail', params: { item: JSON.stringify(item) } })">
|
|
|
+ <div class="goods-image">
|
|
|
+ <img :src="getFileUrl(item.attachmenturl)" />
|
|
|
+ </div>
|
|
|
+ <div class="goods-info">
|
|
|
+ <div class="goods-info__title">{{ item.goodsname }}</div>
|
|
|
+ <div class="goods-info__price">
|
|
|
+ <Tag type="danger">卖价</Tag>
|
|
|
+ <span class="unit">{{ item.startprice }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </Waterfall>
|
|
|
+ <Divider>发售历史</Divider>
|
|
|
+ <Waterfall class="g-goods-list" :data-list="endList">
|
|
|
+ <template #default="{ item }">
|
|
|
+ <div class="goods"
|
|
|
+ @click="$router.push({ name: 'presale-detail', params: { item: JSON.stringify(item) } })">
|
|
|
+ <div class="goods-image">
|
|
|
+ <img :src="getFileUrl(item.attachmenturl)" />
|
|
|
+ </div>
|
|
|
+ <div class="goods-info">
|
|
|
+ <div class="goods-info__title">{{ item.goodsname }}</div>
|
|
|
+ <div class="goods-info__price">
|
|
|
+ <Tag type="danger">卖价</Tag>
|
|
|
+ <span class="unit">{{ item.refprice }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </Waterfall>
|
|
|
+ </app-view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+import { shallowRef } from 'vue'
|
|
|
+import { Tag, Divider } from 'vant'
|
|
|
+import { getFileUrl } from '@/filters'
|
|
|
+import { useRequest } from '@/hooks/request'
|
|
|
+import { queryPresaleAuctions } from '@/services/api/presale'
|
|
|
+import Banner from '@mobile/components/base/banner/index.vue'
|
|
|
+import Waterfall from '@mobile/components/base/waterfall/index.vue'
|
|
|
+
|
|
|
+const bannerList = shallowRef<string[]>([])
|
|
|
+
|
|
|
+useRequest(queryPresaleAuctions, {
|
|
|
+ params: {
|
|
|
+ presalemode: 5,
|
|
|
+ presalestatusstr: '1'
|
|
|
+ },
|
|
|
+ onSuccess: (res) => {
|
|
|
+ bannerList.value = res.data.map((e) => e.bannerpicurl)
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+const { dataList: startList } = useRequest(queryPresaleAuctions, {
|
|
|
+ params: {
|
|
|
+ presalemode: 5,
|
|
|
+ presalestatusstr: '2'
|
|
|
+ },
|
|
|
+})
|
|
|
+
|
|
|
+const { dataList: endList } = useRequest(queryPresaleAuctions, {
|
|
|
+ params: {
|
|
|
+ presalemode: 5,
|
|
|
+ presalestatusstr: '3,4'
|
|
|
+ },
|
|
|
+})
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+@import './index.less';
|
|
|
+</style>
|