shish 2 lat temu
rodzic
commit
8458c5cdab
1 zmienionych plików z 3 dodań i 3 usunięć
  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,