Showing
4 changed files
with
38 additions
and
5 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> |
@@ -406,7 +407,7 @@ | @@ -406,7 +407,7 @@ | ||
406 | <div class="common-question"> | 407 | <div class="common-question"> |
407 | <textarea id="textbox" placeholder="请输入您的问题"></textarea> | 408 | <textarea id="textbox" placeholder="请输入您的问题"></textarea> |
408 | <span id="submit-consult" class="btn">提交咨询</span> | 409 | <span id="submit-consult" class="btn">提交咨询</span> |
409 | - | 410 | + |
410 | </div> | 411 | </div> |
411 | 412 | ||
412 | </div> | 413 | </div> |
@@ -1650,6 +1650,28 @@ $(function() { | @@ -1650,6 +1650,28 @@ $(function() { | ||
1650 | }); | 1650 | }); |
1651 | }); | 1651 | }); |
1652 | 1652 | ||
1653 | +$(function(){ | ||
1654 | + var font = $('.description-content .basic li'); | ||
1655 | + var fontwidth = $('.description-content ul li:nth-child(4) .valueSpace').width()-1; | ||
1656 | + $('.description-content ul li:nth-child(8) .valueSpace').css({ | ||
1657 | + 'display':'inline-block', | ||
1658 | + 'text-align':'right', | ||
1659 | + 'width':fontwidth | ||
1660 | + }); | ||
1661 | + font.each(function(i,ele){ | ||
1662 | + | ||
1663 | + if((i+1) % 4 === 0){ | ||
1664 | + $(this).find('.justpostion').css({'display':'inline-block','float':'right'}); | ||
1665 | + }else if((i+1) % 4 === 1) { | ||
1666 | + return; | ||
1667 | + }else { | ||
1668 | + $(this).css('text-align','center'); | ||
1669 | + } | ||
1670 | + | ||
1671 | + | ||
1672 | + }); | ||
1673 | +}); | ||
1674 | + | ||
1653 | 1675 | ||
1654 | // 数据懒加载 | 1676 | // 数据懒加载 |
1655 | dataLazyLoad.init({cls: '.datalazyload', threshold: 500}); | 1677 | dataLazyLoad.init({cls: '.datalazyload', threshold: 500}); |
@@ -855,7 +855,7 @@ | @@ -855,7 +855,7 @@ | ||
855 | background-color: #f5f5f5; | 855 | background-color: #f5f5f5; |
856 | float: left; | 856 | float: left; |
857 | height: 240px; | 857 | height: 240px; |
858 | - width: 188px; | 858 | + width: 186px; |
859 | border-right: 1px solid #eaeceb; | 859 | border-right: 1px solid #eaeceb; |
860 | height: 1000px; | 860 | height: 1000px; |
861 | margin-top: 30px; | 861 | margin-top: 30px; |
@@ -946,12 +946,12 @@ | @@ -946,12 +946,12 @@ | ||
946 | font-size: 12px; | 946 | font-size: 12px; |
947 | 947 | ||
948 | .basic { | 948 | .basic { |
949 | - width: 840px; | 949 | + width: 800px; |
950 | margin: 0 auto; | 950 | margin: 0 auto; |
951 | 951 | ||
952 | li { | 952 | li { |
953 | float: left; | 953 | float: left; |
954 | - width: 210px; | 954 | + width: 200px; |
955 | line-height: 30px; | 955 | line-height: 30px; |
956 | 956 | ||
957 | color: #686868; | 957 | color: #686868; |
-
Please register or login to post a comment