Authored by htoooth

fix

... ... @@ -357,7 +357,8 @@ const _getSkuDataByProductBaseInfo = (data) => {
goodsId: size.size_id,
notify: size.notify,
soldOut: _.parseInt(size.storage_number) === 0,
info: _.get(size, 'size_info', '').replace(/\//ig, '-').replace(/ /ig, '/').replace(/:/ig, ' ')
info: _.get(size, 'size_info', '').replace(/\//ig, '-').replace(/ /ig, '/').replace(/:/ig, ' '),
helper: _.get(size, 'size_rec', '')
});
// 单个sku商品的总数
... ...
... ... @@ -12,7 +12,8 @@
data-name="{{name}}"
data-notify="{{notify}}"
data-title="{{title}}"
data-info="{{info}}">
data-info="{{info}}"
data-helper="{{helper}}">
{{name}}</li>
{{/each}}
... ... @@ -21,7 +22,10 @@
{{#unless virtualGoods}}
<p class="color-size-tip hide"></p>
<p class="color-size-tip hide">
<span class="tip"></span>
<span class="helper"></span>
</p>
{{/unless}}
<p class="size-warn warn-tip hide"> <i class="iconfont">&#xe6c9;</i> 请选择尺码 </p>
... ...
... ... @@ -25,12 +25,12 @@ module.exports = {
// platformApi: 'http://192.168.102.48:8088/',
// test2
singleApi: 'http://api-test2.yohops.com:9999/',
api: 'http://api-test2.yohops.com:9999/',
service: 'http://service-test2.yohops.com:9999/',
serviceNotify: 'http://service-test2.yohops.com:9999/',
global: 'http://global-test-soa.yohops.com:9999/',
platformApi: 'http://192.168.102.48:8088/',
// singleApi: 'http://api-test2.yohops.com:9999/',
// api: 'http://api-test2.yohops.com:9999/',
// service: 'http://service-test2.yohops.com:9999/',
// serviceNotify: 'http://service-test2.yohops.com:9999/',
// global: 'http://global-test-soa.yohops.com:9999/',
// platformApi: 'http://192.168.102.48:8088/',
// prod
// singleApi: 'http://single.yoho.cn/',
... ... @@ -47,11 +47,11 @@ module.exports = {
// platformApi: 'http://172.16.6.210:8088/',
// dev
// api: 'http://dev-api.yohops.com:9999/',
// service: 'http://dev-service.yohops.com:9999/',
// serviceNotify: 'http://dev-service.yohops.com:9999/',
// singleApi: 'http://dev-api.yohops.com:9999/',
// platformApi: 'http://192.168.102.48:8088/',,
api: 'http://dev-api.yohops.com:9999/',
service: 'http://dev-service.yohops.com:9999/',
serviceNotify: 'http://dev-service.yohops.com:9999/',
singleApi: 'http://dev-api.yohops.com:9999/',
platformApi: 'http://192.168.102.48:8088/',
imSocket: 'ws://socket.yohobuy.com:10240',
imCs: 'http://im.yohobuy.com/api',
... ...
... ... @@ -652,7 +652,10 @@ bindEvent.add(function() {
$this.siblings('.focus').removeClass('focus');
$this.addClass('focus');
$sizeTip.html($this.data('info')).removeClass('hide');
$sizeTip
.find('.tip').html($this.data('info')).end()
.find('.helper').html($this.data('helper')).end()
.removeClass('hide');
$sizeWarn.addClass('hide');
... ...
... ... @@ -603,6 +603,10 @@
color: #999;
clear: both;
line-height: 25px;
.helper {
color: $theme-color;
}
}
.line {
... ...