shish 2 месяцев назад
Родитель
Сommit
078901f214
2 измененных файлов с 29 добавлено и 2 удалено
  1. 28 1
      ghsApp/src/admin/item/components/item2.vue
  2. 1 1
      ghsApp/src/admin/item/copy.vue

+ 28 - 1
ghsApp/src/admin/item/components/item2.vue

@@ -40,7 +40,16 @@
 				v-if="info.limitBuy > 0">限购{{ info.limitBuy }}份</text>
 
 				{{ info.name }}
-				<text v-if="info.variety && info.variety ==1" class="show-color"></text>
+
+				<block v-if="info.kind == 2">
+					<text class="show-tree"></text>
+				</block>
+				<block v-else-if="info.kind ==3">
+					<text class="show-hole"></text>
+				</block>
+				<block v-else>
+					<text v-if="info.variety && info.variety ==1" class="show-color"></text>
+				</block>
 			</view>
 			<view class="kc">
 				<text style="color:green;font-weight:normal;">¥{{ info.hjPrice?parseFloat(info.hjPrice):0 }}</text>
@@ -221,6 +230,24 @@ export default {
 			border:none;
 			margin-left:15upx;
 		}
+		.show-tree{
+			display:inline-block;
+			width:25upx;
+			height:25upx;
+			background-color:rgb(230, 8, 19);
+			border-radius:0;
+			border:none;
+			margin-left:16upx;
+		}
+		.show-hole{
+			display:inline-block;
+			width:0;
+			height:0;
+			border-left:14upx solid transparent;
+			border-right:14upx solid transparent;
+			border-bottom:25upx solid rgb(36, 103, 228);
+			margin-left:16upx;
+		}
 		& .kc {
 			color: red;
 			font-size: 27upx;

+ 1 - 1
ghsApp/src/admin/item/copy.vue

@@ -47,7 +47,7 @@
         </tui-list-cell>
 
         <tui-list-cell class="line-cell" :hover="false">
-          <view class="tui-title">库存</view>
+          <view class="tui-title" style="color:#3385FF;font-weight:bold;">库存</view>
           <input v-model="form.stock" style="width:260upx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
         </tui-list-cell>