Authored by 阿达

修改品牌搜索字体大小

No preview for this file type
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3 <svg xmlns="http://www.w3.org/2000/svg"> 3 <svg xmlns="http://www.w3.org/2000/svg">
4 <metadata> 4 <metadata>
5 -Created by FontForge 20120731 at Fri May 13 13:48:36 2016 5 +Created by FontForge 20120731 at Mon May 16 09:39:59 2016
6 By admin 6 By admin
7 </metadata> 7 </metadata>
8 <defs> 8 <defs>
@@ -19,7 +19,7 @@ Created by FontForge 20120731 at Fri May 13 13:48:36 2016 @@ -19,7 +19,7 @@ Created by FontForge 20120731 at Fri May 13 13:48:36 2016
19 bbox="-0.75 -128 3943 896.75" 19 bbox="-0.75 -128 3943 896.75"
20 underline-thickness="50" 20 underline-thickness="50"
21 underline-position="-100" 21 underline-position="-100"
22 - unicode-range="U+0078-E64B" 22 + unicode-range="U+0078-E64C"
23 /> 23 />
24 <missing-glyph horiz-adv-x="374" 24 <missing-glyph horiz-adv-x="374"
25 d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> 25 d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" />
@@ -279,5 +279,9 @@ d="M379 -128q-57 0 -122 51.5t-97 132.5q-26 71 -27 149.5t24 151.5q11 33 32.5 70.5 @@ -279,5 +279,9 @@ d="M379 -128q-57 0 -122 51.5t-97 132.5q-26 71 -27 149.5t24 151.5q11 33 32.5 70.5
279 t42.5 -126.5q4 -5 9 -17t8 -17q51 -89 55 -157q4 -63 -14.5 -126.5t-65.5 -120t-115 -80.5q-30 -11 -61 -11q-18 0 -30.5 5t-18 12.5t-7.5 13t-2 10.5q0 7 2 13t4 10t7.5 9.5t7.5 7t9 6.5t8 6l3 3q36 26 54 75.5t7 95.5q-4 28 -27 75q-2 6 -7.5 20t-8.5 22t-6.5 20t-4.5 23 279 t42.5 -126.5q4 -5 9 -17t8 -17q51 -89 55 -157q4 -63 -14.5 -126.5t-65.5 -120t-115 -80.5q-30 -11 -61 -11q-18 0 -30.5 5t-18 12.5t-7.5 13t-2 10.5q0 7 2 13t4 10t7.5 9.5t7.5 7t9 6.5t8 6l3 3q36 26 54 75.5t7 95.5q-4 28 -27 75q-2 6 -7.5 20t-8.5 22t-6.5 20t-4.5 23
280 q0 -2 -2 -5t-2 -5q-15 -42 -20 -75q0 -45 7 -58q7 -5 7.5 -14.5t-4.5 -16.5q-5 -8 -14 -10t-17 3v0q-67 44 -85 120q7 34 7 78v21v24q0 68 -10 92q-14 -53 -28 -72q-22 -39 -37 -58q-6 -6 -15.5 -20t-12.5 -18q-13 -22 -24 -46.5t-21.5 -61.5t-5.5 -78t28 -76 280 q0 -2 -2 -5t-2 -5q-15 -42 -20 -75q0 -45 7 -58q7 -5 7.5 -14.5t-4.5 -16.5q-5 -8 -14 -10t-17 3v0q-67 44 -85 120q7 34 7 78v21v24q0 68 -10 92q-14 -53 -28 -72q-22 -39 -37 -58q-6 -6 -15.5 -20t-12.5 -18q-13 -22 -24 -46.5t-21.5 -61.5t-5.5 -78t28 -76
281 q3 -7 7.5 -12.5t8 -10t8.5 -10t7.5 -8t8 -7t7.5 -6.5t7.5 -6.5t6.5 -4.5q11 -9 16.5 -14.5t10 -14.5t0.5 -19q-5 -18 -21.5 -29.5t-39.5 -11.5z" /> 281 q3 -7 7.5 -12.5t8 -10t8.5 -10t7.5 -8t8 -7t7.5 -6.5t7.5 -6.5t6.5 -4.5q11 -9 16.5 -14.5t10 -14.5t0.5 -19q-5 -18 -21.5 -29.5t-39.5 -11.5z" />
  282 + <glyph glyph-name="uniE64C" unicode="&#xe64c;"
  283 +d="M911 725h-242v123q0 21 -13.5 34.5t-34.5 13.5h-246q-20 0 -33.5 -13.5t-13.5 -34.5v-123h-246q-21 0 -34.5 -13.5t-13.5 -34t13.5 -34t34.5 -13.5h293h243h293q21 0 34.5 13.5t13.5 34t-13.5 34t-34.5 13.5zM423 725v72h147v-72h-147zM765 579q-21 0 -34.5 -14
  284 +t-13.5 -34v-560h-441v560q0 20 -13.5 34t-34 14t-34 -14t-13.5 -34v-611q0 -21 13.5 -34.5t34.5 -13.5h536q20 0 33.5 13.5t13.5 34.5v611q3 20 -11.5 34t-35.5 14zM447 67v389q0 20 -13.5 33.5t-34 13.5t-34 -13.5t-13.5 -33.5v-389q0 -21 13.5 -34.5t34 -13.5t34 13.5
  285 +t13.5 34.5zM645 67v389q0 20 -13.5 33.5t-34.5 13.5q-20 0 -35.5 -13.5t-15.5 -33.5v-389q0 -21 13.5 -34.5t34.5 -13.5t36 13.5t15 34.5z" />
282 </font> 286 </font>
283 </defs></svg> 287 </defs></svg>
No preview for this file type
No preview for this file type
@@ -183,7 +183,7 @@ function searchResult() { @@ -183,7 +183,7 @@ function searchResult() {
183 writeSearch.bindWirteLocal($brandList); 183 writeSearch.bindWirteLocal($brandList);
184 } 184 }
185 185
186 -if ($('.brand-search-page').length) { 186 +if ($('.brand-search-page').length > 0) {
187 brandsData = $.parseJSON($('#brands-data').html()); 187 brandsData = $.parseJSON($('#brands-data').html());
188 $keyword = $('#keyword'); 188 $keyword = $('#keyword');
189 189
@@ -281,41 +281,40 @@ if ($('.brand-search-page').length >0) { @@ -281,41 +281,40 @@ if ($('.brand-search-page').length >0) {
281 }); 281 });
282 282
283 //搜索页面 283 //搜索页面
284 - if ($('.brand-search-page').length > 0){  
285 - (function () {  
286 - var html = '',  
287 - history,  
288 - historys, i,  
289 - brand, url, locate;  
290 -  
291 - if (localStorage) {  
292 - historys = localStorage.getItem('historys-brand');  
293 -  
294 - if (historys && historys.length > 0) {  
295 - historys = historys.split(ranToken);  
296 - for (i = (historys.length >= 10) ? 10 : historys.length; i > 0; i--) {  
297 - history = historys[i - 1];  
298 -  
299 - if (history === '') {  
300 - continue;  
301 - }  
302 - locate = history.indexOf("http://");  
303 - brand = history.substr(0, locate);  
304 - url = history.substr(locate, history.length - locate);  
305 -  
306 - html += '<li><a href="' + url + '">' + brand + '</li>';  
307 - $historySearch.removeClass('hide');  
308 - }  
309 284
310 - $history.html(html);  
311 - $clearHistory.removeClass('hide'); 285 + (function () {
  286 + var html = '',
  287 + history,
  288 + historys, i,
  289 + brand, url, locate;
  290 +
  291 + if (localStorage) {
  292 + historys = localStorage.getItem('historys-brand');
  293 +
  294 + if (historys && historys.length > 0) {
  295 + historys = historys.split(ranToken);
  296 + for (i = (historys.length >= 10) ? 10 : historys.length; i > 0; i--) {
  297 + history = historys[i - 1];
  298 +
  299 + if (history === '') {
  300 + continue;
  301 + }
  302 + locate = history.indexOf("http://");
  303 + brand = history.substr(0, locate);
  304 + url = history.substr(locate, history.length - locate);
312 305
313 - $hotSearch.removeClass('hide');  
314 - window.rePosFooter(); 306 + html += '<li><a href="' + url + '">' + brand + '</li>';
  307 + $historySearch.removeClass('hide');
315 } 308 }
  309 +
  310 + $history.html(html);
  311 + $clearHistory.removeClass('hide');
  312 +
  313 + $hotSearch.removeClass('hide');
  314 + window.rePosFooter();
316 } 315 }
317 - }());  
318 - } 316 + }
  317 + }());
319 318
320 } 319 }
321 320
@@ -16,7 +16,7 @@ function getRanToken() { @@ -16,7 +16,7 @@ function getRanToken() {
16 function bindWirteLocal($brandList) { 16 function bindWirteLocal($brandList) {
17 $brandList.on('click','p', function(e) { 17 $brandList.on('click','p', function(e) {
18 18
19 - var a,brandName,brandId,url,query; 19 + var a,brandName,brandId,url;
20 20
21 e.preventDefault(); 21 e.preventDefault();
22 22
@@ -28,7 +28,7 @@ function bindWirteLocal($brandList) { @@ -28,7 +28,7 @@ function bindWirteLocal($brandList) {
28 28
29 url = a.attr("href"); 29 url = a.attr("href");
30 30
31 - query = brandName+url, 31 + var query = brandName+url,
32 historys; 32 historys;
33 33
34 if (localStorage) { 34 if (localStorage) {
@@ -314,10 +314,12 @@ @@ -314,10 +314,12 @@
314 } 314 }
315 315
316 .brand-name{ 316 .brand-name{
  317 + margin-top: 10px;
317 text-align: center; 318 text-align: center;
318 vertical-align: middle; 319 vertical-align: middle;
319 - font-size: 26px; 320 + font-size: 24px;
320 line-height: 44px; 321 line-height: 44px;
  322 + height: 44px;
321 color: #b8b8b8; 323 color: #b8b8b8;
322 } 324 }
323 325
@@ -351,7 +353,6 @@ @@ -351,7 +353,6 @@
351 } 353 }
352 354
353 .search-result { 355 .search-result {
354 - padding-top: 64px;  
355 - display: block; 356 + padding-top: 165px;
356 } 357 }
357 } 358 }
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 {{#if historySearch}} 19 {{#if historySearch}}
20 <div class="history-search net-search hide"> 20 <div class="history-search net-search hide">
21 <h3><span class="iconfont">&#xe64a;</span>最近搜索 21 <h3><span class="iconfont">&#xe64a;</span>最近搜索
22 - <button id="clear-history" class="clear-icon iconfont hide">&#xe621;</button> 22 + <button id="clear-history" class="clear-icon iconfont hide">&#xe64c;;</button>
23 </h3> 23 </h3>
24 <ul class="history clearfix"> 24 <ul class="history clearfix">
25 {{# history}} 25 {{# history}}