|
|
@@ -11,7 +11,7 @@
|
|
|
>
|
|
|
<van-sticky :offset-top="0">
|
|
|
<div class="search_con">
|
|
|
- <img src="@assets/01.png" class="logo" alt="">
|
|
|
+ <img src="@assets/01.png" class="logo" alt="" />
|
|
|
<div class="search" @click="$router.push('/productSearch')">
|
|
|
<img src="@assets/icon-sosuo.png" alt="" class="search_img" />
|
|
|
<span class="search_text">搜索你想要的</span>
|
|
|
@@ -27,32 +27,14 @@
|
|
|
: ''
|
|
|
"
|
|
|
>
|
|
|
- <!-- 商品展示 -->
|
|
|
- <div class="commodity_display">
|
|
|
- <!-- <van-swipe :loop="false" :width="94" :height="90" :show-indicators="false">
|
|
|
- <van-swipe-item v-for="(item, index) in commodityDisplayList" :key="index">
|
|
|
- <van-image width="94px" height="90px" :src="getImg(item.pic)" fit="cover" />
|
|
|
- </van-swipe-item>
|
|
|
- </van-swipe> -->
|
|
|
- <swiper v-if="commodityDisplayList.length > 0" slides-per-view="auto">
|
|
|
- <swiper-slide
|
|
|
- class="setting"
|
|
|
- v-for="item in commodityDisplayList"
|
|
|
- :key="item.id"
|
|
|
- style="width: 94px"
|
|
|
- >
|
|
|
- <van-image width="94px" height="90px" radius="8" :src="getImg(item.pic)" fit="cover" @click="goNext(item)"/>
|
|
|
- </swiper-slide>
|
|
|
- </swiper>
|
|
|
- </div>
|
|
|
<!-- banner图展示 -->
|
|
|
<div class="banner">
|
|
|
<div class="banner_con" v-for="(item, index) in bannerList" :key="index" @click="showJump(index)">
|
|
|
- <img :src="item.img" alt="" class="banner_con_img" />
|
|
|
<div class="banner_con_title">
|
|
|
<div class="banner_con_titleone">{{ item.titleone }}</div>
|
|
|
<!-- <div class="banner_con_titletwo">{{ item.titletwo }}</div> -->
|
|
|
</div>
|
|
|
+ <img :src="item.img" alt="" class="banner_con_img" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content_list">
|
|
|
@@ -108,11 +90,9 @@ import banner from '../mixins/banner';
|
|
|
export default {
|
|
|
// name: 'discover',
|
|
|
// inject: ['bar', 'setKeeps', 'scrollWrapper', 'changeScroll'],
|
|
|
- mixins: [product,banner],
|
|
|
+ mixins: [product, banner],
|
|
|
components: {
|
|
|
- CollectionList,
|
|
|
- Swiper,
|
|
|
- SwiperSlide
|
|
|
+ CollectionList
|
|
|
},
|
|
|
// components: {
|
|
|
// Swiper,
|
|
|
@@ -130,10 +110,10 @@ export default {
|
|
|
titleone: '精选推荐'
|
|
|
// titletwo: '介绍介绍介绍介绍'
|
|
|
},
|
|
|
- // {
|
|
|
- // img: require('@assets/icon-zhanlan.png'),
|
|
|
- // titleone: '藏品展览'
|
|
|
- // }
|
|
|
+ {
|
|
|
+ img: require('@assets/icon-zhanlan.png'),
|
|
|
+ titleone: '中展专区'
|
|
|
+ }
|
|
|
],
|
|
|
// 商品展示列表
|
|
|
commodityDisplayList: [],
|
|
|
@@ -392,15 +372,15 @@ export default {
|
|
|
height: 100%;
|
|
|
position: absolute;
|
|
|
}
|
|
|
-.discover{
|
|
|
- background: #0f0f27;
|
|
|
+.discover {
|
|
|
+ background: #202021;
|
|
|
}
|
|
|
.search_con {
|
|
|
padding: 12px 16px 24px 16px;
|
|
|
box-sizing: border-box;
|
|
|
background: #0f0f27;
|
|
|
.flex();
|
|
|
- .logo{
|
|
|
+ .logo {
|
|
|
width: 49px;
|
|
|
height: 24px;
|
|
|
margin-right: 12px;
|
|
|
@@ -408,8 +388,9 @@ export default {
|
|
|
.search {
|
|
|
flex-grow: 1;
|
|
|
height: 32px;
|
|
|
- background: #29293f;
|
|
|
- border-radius: 4px;
|
|
|
+ background: #2c2c2e;
|
|
|
+
|
|
|
+ border-radius: 16px;
|
|
|
padding: 5px 0 4px 33px;
|
|
|
box-sizing: border-box;
|
|
|
position: relative;
|
|
|
@@ -482,23 +463,27 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
margin-bottom: 16px;
|
|
|
.banner_con {
|
|
|
- width: 48%;
|
|
|
+ width: calc(50vw - 24px);
|
|
|
height: 74px;
|
|
|
border-radius: 8px;
|
|
|
- padding: 10px 0px 8px 8px;
|
|
|
+ padding: 10px 12px;
|
|
|
display: flex;
|
|
|
box-sizing: border-box;
|
|
|
+ justify-content: space-between;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
.banner_con_img {
|
|
|
width: 56px;
|
|
|
height: 56px;
|
|
|
- margin-right: 4px;
|
|
|
+ z-index: 2;
|
|
|
}
|
|
|
.banner_con_title {
|
|
|
padding-top: 14px;
|
|
|
+ z-index: 2;
|
|
|
.banner_con_titleone {
|
|
|
font-size: 16px;
|
|
|
- font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
- font-weight: 600;
|
|
|
+ font-weight: bold;
|
|
|
+ line-height: 24px;
|
|
|
color: #ffffff;
|
|
|
}
|
|
|
.banner_con_titletwo {
|
|
|
@@ -508,13 +493,39 @@ export default {
|
|
|
color: rgba(245, 247, 250, 0.8);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: 1px;
|
|
|
+ left: 1px;
|
|
|
+ right: 1px;
|
|
|
+ bottom: 1px;
|
|
|
+ z-index: 1;
|
|
|
+ background-color: #202021;
|
|
|
+ border-radius: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 0;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.banner_con:first-child {
|
|
|
- background: linear-gradient(134deg, #597cfa 0%, #57b7ff 100%);
|
|
|
+ &::after {
|
|
|
+ background: linear-gradient(134deg, rgba(255, 222, 124, 1), rgba(255, 150, 150, 1));
|
|
|
+ }
|
|
|
}
|
|
|
.banner_con:last-child {
|
|
|
- background: linear-gradient(134deg, #28b6ff 0%, #597ffa 100%);
|
|
|
+ &::after {
|
|
|
+ background: linear-gradient(135deg, rgba(34, 255, 248, 1), rgba(151, 150, 255, 1));
|
|
|
+ }
|
|
|
}
|
|
|
.hotCollection {
|
|
|
margin-bottom: 50px;
|