|
@@ -2,7 +2,7 @@
|
|
|
<div class="auction">
|
|
<div class="auction">
|
|
|
<van-sticky :offset-top="46">
|
|
<van-sticky :offset-top="46">
|
|
|
<div class="search-bar">
|
|
<div class="search-bar">
|
|
|
- <img class="icon" src="../../assets/nav_logo_2.png" alt="" />
|
|
|
|
|
|
|
+ <span class="icon">拍卖中心</span>
|
|
|
<div class="search-input">
|
|
<div class="search-input">
|
|
|
<img src="../../assets/icon-sosuo1.png" alt="" />
|
|
<img src="../../assets/icon-sosuo1.png" alt="" />
|
|
|
<span>搜索你要的精彩</span>
|
|
<span>搜索你要的精彩</span>
|
|
@@ -10,7 +10,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</van-sticky>
|
|
</van-sticky>
|
|
|
|
|
|
|
|
- <swiper :pagination="{ type: 'progressbar' }" :space-between="16" class="mySwiper" :autoplay="{ delay: 3500 }">
|
|
|
|
|
|
|
+ <swiper pagination :space-between="16" class="mySwiper" :autoplay="{ delay: 3500 }">
|
|
|
<swiper-slide>
|
|
<swiper-slide>
|
|
|
<van-image
|
|
<van-image
|
|
|
width="calc(100vw - 32px)"
|
|
width="calc(100vw - 32px)"
|
|
@@ -30,6 +30,36 @@
|
|
|
/>
|
|
/>
|
|
|
</swiper-slide>
|
|
</swiper-slide>
|
|
|
</swiper>
|
|
</swiper>
|
|
|
|
|
+ <van-grid :border="false">
|
|
|
|
|
+ <van-grid-item :icon="require('../../assets/yikou.png')" text="随时拍" />
|
|
|
|
|
+ <van-grid-item :icon="require('../../assets/suishi.png')" text="一口价" />
|
|
|
|
|
+ <van-grid-item :icon="require('../../assets/shuzi.png')" text="数字艺术" />
|
|
|
|
|
+ <van-grid-item :icon="require('../../assets/zhengji.png')" text="拍卖征集" />
|
|
|
|
|
+ </van-grid>
|
|
|
|
|
+ <van-tabs v-model:active="sort">
|
|
|
|
|
+ <van-tab title="藏传文玩" name="id,desc"></van-tab>
|
|
|
|
|
+ <van-tab title="数字艺术" name="like,desc"></van-tab>
|
|
|
|
|
+ </van-tabs>
|
|
|
|
|
+ <van-list
|
|
|
|
|
+ :immediate-check="false"
|
|
|
|
|
+ v-model:loading="loading"
|
|
|
|
|
+ :finished="finished"
|
|
|
|
|
+ finished-text=""
|
|
|
|
|
+ @load="getData"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-for="(item, index) in list" :key="index">
|
|
|
|
|
+ <auction-info :info="item"></auction-info>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-for="i in 10" :key="i">
|
|
|
|
|
+ <auction-info></auction-info>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <van-empty
|
|
|
|
|
+ :image="require('@assets/kong_png_yongyoude (1).png')"
|
|
|
|
|
+ v-if="empty"
|
|
|
|
|
+ description="没有任何藏品哦~"
|
|
|
|
|
+ />
|
|
|
|
|
+ </van-list>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -43,10 +73,21 @@ import SwiperCore, { Pagination, Autoplay } from 'swiper';
|
|
|
|
|
|
|
|
// install Swiper modules
|
|
// install Swiper modules
|
|
|
SwiperCore.use([Pagination, Autoplay]);
|
|
SwiperCore.use([Pagination, Autoplay]);
|
|
|
|
|
+import list from '../../mixins/list';
|
|
|
|
|
+import auctionInfo from '../../components/auction/info.vue';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ mixins: [list],
|
|
|
components: {
|
|
components: {
|
|
|
Swiper,
|
|
Swiper,
|
|
|
- SwiperSlide
|
|
|
|
|
|
|
+ SwiperSlide,
|
|
|
|
|
+ auctionInfo
|
|
|
|
|
+ },
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ sort: 'id,desc',
|
|
|
|
|
+ url: '',
|
|
|
|
|
+ list: []
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
@@ -59,9 +100,10 @@ export default {
|
|
|
padding: 9px 16px;
|
|
padding: 9px 16px;
|
|
|
.flex();
|
|
.flex();
|
|
|
.icon {
|
|
.icon {
|
|
|
- height: 24px;
|
|
|
|
|
- width: auto;
|
|
|
|
|
- display: block;
|
|
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ color: #000000;
|
|
|
|
|
+ line-height: 24px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.search-input {
|
|
.search-input {
|
|
@@ -86,16 +128,78 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/deep/.mySwiper {
|
|
/deep/.mySwiper {
|
|
|
- --swiper-theme-color: @prim;
|
|
|
|
|
margin: 11px 16px;
|
|
margin: 11px 16px;
|
|
|
.swiper-pagination {
|
|
.swiper-pagination {
|
|
|
- top: calc(100vw - 42px);
|
|
|
|
|
- width: 58px;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- transform: translateX(-50%);
|
|
|
|
|
- border-radius: 2px;
|
|
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
- background-color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .swiper-pagination-bullet {
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 4px;
|
|
|
|
|
+ border-radius: 2px;
|
|
|
|
|
+ margin: 0 0;
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ opacity: 0.5;
|
|
|
|
|
+
|
|
|
|
|
+ &.swiper-pagination-bullet-active {
|
|
|
|
|
+ background-color: @prim;
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/deep/.van-grid {
|
|
|
|
|
+ .van-grid-item__content {
|
|
|
|
|
+ padding: 10px 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .van-icon__image {
|
|
|
|
|
+ width: 32px;
|
|
|
|
|
+ height: 32px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .van-grid-item__text {
|
|
|
|
|
+ margin-top: 4px;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ color: #000;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+/deep/.van-tabs {
|
|
|
|
|
+ padding: 0 16px;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ &::after {
|
|
|
|
|
+ content: '';
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ height: 2px;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ background: #f5f5f5;
|
|
|
|
|
+ }
|
|
|
|
|
+ .van-tab {
|
|
|
|
|
+ margin-right: 30px;
|
|
|
|
|
+ .van-tab__text {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &.van-tab--active {
|
|
|
|
|
+ .van-tab__text {
|
|
|
|
|
+ color: #000;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .van-tabs__nav--line {
|
|
|
|
|
+ padding-bottom: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ .van-tabs__line {
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 2px;
|
|
|
|
|
+ bottom: 0px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.van-list {
|
|
|
|
|
+ padding: 8px;
|
|
|
|
|
+ background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 40px, #f5f5f5 100%);
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|