一件代发商品隐藏加入购物车按钮 review by lea.guo
Showing
3 changed files
with
8 additions
and
1 deletions
@@ -1059,6 +1059,9 @@ function _detailDataPkg(origin, uid, vipLevel, cookies) { | @@ -1059,6 +1059,9 @@ function _detailDataPkg(origin, uid, vipLevel, cookies) { | ||
1059 | result.smallSortId = propOrigin('smallSortId', ''); | 1059 | result.smallSortId = propOrigin('smallSortId', ''); |
1060 | result.middleSortId = propOrigin('middleSortId', ''); | 1060 | result.middleSortId = propOrigin('middleSortId', ''); |
1061 | 1061 | ||
1062 | + // 一件代发 | ||
1063 | + result.isSellOneType = propOrigin('sellType') === 30 ? true : false; | ||
1064 | + | ||
1062 | result.goCartUrl = helpers.urlFormat('/cart/cart'); | 1065 | result.goCartUrl = helpers.urlFormat('/cart/cart'); |
1063 | 1066 | ||
1064 | // 普通预售 | 1067 | // 普通预售 |
@@ -138,7 +138,7 @@ | @@ -138,7 +138,7 @@ | ||
138 | <span class="buy-btn dis"> <i class="iconfont"></i> 非卖品 </span> | 138 | <span class="buy-btn dis"> <i class="iconfont"></i> 非卖品 </span> |
139 | {{/if}} | 139 | {{/if}} |
140 | {{#if addToCart}} | 140 | {{#if addToCart}} |
141 | - <span id="add-to-cart" class="buy-btn item-buy add-to-cart"> <i class="iconfont"> | 141 | + <span id="add-to-cart" class="buy-btn{{#if isSellOneType}} hidden{{/if}} item-buy add-to-cart"> <i class="iconfont"> |
142 | </i> 加入购物车 </span> | 142 | </i> 加入购物车 </span> |
143 | {{/if}} | 143 | {{/if}} |
144 | 144 |
-
Please register or login to post a comment