Commit 5184386f by 李嘉林

选择规格组件

parent a3b3041f
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
</ul> </ul>
</div> </div>
<div class="buyQty flex"> <div class="buyQty flex">
<div class="ti">购买数量{{buyQty}}</div> <div class="ti">购买数量</div>
<van-stepper <van-stepper
:value="buyQty" :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" :max="MaxQtyNum"
:disable-input="true" :disable-input="true"
@change="changeQty" @change="changeQty"
...@@ -383,8 +383,8 @@ export default { ...@@ -383,8 +383,8 @@ export default {
this.product_goods_info.singleItemActivityId = this.product_goods_info.singleItemActivityId =
res.data.data.singleItemActivityId||''; res.data.data.singleItemActivityId||'';
// this.buyQty = this.buyQty =
// res.data.data.productMinCount == "0" ? 1 : Number(res.data.data.productMinCount); this.product_goods_info.productMinCount > 0 ? this.product_goods_info.productMinCount :1;
if ( if (
this.product_goods_info.oversoldFlag != 1 && this.product_goods_info.oversoldFlag != 1 &&
this.product_goods_info.sellMaxQty - 0 <= 0 this.product_goods_info.sellMaxQty - 0 <= 0
...@@ -724,6 +724,7 @@ export default { ...@@ -724,6 +724,7 @@ export default {
height: 50px; height: 50px;
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
font-size: 20px;
} }
.toPay { .toPay {
background: #ff4240; 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