|
@@ -26,11 +26,16 @@
|
|
<view class="product-list" v-for="(pro,index) in productList" :key="index" @click.stop="Details(pro)">
|
|
<view class="product-list" v-for="(pro,index) in productList" :key="index" @click.stop="Details(pro)">
|
|
<view class="product-list-image">
|
|
<view class="product-list-image">
|
|
<image class="product-image" :src="pro.mainImage" mode=""></image>
|
|
<image class="product-image" :src="pro.mainImage" mode=""></image>
|
|
- <image class="product-icon" :src="StaticUrl+'icon-hot.png'" mode="" v-if="pro.activeStatus == 1"></image>
|
|
|
|
|
|
+ <!-- 推荐 -->
|
|
|
|
+ <image class="product-icon" :src="StaticUrl+'recommend.png'" mode="" v-if="pro.recommend === '1'"></image>
|
|
</view>
|
|
</view>
|
|
<view class="product-list-msg">
|
|
<view class="product-list-msg">
|
|
<view class="product-msg-name">{{ pro.name }}</view>
|
|
<view class="product-msg-name">{{ pro.name }}</view>
|
|
- <view class="product-list-tag" v-if="pro.activistatus == 1"><text class="tag">活动价</text></view>
|
|
|
|
|
|
+ <view class="product-list-tag" v-if="pro.activeStatus == 1">
|
|
|
|
+ <text class="tag">活动价</text>
|
|
|
|
+ <text class="tag" v-if="pro.includedTax == '0'">自营</text>
|
|
|
|
+ <text class="tag" v-if="pro.includedTax == '1'">促销</text>
|
|
|
|
+ </view>
|
|
<view class="product-list-pri">
|
|
<view class="product-list-pri">
|
|
<view class="price">¥{{ pro.price | PriceFormat}}</view>
|
|
<view class="price">¥{{ pro.price | PriceFormat}}</view>
|
|
<view class="carts" @click.stop="handAddCarts(pro)">
|
|
<view class="carts" @click.stop="handAddCarts(pro)">
|
|
@@ -427,6 +432,7 @@
|
|
text-align: center;
|
|
text-align: center;
|
|
color: #f83c6c;
|
|
color: #f83c6c;
|
|
float: left;
|
|
float: left;
|
|
|
|
+ margin-right: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.product-list-pri{
|
|
.product-list-pri{
|