Authored by OF1706

商品详情 hover

@@ -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) => {
@@ -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>