Authored by 张文文

一件代发商品隐藏加入购物车按钮 review by lea.guo

@@ -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">&#xe61c;</i> 非卖品 </span> 138 <span class="buy-btn dis"> <i class="iconfont">&#xe61c;</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 &#xe600;</i> 加入购物车 </span> 142 &#xe600;</i> 加入购物车 </span>
143 {{/if}} 143 {{/if}}
144 144
@@ -760,6 +760,10 @@ @@ -760,6 +760,10 @@
760 &.dis { 760 &.dis {
761 background: #ccc; 761 background: #ccc;
762 } 762 }
  763 +
  764 + &.hidden {
  765 + display: none;
  766 + }
763 } 767 }
764 768
765 .buy-now { 769 .buy-now {