shish 3 лет назад
Родитель
Сommit
640313d7d7
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      ghsApp/src/admin/item/components/item.vue

+ 8 - 5
ghsApp/src/admin/item/components/item.vue

@@ -14,9 +14,9 @@
 				{{ info.name }}
 			</view>
 			<text v-if="info.variety && info.variety ==1" class="show-color"></text>
-			<view class="kc">¥{{ parseFloat(info.price) }} 
-				<text style="margin-left:25upx;color:#555555;font-weight:normal;">¥{{ parseFloat(info.skPrice) }}</text>
-				<text style="margin-left:32upx;color:#999;font-size:23upx;font-weight:normal;">成本 ¥{{ info.cost?parseFloat(info.cost):0 }}</text>
+			<view class="kc">¥{{ info.price?parseFloat(info.price):0 }} 
+				<text style="margin-left:10upx;color:#555555;font-weight:normal;">¥{{ info.skPrice?parseFloat(info.skPrice):0 }}</text>
+				<text style="margin-left:10upx;color:#999;font-size:23upx;font-weight:normal;">¥{{ info.cost?parseFloat(info.cost):0 }}</text>
 			</view>
 			<view class="num-open_bx">
 				<template>
@@ -120,7 +120,7 @@ export default {
 				-webkit-transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
 				transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
 				position: absolute;
-				top: 50%;
+				top: 54%;
 				margin-top: -12upx;
 				right: 30upx;
 			}
@@ -133,7 +133,7 @@ export default {
 			overflow: hidden;
 			white-space: nowrap;
 			text-overflow: ellipsis;
-			width:248upx;
+			width:330upx;
 		}
 		.show-color{
 			position:absolute;
@@ -152,6 +152,9 @@ export default {
 			font-size: 26upx;
 			font-weight:bold;
 			padding: 24upx 0 24upx;
+			width:365upx;
+			overflow: hidden;
+			white-space: nowrap;
 		}
 		& .num-open_bx {
 			display: flex;