Merge branch 'feature/oneset' into release/5.3.1
Showing
4 changed files
with
11 additions
and
2 deletions
@@ -225,7 +225,7 @@ const tool = { | @@ -225,7 +225,7 @@ const tool = { | ||
225 | return { | 225 | return { |
226 | title: '优惠套装', | 226 | title: '优惠套装', |
227 | href: helpers.urlFormat('/product/bundle/detail', {skn: skn}), | 227 | href: helpers.urlFormat('/product/bundle/detail', {skn: skn}), |
228 | - description: '立省¥' + priceShow + '元', | 228 | + description: '立省¥' + priceShow, |
229 | productList: productProcess.processProductList(bundleData && bundleData.productList) | 229 | productList: productProcess.processProductList(bundleData && bundleData.productList) |
230 | }; | 230 | }; |
231 | }, | 231 | }, |
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | </a> | 56 | </a> |
57 | </div> | 57 | </div> |
58 | {{#if @root.discountBuy}} | 58 | {{#if @root.discountBuy}} |
59 | - <span class="left-num-discount" style="color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;">{{@root.discountBuy.num}}件起购,享{{@root.discountBuy.discount}}折</span> | 59 | + <span class="left-num-discount" style="color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;">{{@root.discountBuy.num}}件起购享{{@root.discountBuy.discount}}折</span> |
60 | <input id="mnum" type="hidden" value="{{@root.discountBuy.num}}"> | 60 | <input id="mnum" type="hidden" value="{{@root.discountBuy.num}}"> |
61 | {{^}} | 61 | {{^}} |
62 | <span class="left-num"></span> | 62 | <span class="left-num"></span> |
@@ -40,6 +40,13 @@ var $chosePanel = $('.chose-panel'), | @@ -40,6 +40,13 @@ var $chosePanel = $('.chose-panel'), | ||
40 | 40 | ||
41 | var productSkn; | 41 | var productSkn; |
42 | 42 | ||
43 | +/* 为套装调整样式 */ | ||
44 | +function disableShowNum() { | ||
45 | + $('.num').css('display', 'none'); | ||
46 | + $chosePanel.find('.infos').css('height', '9rem'); | ||
47 | + $chosePanel.find('.main').css('height', '12.8rem'); | ||
48 | +} | ||
49 | + | ||
43 | // 禁用数字编辑 | 50 | // 禁用数字编辑 |
44 | function disableNumEdit() { | 51 | function disableNumEdit() { |
45 | var $numBtn = $chosePanel.find('.num .btn>.iconfont'); | 52 | var $numBtn = $chosePanel.find('.num .btn>.iconfont'); |
@@ -67,6 +74,7 @@ function init(sknId) { | @@ -67,6 +74,7 @@ function init(sknId) { | ||
67 | curColorIndex = 0; | 74 | curColorIndex = 0; |
68 | curSizeIndex = 0; | 75 | curSizeIndex = 0; |
69 | productSkn = sknId; | 76 | productSkn = sknId; |
77 | + disableShowNum(); | ||
70 | } | 78 | } |
71 | 79 | ||
72 | // 删除面板 | 80 | // 删除面板 |
-
Please register or login to post a comment