shish %!s(int64=2) %!d(string=hai) anos
pai
achega
8458c5cdab
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      hdApp/src/pagesPurchase/components/item.vue

+ 3 - 3
hdApp/src/pagesPurchase/components/item.vue

@@ -45,7 +45,7 @@
 						<text v-else style="color:red;font-weight:bold;margin-right:55upx;">还剩 {{ parseFloat(info.stock) }}</text>
 					</stock>
 					<stock v-else>
-						<stock v-if="showSold && showSold == '1'">
+						<stock v-if="showSold && showSold == 1">
 							<text style="color:#333;margin-right:55upx;">已售 {{ info.actualSold ? parseInt(info.actualSold):0 }}</text>
 						</stock>
 					</stock>
@@ -76,8 +76,8 @@ export default {
 			default: 0
 		},
 		showSold:{
-			type: String,
-			default: '0'
+			type: Number,
+			default: 0
 		},
 		showStock:{
 			type: String,