Authored by 毕凯

size-rec

... ... @@ -14,8 +14,8 @@ const domains = {
// api: 'http://192.168.103.59:8080/gateway',
// service: 'http://192.168.103.59:8080/gateway',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
api: 'http://api-test2.yohops.com:9999/',
service: 'http://service-test2.yohops.com:9999/',
singleApi: 'http://api-test2.yohops.com:9999/',
global: 'http://global-test-soa.yohops.com:9999',
liveApi: 'http://testapi.live.yohops.com:9999/',
... ...
... ... @@ -19,12 +19,13 @@
<p class="not-choose">{{@root.noChoseText}}</p>
<p class="choosed-info hide"></p>
<p class="size-info hide"></p>
<p class="size-rec hide"></p>
</div>
</div>
<div class="chose-items">
{{#each props}}
<div class="block-list{{#if ticketHide}} hide{{/if}}">
<span class="name">{{name}}</span>
<span class="name">{{name}}</span>
<ul class="size-row clearfix">
{{#each values}}
<li class="block{{#if ../ticketHide}} chosed hide{{/if}}" data-prop-id="{{../type}}" data-value-id="{{id}}">{{#if ../ticketHide}}{{else}}{{name}}{{/if}}</li>
... ... @@ -45,14 +46,14 @@
</a>
</div>
{{#if @root.discountBuy}}
<input id="mnum" type="hidden" value="{{@root.discountBuy.num}}">
<input id="mnum" type="hidden" value="{{@root.discountBuy.num}}">
{{#if @root.discountBuy.discount}}
<span class="left-num-discount">{{@root.discountBuy.num}}件起购享{{@root.discountBuy.discount}}</span>
<span class="left-num-discount">{{@root.discountBuy.num}}件起购享{{@root.discountBuy.discount}}</span>
{{^}}
<span class="left-num-discount">{{@root.discountBuy.num}}件起购</span>
{{/if}}
<span class="left-num-discount">{{@root.discountBuy.num}}件起购</span>
{{/if}}
{{^}}
<span class="left-num"></span>
<span class="left-num"></span>
{{/if}}
<input id="left-num" type="hidden" value="0">
<input id="limitNum" type="hidden" value="{{limit}}">
... ...
... ... @@ -461,6 +461,7 @@ class ChosePanel {
}
$chosePanel.find('.left-num').text(numText);
$chosePanel.find('.size-info').text(selectSku.sizeInfo).removeClass('hide');
$chosePanel.find('.size-rec').text(selectSku.sizeRec).removeClass('hide');
} else {
$chosePanel.find('.left-num').text('');
$chosePanel.find('.size-info').text('').addClass('hide');
... ...
... ... @@ -454,6 +454,7 @@ exports.processSkusInfo = (origin) => {
dest.skus.push({
skuId: size.product_sku,
sizeInfo: size.size_info,
sizeRec: size.size_rec,
storage: size.storage_number,
thumb: helpers.image(color.color_image, 300, 395),
prop: {
... ...