浏览代码

呵呵商城修改代码

yuwenjun 4 年之前
父节点
当前提交
c3756ff03b
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      pages/tabBar/index/index.vue

+ 8 - 2
pages/tabBar/index/index.vue

@@ -26,11 +26,16 @@
 			<view class="product-list" v-for="(pro,index) in productList" :key="index" @click.stop="Details(pro)">
 				<view class="product-list-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 class="product-list-msg">
 					<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="price">¥{{ pro.price | PriceFormat}}</view>
 						<view class="carts" @click.stop="handAddCarts(pro)">
@@ -427,6 +432,7 @@
 						text-align: center;
 						color: #f83c6c;
 						float: left;
+						margin-right: 10rpx;
 					}
 				}
 				.product-list-pri{