|
|
@@ -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,
|