shish 3 ani în urmă
părinte
comite
efc9faa20a

+ 10 - 13
ghsApp/src/admin/changePrice/components/Item.vue

@@ -33,8 +33,8 @@
 				<text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;" 
 				v-if="info.presell == 1">预售</text>
 				{{ info.name || "" }}
+				<text v-if="info.variety && info.variety ==1" class="show-color"></text>
 			</view>
-			<text v-if="info.variety && info.variety ==1" class="show-color"></text>
 			<view class="kc">¥{{ parseFloat(info.price) }}</view>
 			<view class="num-open_bx">
 				<view>
@@ -224,18 +224,15 @@ export default {
 			white-space: nowrap;
 			text-overflow: ellipsis;
 			width:360upx;
-		}
-		.show-color{
-			position:absolute;
-			top:84upx;
-			right:190upx;
-			display:inline-block;
-			width:25upx;
-			height:25upx;
-			background-color:rgb(9, 199, 9);
-			border-radius:15upx;
-			border:none;
-			margin-left:8upx;
+			.show-color{
+				display:inline-block;
+				width:25upx;
+				height:25upx;
+				background-color:rgb(9, 199, 9);
+				border-radius:15upx;
+				border:none;
+				margin-left:15upx;
+			}
 		}
 		& .kc {
 			color:red;

+ 6 - 4
ghsApp/src/admin/item/components/item.vue

@@ -36,15 +36,17 @@
 				{{ info.name }}
 				<text v-if="info.variety && info.variety ==1" class="show-color"></text>
 			</view>
-			<view class="kc">¥{{ info.price?parseFloat(info.price):0 }} 
-				<text style="margin-left:11upx;color:#555555;font-weight:normal;">¥{{ info.skPrice?parseFloat(info.skPrice):0 }}</text>
-				<text style="margin-left:12upx;color:#999;font-size:23upx;font-weight:normal;">¥{{ info.cost?parseFloat(info.cost):0 }}</text>
+			<view class="kc">
+				<text style="color:green;font-weight:normal;">¥{{ info.hjPrice?parseFloat(info.hjPrice):0 }}</text>
+				<text style="margin-left:13upx;color:red;font-weight:bold;">¥{{ info.price?parseFloat(info.price):0 }}</text>
+				<text style="margin-left:13upx;color:#333333;11upx;font-weight:normal;">¥{{ info.skPrice?parseFloat(info.skPrice):0 }}</text>
 			</view>
 			<view class="num-open_bx">
 				<template>
 					<view class="open-bx">
 						还剩 <text style="font-size:23upx;margin-left:8upx;">{{ info.stock?parseFloat(info.stock):0 }}</text>
-						<text style="margin-left:28upx;font-size:23upx;display:inline-block;color:#999;">销量 {{ info.actualSold ? parseInt(info.actualSold) : 0 }}</text>
+						<text style="margin-left:28upx;font-size:23upx;display:inline-block;color:#999;font-weight:normal;">销量 {{ info.actualSold ? parseInt(info.actualSold) : 0 }}</text>
+						<text style="margin-left:28upx;font-size:23upx;display:inline-block;color:#999;font-weight:normal;">成本 {{ info.cost ? parseInt(info.cost) : 0 }}</text>
 					</view>
 				</template>
 			</view>