Commit 7c3576d6 authored by GuanHua's avatar GuanHua

fix:询价商品没库存时提示

parent 44fb9147
...@@ -527,7 +527,7 @@ const CommodityDetail = (props) => { ...@@ -527,7 +527,7 @@ const CommodityDetail = (props) => {
<Button className={cx(styles.product_info_btn_item, styles.buy)} >暂无库存</Button> <Button className={cx(styles.product_info_btn_item, styles.buy)} >暂无库存</Button>
) )
case COMMODITY_TYPE.inquiry: case COMMODITY_TYPE.inquiry:
return <div className={cx(styles.product_info_btn_item, styles.buy)} onClick={() => handleInquiry()}>立即询价</div> return stockCount > 0 ? <div className={cx(styles.product_info_btn_item, styles.buy)} onClick={() => handleInquiry()}>立即询价</div> : <Button className={cx(styles.product_info_btn_item, styles.buy)} >暂无库存</Button>
case COMMODITY_TYPE.integral: case COMMODITY_TYPE.integral:
return stockCount > 0 ? <div className={cx(styles.product_info_btn_item, styles.buy)} onClick={() => handleToBuy(COMMODITY_TYPE.integral)}>立即兑换</div> : <Button className={cx(styles.product_info_btn_item, styles.buy)} >暂无库存</Button> return stockCount > 0 ? <div className={cx(styles.product_info_btn_item, styles.buy)} onClick={() => handleToBuy(COMMODITY_TYPE.integral)}>立即兑换</div> : <Button className={cx(styles.product_info_btn_item, styles.buy)} >暂无库存</Button>
} }
......
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