Authored by 邱骏

商品详情页如果是预售商品则把立即购买按钮置灰不能点击

... ... @@ -479,6 +479,8 @@ module.exports = class extends global.yoho.BaseModel {
dest.productSkn = origin.product_skn;
dest.goodsName = origin.product_name;
dest.startSaleTime = origin.startSaleTime;
dest.startSaleTimeStr = origin.startSaleTimeStr;
// 线下店商品展示限制
dest.storeGood = origin.store_show_status === 3 || origin.store_show_status === 4;
... ...
... ... @@ -61,8 +61,13 @@
</div>
</div>
<div class="btn-wrap">
{{#if @root.buttonText.double}}
<button id="chose-btn-buynow" class="btn btn-sure-buynow">立即购买</button>
{{#if @root.startSaleTimeStr}}
<button disabled="disabled" class="btn btn-cannot-buynow">立即购买</button>
{{else}}
<button id="chose-btn-buynow" class="btn btn-sure-buynow">立即购买</button>
{{/if}}
<button id="chose-btn-sure" class="btn btn-sure-addtocart">加入购物车</button>
{{^}}
<button id="chose-btn-sure" class="btn btn-sure">{{@root.buttonText.text}}</button>
... ...
... ... @@ -392,6 +392,16 @@
float: left;
}
.btn-cannot-buynow {
width: 50%;
height: 80px;
border: none;
background: #b0b0b0;
color: #fff;
font-size: 32px;
float: left;
}
.btn-sure-addtocart {
width: 50%;
height: 80px;
... ...