shish 2 лет назад
Родитель
Сommit
95aba3cb13
1 измененных файлов с 10 добавлено и 3 удалено
  1. 10 3
      ghsApp/src/admin/ptItem/components/Item.vue

+ 10 - 3
ghsApp/src/admin/ptItem/components/Item.vue

@@ -4,8 +4,14 @@
 			<image :src="info.cover" v-if="isImg"></image>
 		</view>
 		<view class="cmd-info_bx">
-			<view class="tit">{{ info.name || "" }}</view>
-			<view class="kc">{{info.className}}
+			<view class="tit" style="display:flex;align-items:center;">
+				{{ info.name || "" }}
+				<image v-if="info.auth == 1" :src="`${constant.imgUrl}/icon/official8.png`" mode="widthFix" 
+				style="width:42upx;height:42upx;display:inline-block;margin-left:10upx;border-radius:10upx;"></image>
+			</view>
+			<view class="kc">
+				<text style="font-size:28upx;">{{info.className}}</text> 
+				<text style="margin-left:20upx;color:green;font-size:28upx;font-weight:bold;">{{info.useNum}}家在用</text>
 				<text v-if="info.select == 2 && info.is_delete == 1" style="position:absolute;right:245upx;color:red;">已删除</text>
 				<text v-if="info.select == 2 && info.is_delete == 1" style="color:#1f1cc0;float:right;margin-right:103upx;">恢复</text>
 				<text v-else-if="info.select == 2" style="color:#1f1cc0;float:right;margin-right:80upx;">已导入</text>
@@ -13,7 +19,8 @@
 			</view>
 			<view class="num-open_bx">
 				<view class="open-bx warn">
-					<text>{{info.ratio}}{{info.smallUnit}}/{{ info.bigUnit }}</text>
+					<text v-if="info.ratioType == 0">{{info.ratio}}{{info.smallUnit}}/{{ info.bigUnit }}</text>
+					<text v-else>若干{{info.smallUnit}}/{{ info.bigUnit }}</text>
 				</view>
 			</view>
 		</view>