Showing
5 changed files
with
42 additions
and
9 deletions
@@ -35,6 +35,16 @@ exports.escapeType = (value) => { | @@ -35,6 +35,16 @@ exports.escapeType = (value) => { | ||
35 | if (strs.length === 2) { | 35 | if (strs.length === 2) { |
36 | strs[2] = strs[1]; | 36 | strs[2] = strs[1]; |
37 | strs[1] = ' '; | 37 | strs[1] = ' '; |
38 | + return strs.join(''); | ||
38 | } | 39 | } |
40 | + | ||
41 | + if (strs.length === 3) { | ||
42 | + strs[4] = strs[2]; | ||
43 | + strs[2] = strs[1]; | ||
44 | + strs[1] = ' '; | ||
45 | + strs[3] = ' '; | ||
46 | + return strs.join(''); | ||
47 | + } | ||
48 | + | ||
39 | return strs.join(''); | 49 | return strs.join(''); |
40 | }; | 50 | }; |
@@ -55,12 +55,13 @@ | @@ -55,12 +55,13 @@ | ||
55 | {{# description}} | 55 | {{# description}} |
56 | <ul class="basic clearfix"> | 56 | <ul class="basic clearfix"> |
57 | {{# basic}} | 57 | {{# basic}} |
58 | - <li> | 58 | + <li><em class="justpostion"> |
59 | {{#if dColor}} | 59 | {{#if dColor}} |
60 | {{{escapeType key}}}: <span id="desc-color" class="valueSpace">{{value}}</span> | 60 | {{{escapeType key}}}: <span id="desc-color" class="valueSpace">{{value}}</span> |
61 | {{^}} | 61 | {{^}} |
62 | {{{escapeType key}}}: <span class="valueSpace">{{value}}</span> | 62 | {{{escapeType key}}}: <span class="valueSpace">{{value}}</span> |
63 | {{/if}} | 63 | {{/if}} |
64 | + </em> | ||
64 | </li> | 65 | </li> |
65 | {{/ basic}} | 66 | {{/ basic}} |
66 | </ul> | 67 | </ul> |
@@ -18,15 +18,15 @@ module.exports = { | @@ -18,15 +18,15 @@ module.exports = { | ||
18 | domains: { | 18 | domains: { |
19 | 19 | ||
20 | // test2 | 20 | // test2 |
21 | - singleApi: 'http://192.168.102.27:8092/brower/', | 21 | + singleApi: 'http://192.168.102.27:8092/brower', |
22 | api: 'http://api-test2.yohops.com:9999/', | 22 | api: 'http://api-test2.yohops.com:9999/', |
23 | service: 'http://service-test2.yohops.com:9999/', | 23 | service: 'http://service-test2.yohops.com:9999/', |
24 | 24 | ||
25 | - //api: 'http://api.yoho.cn/', | ||
26 | - //service: 'http://service.yoho.cn/', | 25 | + // api: 'http://api.yoho.cn/', |
26 | + // service: 'http://service.yoho.cn/', | ||
27 | 27 | ||
28 | - //api: 'http://dev-api.yohops.com:9999/', | ||
29 | - //service: 'http://dev-service.yohops.com:9999/', | 28 | + // api: 'http://dev-api.yohops.com:9999/', |
29 | + // service: 'http://dev-service.yohops.com:9999/', | ||
30 | search: 'http://192.168.102.216:8080/yohosearch/' | 30 | search: 'http://192.168.102.216:8080/yohosearch/' |
31 | }, | 31 | }, |
32 | subDomains: { | 32 | subDomains: { |
@@ -1666,6 +1666,28 @@ $(function() { | @@ -1666,6 +1666,28 @@ $(function() { | ||
1666 | }); | 1666 | }); |
1667 | }); | 1667 | }); |
1668 | 1668 | ||
1669 | +$(function() { | ||
1670 | + var font = $('.description-content .basic li'); | ||
1671 | + var fontwidth = $('.description-content ul li:nth-child(4) .valueSpace').width(); | ||
1672 | + $('.description-content ul li:nth-child(8) .valueSpace').css({ | ||
1673 | + 'display': 'inline-block', | ||
1674 | + 'text-align': 'right', | ||
1675 | + 'width': fontwidth | ||
1676 | + }); | ||
1677 | + font.each(function(i, ele) { | ||
1678 | + | ||
1679 | + if ((i + 1) % 4 === 0) { | ||
1680 | + $(this).find('.justpostion').css({'display': 'inline-block', 'float': 'right'}); | ||
1681 | + } else if ((i + 1) % 4 === 1) { | ||
1682 | + return; | ||
1683 | + } else { | ||
1684 | + $(this).css('text-align', 'center'); | ||
1685 | + } | ||
1686 | + | ||
1687 | + | ||
1688 | + }); | ||
1689 | +}); | ||
1690 | + | ||
1669 | 1691 | ||
1670 | // 数据懒加载 | 1692 | // 数据懒加载 |
1671 | dataLazyLoad.init({cls: '.datalazyload', threshold: 500}); | 1693 | dataLazyLoad.init({cls: '.datalazyload', threshold: 500}); |
@@ -873,7 +873,7 @@ | @@ -873,7 +873,7 @@ | ||
873 | background-color: #f5f5f5; | 873 | background-color: #f5f5f5; |
874 | float: left; | 874 | float: left; |
875 | height: 240px; | 875 | height: 240px; |
876 | - width: 188px; | 876 | + width: 186px; |
877 | border-right: 1px solid #eaeceb; | 877 | border-right: 1px solid #eaeceb; |
878 | height: 1000px; | 878 | height: 1000px; |
879 | margin-top: 30px; | 879 | margin-top: 30px; |
@@ -964,12 +964,12 @@ | @@ -964,12 +964,12 @@ | ||
964 | font-size: 12px; | 964 | font-size: 12px; |
965 | 965 | ||
966 | .basic { | 966 | .basic { |
967 | - width: 840px; | 967 | + width: 800px; |
968 | margin: 0 auto; | 968 | margin: 0 auto; |
969 | 969 | ||
970 | li { | 970 | li { |
971 | float: left; | 971 | float: left; |
972 | - width: 210px; | 972 | + width: 200px; |
973 | line-height: 30px; | 973 | line-height: 30px; |
974 | 974 | ||
975 | color: #686868; | 975 | color: #686868; |
-
Please register or login to post a comment