Showing
3 changed files
with
15 additions
and
3 deletions
@@ -227,7 +227,7 @@ const tool = { | @@ -227,7 +227,7 @@ const tool = { | ||
227 | let subPrice = _.get(bundleData, 'bundleInfo.subPrice', 0); | 227 | let subPrice = _.get(bundleData, 'bundleInfo.subPrice', 0); |
228 | 228 | ||
229 | return { | 229 | return { |
230 | - title: '优惠套装', | 230 | + title: _.get(bundleData, 'bundleInfo.bundleName') || '优惠套装', |
231 | href: helpers.urlFormat('/product/bundle/detail', {skn: skn, gid: gid, index: index}), | 231 | href: helpers.urlFormat('/product/bundle/detail', {skn: skn, gid: gid, index: index}), |
232 | description: subPrice ? '立省¥' + subPrice : 0, | 232 | description: subPrice ? '立省¥' + subPrice : 0, |
233 | productList: productProcess.processProductList(bundleData && bundleData.productList) | 233 | productList: productProcess.processProductList(bundleData && bundleData.productList) |
@@ -4,8 +4,10 @@ | @@ -4,8 +4,10 @@ | ||
4 | <div class="swiper-wrapper"> | 4 | <div class="swiper-wrapper"> |
5 | {{# bundleDatas}} | 5 | {{# bundleDatas}} |
6 | <div class="swiper-slide{{#if @first}} selected{{/if}}" data-index="{{@index}}"> | 6 | <div class="swiper-slide{{#if @first}} selected{{/if}}" data-index="{{@index}}"> |
7 | - <span>{{title}}</span> | ||
8 | <div class="line"></div> | 7 | <div class="line"></div> |
8 | + <div class="title"> | ||
9 | + <span>{{title}}</span> | ||
10 | + </div> | ||
9 | </div> | 11 | </div> |
10 | {{/ bundleDatas}} | 12 | {{/ bundleDatas}} |
11 | </div> | 13 | </div> |
@@ -25,6 +25,7 @@ | @@ -25,6 +25,7 @@ | ||
25 | width: 168px; | 25 | width: 168px; |
26 | text-align: center; | 26 | text-align: center; |
27 | position: relative; | 27 | position: relative; |
28 | + display: flex; | ||
28 | 29 | ||
29 | &:first-child { | 30 | &:first-child { |
30 | .line { | 31 | .line { |
@@ -47,13 +48,22 @@ | @@ -47,13 +48,22 @@ | ||
47 | border-left: solid 1PX #ddd; | 48 | border-left: solid 1PX #ddd; |
48 | } | 49 | } |
49 | 50 | ||
51 | + .title { | ||
52 | + width: 100%; | ||
53 | + flex: 1; | ||
54 | + | ||
50 | span { | 55 | span { |
51 | display: inline-block; | 56 | display: inline-block; |
52 | min-width: 103px; | 57 | min-width: 103px; |
58 | + max-width: 100%; | ||
59 | + color: #b2b2b2; | ||
53 | line-height: 76px; | 60 | line-height: 76px; |
54 | height: 76px; | 61 | height: 76px; |
55 | - color: #b2b2b2; | ||
56 | font-size: 28px; | 62 | font-size: 28px; |
63 | + text-overflow: ellipsis; | ||
64 | + overflow: hidden; | ||
65 | + white-space: nowrap; | ||
66 | + } | ||
57 | } | 67 | } |
58 | } | 68 | } |
59 | } | 69 | } |
-
Please register or login to post a comment