Authored by 周少峰

Merge branch 'feature/colorLength' into release/5.3

@@ -54,7 +54,7 @@ const _getSkuDataByProductBaseInfo = (data) => { @@ -54,7 +54,7 @@ const _getSkuDataByProductBaseInfo = (data) => {
54 goodsGroup.productSkc = cur.product_skc; 54 goodsGroup.productSkc = cur.product_skc;
55 goodsGroup.src = helpers.image(cur.color_image, 40, 40); 55 goodsGroup.src = helpers.image(cur.color_image, 40, 40);
56 goodsGroup.title = `${_.trim(data.product_name)} ${cur.color_name}`; 56 goodsGroup.title = `${_.trim(data.product_name)} ${cur.color_name}`;
57 - goodsGroup.name = cur.color_name; 57 + goodsGroup.name = cur.factory_goods_name;
58 goodsGroup.focus = false; 58 goodsGroup.focus = false;
59 goodsGroup.total = 0; 59 goodsGroup.total = 0;
60 goodsGroup.thumbs = []; 60 goodsGroup.thumbs = [];
@@ -166,7 +166,7 @@ const indexComment = (req, res, next) => { @@ -166,7 +166,7 @@ const indexComment = (req, res, next) => {
166 DEFAULT_AVATAR_ICO, 166 DEFAULT_AVATAR_ICO,
167 userName: _.get(item, 'userInfo.nickName', ''), 167 userName: _.get(item, 'userInfo.nickName', ''),
168 date: moment(item.createTime, 'X').format('YYYY-MM-DD HH:mm:ss'), 168 date: moment(item.createTime, 'X').format('YYYY-MM-DD HH:mm:ss'),
169 - color: _.get(item, 'goods.color_name', ''), 169 + color: _.get(item, 'goods.factory_goods_name', ''),
170 size: _.get(item, 'goods.size_name', ''), 170 size: _.get(item, 'goods.size_name', ''),
171 comment: item.content, 171 comment: item.content,
172 total: pageResponse.totalCount, 172 total: pageResponse.totalCount,
@@ -295,12 +295,15 @@ const _getSkuDataByProductBaseInfo = (data) => { @@ -295,12 +295,15 @@ const _getSkuDataByProductBaseInfo = (data) => {
295 // 商品列表 295 // 商品列表
296 goodsGroup.productSkc = cur.product_skc; 296 goodsGroup.productSkc = cur.product_skc;
297 goodsGroup.src = helpers.image(cur.color_image, 40, 40); 297 goodsGroup.src = helpers.image(cur.color_image, 40, 40);
298 - goodsGroup.title = `${_.trim(data.product_name)} ${cur.color_name}`;  
299 - goodsGroup.name = cur.color_name; 298 + goodsGroup.title = `${_.trim(data.product_name)} ${cur.factory_goods_name}`;
  299 + goodsGroup.name = cur.factory_goods_name;
300 goodsGroup.focus = false; 300 goodsGroup.focus = false;
301 goodsGroup.total = 0; 301 goodsGroup.total = 0;
302 goodsGroup.thumbs = []; 302 goodsGroup.thumbs = [];
303 goodsGroup.size = []; 303 goodsGroup.size = [];
  304 + if(goodsGroup.title.length > 20){
  305 + goodsGroup.title = goodsGroup.title.substr(0,20) + '...';
  306 + }
304 } 307 }
305 308
306 _.get(cur, 'images_list', []).forEach((good) => { 309 _.get(cur, 'images_list', []).forEach((good) => {
@@ -562,7 +565,7 @@ const _getBasicDescription = (productDescBo) => { @@ -562,7 +565,7 @@ const _getBasicDescription = (productDescBo) => {
562 }, 565 },
563 { 566 {
564 key: '颜色', 567 key: '颜色',
565 - value: productDescBo.colorName, 568 + value: productDescBo.factoryGoodsName,
566 dColor: true 569 dColor: true
567 }, 570 },
568 { 571 {
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 {{# basic}} 45 {{# basic}}
46 <li> 46 <li>
47 {{#if dColor}} 47 {{#if dColor}}
48 - {{key}}: <span id="desc-color">{{value}}</span> 48 + {{key}}: <span id="desc-color" title="{{value}}" >{{value}}</span>
49 {{^}} 49 {{^}}
50 {{key}}: {{value}} 50 {{key}}: {{value}}
51 {{/if}} 51 {{/if}}
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
177 <span class="title pull-left">选颜色:</span> 177 <span class="title pull-left">选颜色:</span>
178 <ul class="colors pull-left clearfix"> 178 <ul class="colors pull-left clearfix">
179 {{#each colors}} 179 {{#each colors}}
180 - <li class="{{#if focus}}focus{{/if}} {{#if disable}}disable{{/if}} pull-left" 180 + <li class="{{#if focus}}focus{{/if}} {{#if disable}}disable{{/if}} pull-left color-limit"
181 title="{{title}}" data-color="{{name}}" data-total="{{total}}"> 181 title="{{title}}" data-color="{{name}}" data-total="{{total}}">
182 <img src="{{src}}"> 182 <img src="{{src}}">
183 </li> 183 </li>
@@ -229,7 +229,7 @@ @@ -229,7 +229,7 @@
229 <a href="\{{product_url}}">\{{product_name}}</a> 229 <a href="\{{product_url}}">\{{product_name}}</a>
230 </p> 230 </p>
231 <p> 231 <p>
232 - 颜色:\{{color_name}} 232 + 颜色:<span title="\{{factory_goods_name}}">\{{factory_goods_name}}</span>
233 尺码:\{{size_name}} 233 尺码:\{{size_name}}
234 </p> 234 </p>
235 </div> 235 </div>
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <span class="name">{{userName}}</span> 5 <span class="name">{{userName}}</span>
6 </div> 6 </div>
7 <dl class="pull-right"> 7 <dl class="pull-right">
8 - {{#if color}}<dd>颜色:{{color}}</dd>{{/if}} 8 + {{#if color}}<dd>颜色:<span title="{{color}}">{{color}}</span></dd>{{/if}}
9 {{#if size}}<dd>尺码:{{size}}</dd>{{/if}} 9 {{#if size}}<dd>尺码:{{size}}</dd>{{/if}}
10 </dl> 10 </dl>
11 <div class="comment-detail"> 11 <div class="comment-detail">
@@ -532,6 +532,15 @@ @@ -532,6 +532,15 @@
532 .goods-info { 532 .goods-info {
533 width: 170px; 533 width: 170px;
534 color: #b0b0b0; 534 color: #b0b0b0;
  535 +
  536 + span {
  537 + display: inline-block;
  538 + width: 50px;
  539 + overflow: hidden;
  540 + text-overflow: ellipsis;
  541 + white-space: nowrap;
  542 + vertical-align: bottom;
  543 + }
535 } 544 }
536 545
537 .goods-price { 546 .goods-price {
@@ -640,6 +640,15 @@ @@ -640,6 +640,15 @@
640 width: 25%; 640 width: 25%;
641 line-height: 20px; 641 line-height: 20px;
642 } 642 }
  643 +
  644 + span {
  645 + display: inline-block;
  646 + width: 75%;
  647 + vertical-align: bottom;
  648 + overflow: hidden;
  649 + text-overflow: ellipsis;
  650 + white-space: nowrap;
  651 + }
643 } 652 }
644 653
645 .comfort { 654 .comfort {
@@ -945,6 +954,24 @@ @@ -945,6 +954,24 @@
945 .question { 954 .question {
946 color: #222; 955 color: #222;
947 } 956 }
  957 +
  958 + &+dl{
  959 + margin-right: 0;
  960 +
  961 + dd {
  962 + width: 100px;
  963 + margin-right: 0;
  964 +
  965 + span{
  966 + display: inline-block;
  967 + width: 62px;
  968 + overflow: hidden;
  969 + text-overflow: ellipsis;
  970 + white-space: nowrap;
  971 + vertical-align: bottom;
  972 + }
  973 + }
  974 + }
948 } 975 }
949 976
950 .user-avatar { 977 .user-avatar {
@@ -1005,7 +1032,6 @@ @@ -1005,7 +1032,6 @@
1005 dl { 1032 dl {
1006 line-height:1.5; 1033 line-height:1.5;
1007 color: #999; 1034 color: #999;
1008 - /*margin-left:20px;*/  
1009 margin-right:20px; 1035 margin-right:20px;
1010 1036
1011 dd { 1037 dd {