|
|
@@ -1,7 +1,11 @@
|
|
|
<template>
|
|
|
<div class="current_recommendation_con" :key="index" @click="goDetail">
|
|
|
<!-- <img :src="info.pic[0].url" alt="" class="current_recommendation_img"> -->
|
|
|
- <van-image width="100%" height="calc(100vw/2 - 22.2px)" :radius="18" :src="getImg(info.pic[0].url)" fit="cover" />
|
|
|
+ <van-image width="100%" height="calc(100vw/2 - 22.2px)" :radius="18" :src="getImg(info.pic[0].url)" fit="cover">
|
|
|
+ <template v-slot:loading>
|
|
|
+ <van-loading type="spinner" size="20" />
|
|
|
+ </template>
|
|
|
+ </van-image>
|
|
|
<!-- <van-image width="100%" height="calc(50vw - 24px)" :src="getImg(changeImgs(info.pic, 600))" fit="cover" class="current_recommendation_img"/> -->
|
|
|
<div class="current_recommendation_title">{{ info.name }}</div>
|
|
|
<div class="information_display">
|
|
|
@@ -13,7 +17,8 @@
|
|
|
<div v-else class="showOnly">仅展示</div>
|
|
|
</div>
|
|
|
<div class="information_display_con">
|
|
|
- <span>{{ Math.max(Math.min(info.sale, info.total), 0) }}</span> / <span>{{ info.total }}</span>
|
|
|
+ <span>{{ Math.max(Math.min(info.sale, info.total), 0) }}</span
|
|
|
+ > / <span>{{ info.total }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="current_recommendation_bottom">
|
|
|
@@ -23,11 +28,16 @@
|
|
|
<div class="current_recommendation_name">{{ info.owner }}</div>
|
|
|
</div>
|
|
|
<div class="current_recommendation_bottom_right">
|
|
|
- <img :src="info.liked ? likes : noLikes" @click.stop="likeProduct" alt="" class="current_recommendation_bottom_right_img" />
|
|
|
- <div class="give_number">{{info.likes}}</div>
|
|
|
+ <img
|
|
|
+ :src="info.liked ? likes : noLikes"
|
|
|
+ @click.stop="likeProduct"
|
|
|
+ alt=""
|
|
|
+ class="current_recommendation_bottom_right_img"
|
|
|
+ />
|
|
|
+ <div class="give_number">{{ info.likes }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <img :src="require('@assets/dibuwenli.png')" alt="" class="bottom_texture">
|
|
|
+ <img :src="require('@assets/dibuwenli.png')" alt="" class="bottom_texture" />
|
|
|
</div>
|
|
|
<!-- <div class="sold xianliang" v-if="time && info.salable">
|
|
|
<img src="@assets/shizhong.png" alt="" />
|
|
|
@@ -123,7 +133,7 @@ export default {
|
|
|
margin-bottom: 17px;
|
|
|
overflow: hidden;
|
|
|
position: relative;
|
|
|
- .bottom_texture{
|
|
|
+ .bottom_texture {
|
|
|
width: 100px;
|
|
|
height: 100px;
|
|
|
position: absolute;
|
|
|
@@ -158,14 +168,14 @@ export default {
|
|
|
font-weight: 600;
|
|
|
color: #ffffff;
|
|
|
position: relative;
|
|
|
- .current_recommendation_price_one{
|
|
|
+ .current_recommendation_price_one {
|
|
|
font-size: 12px;
|
|
|
line-height: 20px;
|
|
|
position: absolute;
|
|
|
bottom: 1px;
|
|
|
left: 0px;
|
|
|
}
|
|
|
- .current_recommendation_price_two{
|
|
|
+ .current_recommendation_price_two {
|
|
|
font-size: 16px;
|
|
|
line-height: 24px;
|
|
|
}
|
|
|
@@ -177,12 +187,12 @@ export default {
|
|
|
line-height: 24px;
|
|
|
}
|
|
|
}
|
|
|
- .information_display_con{
|
|
|
+ .information_display_con {
|
|
|
height: 18px;
|
|
|
font-size: 11px;
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
font-weight: 400;
|
|
|
- color: #FFFFFF;
|
|
|
+ color: #ffffff;
|
|
|
opacity: 0.5;
|
|
|
line-height: 18px;
|
|
|
}
|
|
|
@@ -216,7 +226,7 @@ export default {
|
|
|
font-size: 12px;
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
font-weight: 400;
|
|
|
- color: #FFFFFF;
|
|
|
+ color: #ffffff;
|
|
|
opacity: 0.5;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|