|
|
@@ -13,7 +13,8 @@
|
|
|
<div class="tui-popup-price">
|
|
|
<div class="goods-tit app-bold">{{ info.name }}</div>
|
|
|
<div class="tui-amount tui-bold">¥{{ info.price?parseFloat(info.price):0 }}</div>
|
|
|
- <text style="position:absolute;top:70upx;color:#333333;width:400upx;">剩{{ info.stock ? parseFloat(info.stock) : 0 }}{{ info.bigUnit }}</text>
|
|
|
+ <!-- showStock 为 0 时供货商不展示库存,隐藏「剩 x」 -->
|
|
|
+ <text v-if="showStock" style="position:absolute;top:70upx;color:#333333;width:400upx;">剩{{ info.stock ? parseFloat(info.stock) : 0 }}{{ info.bigUnit }}</text>
|
|
|
</div>
|
|
|
</div>
|
|
|
<scroll-view scroll-y class="tui-popup-scroll">
|
|
|
@@ -80,6 +81,14 @@ export default {
|
|
|
actionType: {
|
|
|
type: String,
|
|
|
default: 'buy'
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 是否展示库存文案「剩 x」
|
|
|
+ * 对应供货商 ghsInfo.showStock,为 0 时不展示
|
|
|
+ */
|
|
|
+ showStock: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
}
|
|
|
},
|
|
|
data() {
|