Authored by mark

adjust fontsize

... ... @@ -36,7 +36,7 @@ exports.escapeType = (value) => {
if (strs.length === 2) {
strs[2] = strs[1];
strs[1] = '        ';
strs[1] = '  ';
return strs.join('');
}
... ... @@ -50,3 +50,15 @@ exports.escapeType = (value) => {
return strs.join('');
};
exports.escapeLength = (value) => {
let strs = value.split('');
if (strs.length === 2) {
strs[2] = strs[1];
strs[1] = ' ';
return strs.join('');
}
return strs.join('');
}
... ...
... ... @@ -57,10 +57,10 @@
<li>
<em class="justpostion">
{{#if dColor}}
{{{escapeType key}}}: <span id="desc-color"
<span class="keySpace">{{{escapeType key}}}: </span><span id="desc-color"
class="valueSpace">{{value}}</span>
{{^}}
{{{escapeType key}}}: <span class="valueSpace">{{value}}</span>
<span class="keySpace">{{{escapeType key}}}: </span><span class="valueSpace">{{value}}</span>
{{/if}}
</em>
</li>
... ... @@ -70,7 +70,7 @@
<ul class="comfort clearfix">
{{# comfort}}
<li class="pull-left">
<span class="comfort-title">{{name}}</span>
<span class="comfort-title">{{{escapeLength name}}}</span>
<span class="min-des">{{minDes}}</span>
{{# blocks}}
<span class="comfort-block {{#if cur}}cur{{/if}}"></span>
... ... @@ -85,7 +85,7 @@
{{/if}}
</div>
<div class="description-material info-block">
{{#if materialDetail}}<div class="description-material info-block">
<p class="block-title">
<span class="title-head"> <span class="title cur">材质洗涤</span> </span>
</p>
... ... @@ -117,8 +117,9 @@
{{/ material}}
</div>
</div>
{{/if}}
<div class="description-material-tab info-block getnav" id="sizeMessage" data-id="1">
{{#if size}}<div class="description-material-tab info-block getnav" id="sizeMessage" data-id="1">
<p class="block-title">
<span class="title-head"> <span class="title cur">尺码信息</span> </span>
</p>
... ... @@ -164,7 +165,7 @@
{{/if}}
</div>
</div>
{{/if}}
{{#if reference}}
<div class="description-material-tab info-block">
<p class="block-title">
... ...
... ... @@ -1682,24 +1682,14 @@ $(function() {
$(function() {
var font = $('.description-content .basic li');
$('.comfort .pull-left:nth-child(4)').css('margin-left', '8px');
for (var i = 1; i <= 4; i++) {
if (i !== 2) {
$('.description-content ul li:nth-child(' + (i + 4) + ') .valueSpace').css({
'display': 'inline-block',
'text-align': 'right',
'width': $('.description-content ul li:nth-child(' + i + ') .valueSpace').width()
});
}
}
font.each(function(i, ele) {
if ((i + 1) % 4 === 0) {
$(this).find('.justpostion').css({display: 'inline-block', float: 'right'});
$(this).find('.justpostion').css({display: 'inline-block', 'margin-left': '66px'});
} else if ((i + 1) % 4 === 1) {
return;
} else {
$(this).css('text-align', 'center');
$(this).find('.justpostion').css('margin-left', '56px');
}
});
});
... ...