Authored by OF1706

商品详情 hover

... ... @@ -295,12 +295,15 @@ const _getSkuDataByProductBaseInfo = (data) => {
// 商品列表
goodsGroup.productSkc = cur.product_skc;
goodsGroup.src = helpers.image(cur.color_image, 40, 40);
goodsGroup.title = `${_.trim(data.product_name)} ${cur.color_name}`;
goodsGroup.name = cur.color_name;
goodsGroup.title = `${_.trim(data.product_name)} ${cur.factory_goods_name}`;
goodsGroup.name = cur.factory_goods_name;
goodsGroup.focus = false;
goodsGroup.total = 0;
goodsGroup.thumbs = [];
goodsGroup.size = [];
if(goodsGroup.title.length > 20){
goodsGroup.title = goodsGroup.title.substr(0,20) + '...';
}
}
_.get(cur, 'images_list', []).forEach((good) => {
... ...
... ... @@ -177,7 +177,7 @@
<span class="title pull-left">选颜色:</span>
<ul class="colors pull-left clearfix">
{{#each colors}}
<li class="{{#if focus}}focus{{/if}} {{#if disable}}disable{{/if}} pull-left"
<li class="{{#if focus}}focus{{/if}} {{#if disable}}disable{{/if}} pull-left color-limit"
title="{{title}}" data-color="{{name}}" data-total="{{total}}">
<img src="{{src}}">
</li>
... ...