Authored by 王水玲

食品类 尺码改规格

... ... @@ -131,6 +131,7 @@ const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analys
imgCover: it.goods_images ? helpers.image(it.goods_images, 64, 88) : '',
productColor: it.factory_goods_name,
productSize: it.size_name,
skuTitle: it.sku_title,
productPrice: transPrice(it.sales_price),
productNum: Number(it.buy_number),
storageNum: Number(it.storage_number),
... ...
... ... @@ -346,6 +346,7 @@ module.exports = class extends global.yoho.BaseModel {
result.isCollect = propOrigin('is_collect');
result.colors = skuData.skuGoods;
result.skuTitle = propOrigin('skuTitle');
return result;
}
... ...
... ... @@ -160,7 +160,7 @@
</td>
<td class="border-top color-size">
颜色:<span class="color">{{factory_goods_name}}</span>
尺码<span class="size">{{size_name}}</span>
{{sku_title}}<span class="size">{{size_name}}</span>
</td>
<td class="border-top price">
<p class="red">¥ {{round productPrice 2}}</p>
... ...
... ... @@ -423,6 +423,7 @@ module.exports = class extends global.yoho.BaseModel {
newGood.name = good.product_name;
newGood.color = good.factory_color_name;
newGood.size = good.size_name;
newGood.skuTitle = good.sku_title;
newGood.price = that.transPrice(good.sales_price);// 默认显示销售价
newGood.isVipPrice = good.discount_tag === 'V';
newGood.isStuPrice = good.discount_tag === 'S';
... ... @@ -859,6 +860,7 @@ module.exports = class extends global.yoho.BaseModel {
name: good.product_name,
color: good.factory_color_name,
size: good.size_name,
skuTitle: good.sku_title,
price: that.transPrice(good.sales_price), // 默认显示销售价
isVipPrice: good.discount_tag === 'V',
isStuPrice: good.discount_tag === 'S',
... ...
... ... @@ -56,6 +56,7 @@ module.exports = class extends global.yoho.BaseModel {
name: value.product_name || '',
color: value.color_name,
size: value.size_name,
skuTitle: value.sku_title || '尺码',
yoho_coin_cut_num: value.yoho_coin_cut_num,
real_pay_price: transPrice(value.real_pay_price),
price: transPrice(value.sales_price),
... ... @@ -81,7 +82,8 @@ module.exports = class extends global.yoho.BaseModel {
name: good.product_name,
goods_type: good.goods_type,
color: good.color_name,
size: good.size_name
size: good.size_name,
skuTitle: good.sku_title || '尺码'
});
});
... ... @@ -209,6 +211,7 @@ module.exports = class extends global.yoho.BaseModel {
name: value.product_name,
color: value.factory_color_name,
size: value.size_name,
skuTitle: value.sku_title || '尺码',
price: transPrice(value.last_price),
skn: value.product_skn,
skc: value.product_skc,
... ... @@ -568,6 +571,7 @@ module.exports = class extends global.yoho.BaseModel {
name: value.product_name,
color: value.color_name,
size: value.size_name,
skuTitle: value.sku_title || '尺码',
price: value.last_price,
skn: value.product_skn,
skc: value.product_skc,
... ...
... ... @@ -250,7 +250,7 @@
{{/if}}
{{#if size}}
尺码{{size}}
{{skuTitle}}{{size}}
{{/if}}
{{#if date}}
... ...
... ... @@ -57,7 +57,7 @@
</td>
<td class="return-goods-info">
<a href="{{href}}">{{name}}</a>
<span style="display: block;">颜色:{{color}} 尺码{{size}}</span>
<span style="display: block;">颜色:{{color}} {{skuTitle}}{{size}}</span>
{{#if specialNoticeBo}}
<div>
<div class="special-tip">
... ... @@ -115,9 +115,9 @@
{{/ colorSize}}
</p>
<p>
尺码要换成:
{{skuTitle}}要换成:
<select class="exchange-size" data-sku="{{sku}}" data-skc="{{skc}}" {{#if isLimitSkn}}disabled{{/if}}>
<option value="0">请选择尺码</option>
<option value="0">请选择{{skuTitle}}</option>
</select>
</p>
</td>
... ... @@ -220,7 +220,7 @@
</td>
<td class="return-goods-info">
<a href="{{href}}">{{name}}</a>
<span>颜色:{{color}} 尺码{{size}}</span>
<span>颜色:{{color}} {{skuTitle}}{{size}}</span>
{{#if specialNoticeBo}}
<div>
<div class="special-tip">
... ...
... ... @@ -119,7 +119,7 @@
<p class="name-color-size">
<a class="name" href="{{href}}" target="_blank">{{name}}</a>
颜色:{{color}} 尺码{{size}}
颜色:{{color}} {{skuTitle}}{{size}}
{{> home/orders/order-goods-tags}}
</p>
</td>
... ...
... ... @@ -49,7 +49,7 @@
{{/if}}
{{#if size}}
尺码{{size}}
{{skuTitle}}{{size}}
{{/if}}
</span>
</div>
... ...
... ... @@ -50,7 +50,7 @@
{{/if}}
{{#if size}}
尺码{{size}}
{{skuTitle}}{{size}}
{{/if}}
{{#if arrivalDate}}
... ...
... ... @@ -47,7 +47,7 @@
<em class="{{#unless isOffShelve}}pay-pro-detail{{/unless}}">
<span>
<b title="{{productColor}}">颜色:{{productColor}}</b>
尺码{{productSize}}<i class="iconfont">&#xe6c7;</i>
{{skuTitle}}{{productSize}}<i class="iconfont">&#xe6c7;</i>
</span>
</em>
{{#and isAdvance preSellDate}}
... ...
... ... @@ -17,7 +17,7 @@
</div>
</div>
<div class="dl choose-size">
<div class="dd">尺码:</div>
<div class="dd">{{skuTitle}}:</div>
{{#each colors}}
<div class="size-row {{#unless active}} hide{{/unless}}">
<div class="choose-size-detail">
... ...
... ... @@ -359,7 +359,8 @@ function parseProductInfo(productInfo, defaultInfo) {
colors: filterSet,
defaultColor: defaultColor,
defaultSize: defaultSize,
defaultImg: defaultImg
defaultImg: defaultImg,
skuTitle: productInfo.skuTitle
};
}
... ...