From 6e2ade7506a7a15d6fc93bc5439ffb9210d39ffe Mon Sep 17 00:00:00 2001 From: iFish Date: Thu, 31 Jul 2014 21:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=8F=90=E4=BA=A4=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web12306/Web12306.csproj | 1 + Web12306/css/buttons.css | 4 + Web12306/css/ui/index-search-base.css | 9 ++ Web12306/css/ui/query-result.css | 54 +++++++ Web12306/index.html | 58 ++++++-- Web12306/js/data.js | 21 ++- Web12306/js/otn/trainfilter.js | 28 ++-- Web12306/js/otn/trainstationsuggest.js | 193 +++++++++++++++++++++++++ Web12306/js/platform/parser.js | 4 +- Web12306/js/ui/index.js | 25 +++- Web12306/js/ui/ui-autorefresh.js | 14 +- Web12306/js/ui/ui-autosubmitform.js | 4 +- Web12306/js/ui/ui-trainlist.js | 9 ++ 13 files changed, 390 insertions(+), 34 deletions(-) create mode 100644 Web12306/js/otn/trainstationsuggest.js diff --git a/Web12306/Web12306.csproj b/Web12306/Web12306.csproj index aecb7fc..1c4c28f 100644 --- a/Web12306/Web12306.csproj +++ b/Web12306/Web12306.csproj @@ -187,6 +187,7 @@ + diff --git a/Web12306/css/buttons.css b/Web12306/css/buttons.css index c0447ba..7247610 100644 --- a/Web12306/css/buttons.css +++ b/Web12306/css/buttons.css @@ -67,6 +67,10 @@ a.button-primary { line-height: 40px; } +.button-mini { + padding: 0 15px; +} + .text { border-radius: 4px; border: 1px solid #b7b7b7; diff --git a/Web12306/css/ui/index-search-base.css b/Web12306/css/ui/index-search-base.css index 4f64812..939e3e4 100644 --- a/Web12306/css/ui/index-search-base.css +++ b/Web12306/css/ui/index-search-base.css @@ -313,3 +313,12 @@ button#btnResetOptions { float: left; color: #9b540b; } + + .search-traintypes li a { + color: #9b540b; + } + + .search-traintypes li a:hover { + color: #7c5024; + text-decoration: underline; + } diff --git a/Web12306/css/ui/query-result.css b/Web12306/css/ui/query-result.css index 3566985..3c40f5a 100644 --- a/Web12306/css/ui/query-result.css +++ b/Web12306/css/ui/query-result.css @@ -167,3 +167,57 @@ .result .train-needauto td button { margin-left: 20px; } + +/*购票建议*/ +#suggestion { + display: none; + border: 1px solid #D1AB7B; + margin-top: 10px; + border-radius: 3px; +} + + #suggestion > header { + line-height: 30px; + background: #D1AB7B; + font-size: 16px; + font-weight: bold; + text-indent: 20px; + color: #fff; + } + + #suggestion > button { + margin: 10px auto; + display: block; + } + + #suggestion > div { + padding: 20px; + } + + #suggestion ul { + list-style-type: square; + } + + #suggestion .train-suggestion-link-target { + font-weight: bold; + text-decoration: underline; + margin-left: 5px; + margin-right: 5px; + color: #c23825; + } + + #suggestion a.train-suggestion-link-end, + #suggestion a.train-suggestion-link-start { + margin-left: 5px; + font-weight: bold; + text-decoration: underline; + color: #c23825; + } + + #suggestion .train-code, + #suggestion .train-suggestion-target { + color: #8160d4; + font-weight: bold; + margin-left: 5px; + margin-right: 5px; + } diff --git a/Web12306/index.html b/Web12306/index.html index d56fe5b..1e319ab 100644 --- a/Web12306/index.html +++ b/Web12306/index.html @@ -44,7 +44,7 @@ -
+
- - 没有可选择的联系人。是否没有登录? + 没有可选择的联系人。
+ 需要登录后才可查看联系人。
+
+
购票提示
+
+ +
@@ -368,11 +402,9 @@
-
-
- +