Commit 5184386f by 李嘉林

选择规格组件

parent a3b3041f
......@@ -75,10 +75,10 @@
</ul>
</div>
<div class="buyQty flex">
<div class="ti">购买数量{{buyQty}}</div>
<div class="ti">购买数量</div>
<van-stepper
:value="buyQty"
:min="product_goods_info.productMinCount=='0'?1:Number(product_goods_info.productMinCount)"
:min="product_goods_info.productMinCount>0?product_goods_info.productMinCount:1"
:max="MaxQtyNum"
:disable-input="true"
@change="changeQty"
......@@ -383,8 +383,8 @@ export default {
this.product_goods_info.singleItemActivityId =
res.data.data.singleItemActivityId||'';
// this.buyQty =
// res.data.data.productMinCount == "0" ? 1 : Number(res.data.data.productMinCount);
this.buyQty =
this.product_goods_info.productMinCount > 0 ? this.product_goods_info.productMinCount :1;
if (
this.product_goods_info.oversoldFlag != 1 &&
this.product_goods_info.sellMaxQty - 0 <= 0
......@@ -724,6 +724,7 @@ export default {
height: 50px;
text-align: center;
line-height: 50px;
font-size: 20px;
}
.toPay {
background: #ff4240;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment