|
|
@@ -8,7 +8,13 @@
|
|
|
}"
|
|
|
class="product"
|
|
|
>
|
|
|
- <van-image width="100%" height="calc(100vw - 32px)" :src="getImg(changeImgs(info.pic))" fit="cover" />
|
|
|
+ <van-image
|
|
|
+ :radius="30"
|
|
|
+ width="100%"
|
|
|
+ height="calc(100vw - 32px)"
|
|
|
+ :src="getImg(changeImgs(info.pic))"
|
|
|
+ fit="cover"
|
|
|
+ />
|
|
|
|
|
|
<div class="content">
|
|
|
<div class="name van-ellipsis">{{ info.name }}</div>
|
|
|
@@ -23,16 +29,19 @@
|
|
|
</div>
|
|
|
<div class="flex1"></div>
|
|
|
<div class="price">
|
|
|
- <i class="font_family icon-icon_jiage"></i>
|
|
|
+ <img src="../../assets/icon_jiage.png" alt="" />
|
|
|
<span> {{ info.price }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="xianliang" v-if="startTime">
|
|
|
+ <div class="xianliang" v-if="time">
|
|
|
<img src="../../assets/shizhong.png" alt="" />
|
|
|
- <span>即将开售:{{ startTime }}</span>
|
|
|
+ <span>即将开售:{{ time }}</span>
|
|
|
</div>
|
|
|
+
|
|
|
+ <img class="bg" src="../../assets/png-diwen.png" alt="" />
|
|
|
+ <img class="top-bg" src="../../assets/collecbg.png" alt="" />
|
|
|
</router-link>
|
|
|
</template>
|
|
|
|
|
|
@@ -52,7 +61,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- startTime() {
|
|
|
+ time() {
|
|
|
if (this.info.startTime) {
|
|
|
if (dayjs().isSameOrBefore(this.info.startTime)) {
|
|
|
return dayjs(this.info.startTime).format('MM月DD日');
|
|
|
@@ -95,9 +104,18 @@ export default {
|
|
|
position: relative;
|
|
|
background-color: #1c1e25;
|
|
|
display: inline-block;
|
|
|
- border-radius: 12px;
|
|
|
+ border-radius: 30px;
|
|
|
overflow: hidden;
|
|
|
|
|
|
+ .bg {
|
|
|
+ position: absolute;
|
|
|
+ width: 100px;
|
|
|
+ height: 182px;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 0;
|
|
|
+ }
|
|
|
+
|
|
|
.xianliang {
|
|
|
position: absolute;
|
|
|
top: 16px;
|
|
|
@@ -106,6 +124,7 @@ export default {
|
|
|
color: @prim;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ z-index: 4;
|
|
|
img {
|
|
|
width: 18px;
|
|
|
height: 18px;
|
|
|
@@ -116,18 +135,10 @@ export default {
|
|
|
.van-image {
|
|
|
display: block;
|
|
|
position: relative;
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- background-color: #00000030;
|
|
|
- top: 0;
|
|
|
- right: 0;
|
|
|
- left: 0;
|
|
|
- bottom: 0;
|
|
|
- }
|
|
|
+ z-index: 2;
|
|
|
}
|
|
|
.content {
|
|
|
- padding: 10px;
|
|
|
+ padding: 10px 16px 18px;
|
|
|
.name {
|
|
|
font-size: @font2;
|
|
|
font-weight: bold;
|
|
|
@@ -136,10 +147,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
.sales {
|
|
|
- border-radius: 4px;
|
|
|
overflow: hidden;
|
|
|
font-size: @font1;
|
|
|
- margin-top: 10px;
|
|
|
+ margin-top: 8px;
|
|
|
|
|
|
span {
|
|
|
padding: 0 10px;
|
|
|
@@ -149,17 +159,20 @@ export default {
|
|
|
&:first-child {
|
|
|
background: @prim;
|
|
|
color: @bg;
|
|
|
+ border-radius: 4px 0 0 4px;
|
|
|
}
|
|
|
&:last-child {
|
|
|
background-color: #3d3d3a;
|
|
|
color: @prim;
|
|
|
+ border-radius: 0 4px 4px 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.bottom {
|
|
|
display: flex;
|
|
|
- margin-top: 10px;
|
|
|
+ margin-top: 14px;
|
|
|
+ align-items: center;
|
|
|
|
|
|
.miner {
|
|
|
display: flex;
|
|
|
@@ -173,15 +186,13 @@ export default {
|
|
|
}
|
|
|
|
|
|
.price {
|
|
|
- font-size: 24px;
|
|
|
+ font-size: @font4;
|
|
|
color: #fff;
|
|
|
- line-height: 22px;
|
|
|
+ line-height: 20px;
|
|
|
font-family: OSP;
|
|
|
- font-weight: bold;
|
|
|
- .font_family {
|
|
|
- font-size: 11px;
|
|
|
- margin-bottom: 3px;
|
|
|
- vertical-align: middle;
|
|
|
+ img {
|
|
|
+ width: 8px;
|
|
|
+ display: inline-block;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -192,5 +203,14 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
+ .top-bg {
|
|
|
+ width: 100%;
|
|
|
+ display: block;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 2;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|