Jelajahi Sumber

隐藏功能

shish 2 tahun lalu
induk
melakukan
3a75bad4f7

+ 1 - 2
ghsApp/src/admin/changePrice/changeStock2.vue

@@ -9,7 +9,6 @@
 				<app-search-module ref="globalSearchRef" v-model="globalPy" placeholder="这里搜索" @input="globalSearch" />
 			</view>
 		</view>
-
 		<view class="scroll-middle_bx">
 			<scroll-view scroll-y scroll-with-animation class="tab-view">
 				<div v-for="(item, index) in globalClassData" :key="index" class="tab-bar-item" :class="[globalClassIndex == index ? 'active' : '']" :data-current="index" @tap.stop="currentSwitchClass(index,item)">
@@ -22,7 +21,7 @@
 					:scroll-into-view="scroll_into_view" 
 					scroll-with-animation="true"
 					lower-threshold="100"
-					@scrolltolower="scroll_bottom">
+					@scrolltolower="globalScrollBottom">
 
 				<block v-if="!$util.isEmpty(globalItemData)">
 					<view class="item_list_bx selectAll">

+ 20 - 3
ghsApp/src/admin/changePrice/components/Item2.vue

@@ -8,9 +8,16 @@
 			style="position:absolute;bottom:0upx;font-size:24upx;left:10upx;z-index:40;">取消满减</button>
 
 		<view class="img_bx" @click="pageTo({url: '/admin/item/detail?id='+info.id})">
-			<view v-if="info.status == 2" class="sold-out">
-				<view class="sold-out-xj">已下架</view>
-			</view>
+			<block v-if="info.frontHide == 1">
+				<view class="sold-out">
+					<view class="hide">隐</view>
+				</view>
+			</block>
+			<block v-else>
+				<view v-if="info.status == 2" class="sold-out">
+					<view class="sold-out-xj">已下架</view>
+				</view>
+			</block>
 			<image :src="info.cover" style="width:160upx;height:160upx;" lazy-load="true" :lazy-load-margin="0"></image>
 		</view>
 		<view class="cmd-info_bx" @click="pageTo({url: '/admin/item/detail?id='+info.id})">
@@ -81,6 +88,12 @@ export default {
 		};
 	},
 	watch: {
+		info: {
+			deep: true,
+			handler: function(info){
+				this.frontHide = info.frontHide
+			}
+		},
 		modifyPrice: {
 			handler(newValue) {
 				if(Number(newValue)>0){
@@ -180,6 +193,10 @@ export default {
 				line-height:160upx;
 				font-size:28upx;
 			}
+			.hide{
+				line-height:160upx;
+				font-size:30upx;
+			}
 		}
 	}
 	.cmd-info_bx {

+ 14 - 3
ghsApp/src/admin/changePrice/components/changeStockItem2.vue

@@ -2,9 +2,16 @@
 <view class="product">
 	<view class="item-cmd_bx">
 		<view class="img_bx">
-			<view v-if="info.status == 2" class="sold-out">
-				<view class="sold-out-xj">已下架</view>
-			</view>
+			<block v-if="info.status == 2">
+				<view class="sold-out">
+					<view class="sold-out-xj">已下架</view>
+				</view>
+			</block>
+			<block v-else>
+				<view v-if="info.frontHide == 1" class="sold-out">
+					<view class="hide">隐</view>
+				</view>
+			</block>
 			<image :src="info.cover" style="width:160upx;height:160upx;" lazy-load="true" :lazy-load-margin="0"></image>
 		</view>
 		<view class="cmd-info_bx" @click="pageTo({url: '/admin/item/detail',query: {id: info.id}})">
@@ -116,6 +123,10 @@ export default {
 				line-height:160upx;
 				font-size:28upx;
 			}
+			.hide{
+				line-height:160upx;
+				font-size:30upx;
+			}
 		}
 	}
 	.cmd-info_bx {

+ 30 - 0
ghsApp/src/components/module/app-commodity.vue

@@ -1,6 +1,16 @@
 <template>
 	<view class="item-cmd_bx" @click="showAddModelFn()">
 		<view class="img_bx" style="background:#eeeeee">
+			<block v-if="info.status == 2">
+			<view class="sold-out">
+				<view class="sold-out-xj">已下架</view>
+			</view>
+			</block>
+			<block v-else>
+			<view class="sold-out" v-if="info.frontHide == 1">
+				<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 +157,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:140upx;
+				font-size:28upx;
+			}
+			.hide{
+				line-height:140upx;
+				font-size:30upx;
+			}
+		}
 	}
 	.cmd-info_bx {
 		padding-left: 160upx;

+ 33 - 3
ghsApp/src/pagesPurchase/components/CommodityPurchase.vue

@@ -2,6 +2,16 @@
   <view class="product">
     <view class="item-cmd_bx" @click="showAddModelFn">
       <view class="img_bx" style="background:#eeeeee">
+        <block v-if="info.status == 2">
+          <view class="sold-out">
+            <view class="sold-out-xj">已下架</view>
+          </view>
+			  </block>
+        <block v-else>
+          <view class="sold-out" v-if="info.frontHide == 1">
+            <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>
@@ -135,10 +145,30 @@ export default {
     position: absolute;
     left: 0upx;
     top: 0upx;
-			image{
-				width: 100%;
-				height: 100%;
+    image{
+      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:140upx;
+				font-size:28upx;
+			}
+			.hide{
+				line-height:140upx;
+				font-size:30upx;
 			}
+		}
   }
   .cmd-info_bx {
     padding-left: 167upx;