shish il y a 2 ans
Parent
commit
dec21dc670
1 fichiers modifiés avec 25 ajouts et 0 suppressions
  1. 25 0
      ghsApp/src/components/module/app-commodity2.vue

+ 25 - 0
ghsApp/src/components/module/app-commodity2.vue

@@ -1,6 +1,11 @@
 <template>
 	<view class="item-cmd_bx" @click="showAddModelFn()">
 		<view class="img_bx" style="background:#eeeeee">
+			<block v-if="info.frontHide == 1">
+				<view class="sold-out">
+					<view class="hide">隐</view>
+				</view>
+			</block>
 			<image :src="info.cover" lazy-load="true" :lazy-load-margin="0"></image>
 			<view style="width:30upx;height:30upx;top:0upx;left:0upx;position: absolute;" @click.stop="delProduct(info)"> </view>
 		</view>
@@ -147,6 +152,26 @@ export default {
 			width: 100%;
 			height: 100%;
 		}
+		.sold-out{
+			z-index:10;
+			width:140upx;
+			height:140upx;
+			background-color:black;
+			position:absolute;
+			top:0;
+			left:0;
+			opacity: 0.6;
+			color:white;
+			text-align:center;
+			.sold-out-xj{
+				line-height:160upx;
+				font-size:28upx;
+			}
+			.hide{
+				line-height:160upx;
+				font-size:30upx;
+			}
+		}
 	}
 	.cmd-info_bx {
 		padding-left: 160upx;