Authored by mark

adjust fontsize

@@ -36,7 +36,7 @@ exports.escapeType = (value) => { @@ -36,7 +36,7 @@ exports.escapeType = (value) => {
36 36
37 if (strs.length === 2) { 37 if (strs.length === 2) {
38 strs[2] = strs[1]; 38 strs[2] = strs[1];
39 - strs[1] = '        '; 39 + strs[1] = '  ';
40 return strs.join(''); 40 return strs.join('');
41 } 41 }
42 42
@@ -50,3 +50,15 @@ exports.escapeType = (value) => { @@ -50,3 +50,15 @@ exports.escapeType = (value) => {
50 50
51 return strs.join(''); 51 return strs.join('');
52 }; 52 };
  53 +
  54 +exports.escapeLength = (value) => {
  55 + let strs = value.split('');
  56 +
  57 + if (strs.length === 2) {
  58 + strs[2] = strs[1];
  59 + strs[1] = ' ';
  60 + return strs.join('');
  61 + }
  62 +
  63 + return strs.join('');
  64 +}
@@ -57,10 +57,10 @@ @@ -57,10 +57,10 @@
57 <li> 57 <li>
58 <em class="justpostion"> 58 <em class="justpostion">
59 {{#if dColor}} 59 {{#if dColor}}
60 - {{{escapeType key}}}: <span id="desc-color" 60 + <span class="keySpace">{{{escapeType key}}}: </span><span id="desc-color"
61 class="valueSpace">{{value}}</span> 61 class="valueSpace">{{value}}</span>
62 {{^}} 62 {{^}}
63 - {{{escapeType key}}}: <span class="valueSpace">{{value}}</span> 63 + <span class="keySpace">{{{escapeType key}}}: </span><span class="valueSpace">{{value}}</span>
64 {{/if}} 64 {{/if}}
65 </em> 65 </em>
66 </li> 66 </li>
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 <ul class="comfort clearfix"> 70 <ul class="comfort clearfix">
71 {{# comfort}} 71 {{# comfort}}
72 <li class="pull-left"> 72 <li class="pull-left">
73 - <span class="comfort-title">{{name}}</span> 73 + <span class="comfort-title">{{{escapeLength name}}}</span>
74 <span class="min-des">{{minDes}}</span> 74 <span class="min-des">{{minDes}}</span>
75 {{# blocks}} 75 {{# blocks}}
76 <span class="comfort-block {{#if cur}}cur{{/if}}"></span> 76 <span class="comfort-block {{#if cur}}cur{{/if}}"></span>
@@ -85,7 +85,7 @@ @@ -85,7 +85,7 @@
85 {{/if}} 85 {{/if}}
86 </div> 86 </div>
87 87
88 - <div class="description-material info-block"> 88 + {{#if materialDetail}}<div class="description-material info-block">
89 <p class="block-title"> 89 <p class="block-title">
90 <span class="title-head"> <span class="title cur">材质洗涤</span> </span> 90 <span class="title-head"> <span class="title cur">材质洗涤</span> </span>
91 </p> 91 </p>
@@ -117,8 +117,9 @@ @@ -117,8 +117,9 @@
117 {{/ material}} 117 {{/ material}}
118 </div> 118 </div>
119 </div> 119 </div>
  120 + {{/if}}
120 121
121 - <div class="description-material-tab info-block getnav" id="sizeMessage" data-id="1"> 122 + {{#if size}}<div class="description-material-tab info-block getnav" id="sizeMessage" data-id="1">
122 <p class="block-title"> 123 <p class="block-title">
123 <span class="title-head"> <span class="title cur">尺码信息</span> </span> 124 <span class="title-head"> <span class="title cur">尺码信息</span> </span>
124 </p> 125 </p>
@@ -164,7 +165,7 @@ @@ -164,7 +165,7 @@
164 {{/if}} 165 {{/if}}
165 </div> 166 </div>
166 </div> 167 </div>
167 - 168 + {{/if}}
168 {{#if reference}} 169 {{#if reference}}
169 <div class="description-material-tab info-block"> 170 <div class="description-material-tab info-block">
170 <p class="block-title"> 171 <p class="block-title">
@@ -1682,24 +1682,14 @@ $(function() { @@ -1682,24 +1682,14 @@ $(function() {
1682 1682
1683 $(function() { 1683 $(function() {
1684 var font = $('.description-content .basic li'); 1684 var font = $('.description-content .basic li');
1685 - $('.comfort .pull-left:nth-child(4)').css('margin-left', '8px');  
1686 - for (var i = 1; i <= 4; i++) {  
1687 - if (i !== 2) {  
1688 - $('.description-content ul li:nth-child(' + (i + 4) + ') .valueSpace').css({  
1689 - 'display': 'inline-block',  
1690 - 'text-align': 'right',  
1691 - 'width': $('.description-content ul li:nth-child(' + i + ') .valueSpace').width()  
1692 - });  
1693 - }  
1694 - }  
1695 1685
1696 font.each(function(i, ele) { 1686 font.each(function(i, ele) {
1697 if ((i + 1) % 4 === 0) { 1687 if ((i + 1) % 4 === 0) {
1698 - $(this).find('.justpostion').css({display: 'inline-block', float: 'right'}); 1688 + $(this).find('.justpostion').css({display: 'inline-block', 'margin-left': '66px'});
1699 } else if ((i + 1) % 4 === 1) { 1689 } else if ((i + 1) % 4 === 1) {
1700 return; 1690 return;
1701 } else { 1691 } else {
1702 - $(this).css('text-align', 'center'); 1692 + $(this).find('.justpostion').css('margin-left', '56px');
1703 } 1693 }
1704 }); 1694 });
1705 }); 1695 });