From 8973eb627ce56719b96d85a996e57cbd1672dc47 Mon Sep 17 00:00:00 2001 From: JeffreySu Date: Tue, 19 Nov 2019 13:44:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=20.net=204.5=20Sample=20?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=96=87=E4=BB=B6=E5=8F=8A=20JS=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Senparc.Weixin.MP.Sample/Content/Site.css | 200 +++++++++--------- .../Content/style.css | 10 +- .../Scripts/global.js | 12 +- .../Scripts/senparc.menu.js | 2 +- .../Senparc.Weixin.MP.Sample.csproj | 1 + 5 files changed, 120 insertions(+), 105 deletions(-) diff --git a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/Site.css b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/Site.css index 37700e3651..748427cf3f 100644 --- a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/Site.css +++ b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/Site.css @@ -104,18 +104,18 @@ h5, h6 { padding-bottom: 35px; } - .main-content { - background: url("../Images/accent.png") no-repeat; - padding-left: 10px; - padding-top: 30px; - } +.main-content { + background: url("../Images/accent.png") no-repeat; + padding-left: 10px; + padding-top: 30px; +} - .featured + .main-content { - background: url("../Images/heroAccent.png") no-repeat; - } +.featured + .main-content { + background: url("../Images/heroAccent.png") no-repeat; +} header .content-wrapper { - padding-top: 20px; + padding-top: 20px; } footer { @@ -137,12 +137,12 @@ footer { margin: 0; } -.site-title a, .site-title a:hover, .site-title a:active { - background: none; - color: #c8c8c8; - outline: none; - text-decoration: none; -} + .site-title a, .site-title a:hover, .site-title a:active { + background: none; + color: #c8c8c8; + outline: none; + text-decoration: none; + } /* login @@ -162,12 +162,12 @@ footer { text-decoration: none; } - #login a.username { - background: none; - margin: 0; - padding: 0; - text-decoration: underline; - } + #login a.username { + background: none; + margin: 0; + padding: 0; + text-decoration: underline; + } #login ul { margin: 0; @@ -201,10 +201,10 @@ ul#menu { text-decoration: none; } - ul#menu li a:hover { - color: #333; - text-decoration: none; - } + ul#menu li a:hover { + color: #333; + text-decoration: none; + } /* page elements @@ -225,27 +225,27 @@ ul#menu { padding: 20px 40px 30px 40px; } - .featured hgroup.title h1, .featured hgroup.title h2 { - color: #fff; - } + .featured hgroup.title h1, .featured hgroup.title h2 { + color: #fff; + } - .featured p { - font-size: 1.1em; - } + .featured p { + font-size: 1.1em; + } /* page titles */ hgroup.title { margin-bottom: 10px; } -hgroup.title h1, hgroup.title h2 { - display: inline; -} + hgroup.title h1, hgroup.title h2 { + display: inline; + } -hgroup.title h2 { - font-weight: normal; - margin-left: 3px; -} + hgroup.title h2 { + font-weight: normal; + margin-left: 3px; + } /* features */ section.feature { @@ -357,12 +357,12 @@ aside { width: 250px; } - #loginForm input[type="checkbox"], - #loginForm input[type="submit"], - #loginForm input[type="button"], - #loginForm button { - width: auto; - } + #loginForm input[type="checkbox"], + #loginForm input[type="submit"], + #loginForm input[type="button"], + #loginForm button { + width: auto; + } #socialLoginForm { margin-left: 40px; @@ -371,7 +371,7 @@ aside { } #socialLoginForm h2 { - margin-bottom: 5px; + margin-bottom: 5px; } #socialLoginList button { @@ -422,9 +422,9 @@ label { font-weight: 600; } -label.checkbox { - display: inline; -} + label.checkbox { + display: inline; + } input, textarea { border: 1px solid #e2e2e2; @@ -445,32 +445,32 @@ textarea { border: 1px solid #7ac0da; } - input[type="checkbox"] { - background: transparent; - border: inherit; - width: auto; - } +input[type="checkbox"] { + background: transparent; + border: inherit; + width: auto; +} - input[type="submit"], - input[type="button"], - button { - background-color: #d3dce0; - border: 1px solid #787878; - cursor: pointer; - font-size: 1.2em; - font-weight: 600; - padding: 7px; - margin-right: 8px; - width: auto; - } +input[type="submit"], +input[type="button"], +button { + background-color: #d3dce0; + border: 1px solid #787878; + cursor: pointer; + font-size: 1.2em; + font-weight: 600; + padding: 7px; + margin-right: 8px; + width: auto; +} - td input[type="submit"], - td input[type="button"], - td button { - font-size: 1em; - padding: 4px; - margin-right: 4px; - } +td input[type="submit"], +td input[type="button"], +td button { + font-size: 1em; + padding: 4px; + margin-right: 4px; +} /* info and errors */ .message-info { @@ -548,36 +548,36 @@ th { position: relative; } - th a:link, th a:visited, th a:active, th a:hover { - color: #333; - font-weight: 600; - text-decoration: none; - padding: 0; - } + th a:link, th a:visited, th a:active, th a:hover { + color: #333; + font-weight: 600; + text-decoration: none; + padding: 0; + } - th a:hover { - color: #000; - } + th a:hover { + color: #000; + } th.asc a, th.desc a { margin-right: .75em; } - th.asc a:after, th.desc a:after { - display: block; - position: absolute; - right: 0em; - top: 0; - font-size: 0.75em; - } + th.asc a:after, th.desc a:after { + display: block; + position: absolute; + right: 0em; + top: 0; + font-size: 0.75em; + } - th.asc a:after { - content: '▲'; - } + th.asc a:after { + content: '▲'; + } - th.desc a:after { - content: '▼'; - } + th.desc a:after { + content: '▼'; + } td { padding: 0.25em 2em 0.25em 0em; @@ -634,9 +634,9 @@ tr.pager td { padding: 0; } - #login a:hover { - color: #333; - } + #login a:hover { + color: #333; + } /* menu */ nav { @@ -701,12 +701,12 @@ tr.pager td { background: none; } - /* features */ - section.feature { + /* features */ + section.feature { float: none; padding: 10px; width: auto; - } + } section.feature img { color: #999; diff --git a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/style.css b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/style.css index db8d856519..42a5318714 100644 --- a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/style.css +++ b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/style.css @@ -102,7 +102,7 @@ } .senparc-jumbotron { - background: url(/images/v2/background.png); + background: url(../images/v2/background.png); width: 100%; padding: 28px 0 0 0; } @@ -205,6 +205,10 @@ clear: left; }*/ +a.qqGroup_tip { + text-decoration: underline; +} + .catalog { background: #E7EEF1; text-align: center; @@ -1237,6 +1241,10 @@ p.crowdfunding-note { } @media screen and (min-width:375px) and (max-width:767px) { + #noticearea { + display: none; + } + .content { max-width: 100%; } diff --git a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/global.js b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/global.js index 9b383061c7..b600ebd624 100644 --- a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/global.js +++ b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/global.js @@ -9,7 +9,7 @@ $(function () { }); var noticeareaHeight = $('#noticearea').height(); - var noticeareaHeight_shrink = noticeareaHeight * 2 / 4; + var noticeareaHeight_shrink = noticeareaHeight * 2 / 3; $('#noticearea').animate({ height: noticeareaHeight_shrink }, 1000); $('#noticearea').hover(function () { if (noticeareaHeightChanging) { @@ -47,11 +47,17 @@ function loadQQGroups() { $('
  • ').addClass('contatc-name').html('  ').insertAfter($('#qqGroups li.contatc-img').eq(8));//在第9个元素后追加 - - $('#contact-content li.contact-qq').darkTooltip({ theme: 'light' }); + + $('ins div:contains(SCF)').each(function (i, item) { + $(this).html($(this).html().replace('SCF', 'SCF')); + }); + + $('ins div:contains(NeuChar)').each(function (i, item) { + $(this).html($(this).html().replace('NeuChar', 'NeuChar')); + }); }, error: function () { //alert('fail'); diff --git a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/senparc.menu.js b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/senparc.menu.js index 95d16d8a8f..c58bb13dcd 100644 --- a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/senparc.menu.js +++ b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/senparc.menu.js @@ -80,7 +80,7 @@ senparc.menu = { $('#menuTable tbody tr').eq(row).find('td').eq(0).addClass('currentMenuItem'); //一级菜单提示 - if (row == 5) { + if (row === 5) { $('#rootButtonNotice').show(); } else { $('#rootButtonNotice').hide(); diff --git a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample.csproj b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample.csproj index 7aa32b5417..c678f88757 100644 --- a/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample.csproj +++ b/Samples/net45-mvc/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample.csproj @@ -313,6 +313,7 @@ +