From 04663aa6f757cca1265f0d2d318ba38dcae75289 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 15 Dec 2016 16:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=94=A8=E6=88=B7=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E9=A1=B5=E9=9D=A2=EF=BC=8C=E9=80=82=E9=85=8D=E5=B0=8F?= =?UTF-8?q?=E5=B1=8F=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Content/css/register.css | 92 ++++++++++++++------ Bootstrap.Admin/Scripts/register.js | 22 +++-- Bootstrap.Admin/Views/Home/Register.cshtml | 98 +++++++++++++--------- 3 files changed, 137 insertions(+), 75 deletions(-) diff --git a/Bootstrap.Admin/Content/css/register.css b/Bootstrap.Admin/Content/css/register.css index b0c9994f..e920a89a 100644 --- a/Bootstrap.Admin/Content/css/register.css +++ b/Bootstrap.Admin/Content/css/register.css @@ -1,4 +1,12 @@ -ol { +header h2 { + text-align: center; +} + +h3 { + margin-bottom: 20px; +} + +ol { display: block; list-style-type: decimal; -webkit-margin-before: 1em; @@ -8,19 +16,36 @@ -webkit-padding-start: 40px; } +.has-error input { + background-repeat: no-repeat; + background-image: url('../images/error.png'); + background-position: right 8px center; +} + +.has-success input { + background-repeat: no-repeat; + background-image: url('../images/success.png'); + background-position: right 8px center; +} + .setup-wrapper { - width: 750px; - padding-top: 30px; margin: 0 auto; } +form input { + padding-right: 30px !important; +} + .setup-header { - padding-bottom: 20px; - margin: 0 auto 30px; - overflow: hidden; + margin: 0 auto; text-align: left; } +.setup-main, .setup-confirm { + float: left; + width: 450px; +} + .setup-confirm { display: none; } @@ -29,30 +54,19 @@ padding: 6px 0; } - .setup-confirm div { - padding-top: 30px; - } - - .setup-confirm button { - margin-top: 30px; - } - -.setup-main, .setup-confirm { - float: left; - width: 450px; +.setup-main span { + top: 0; } - .setup-main span { - top: 0; - } - - .setup-main .input-group { - margin-bottom: 15px; - } +.setup-main .input-group { + margin-bottom: 15px; +} .setup-secondary { + display: inline-block; float: right; width: 250px; + margin-top: 70px; } .setup-info-module { @@ -69,6 +83,10 @@ overflow: hidden; border-bottom: 1px solid #ddd; margin-top: 0; + background-color: #5cb85c; + color: #000; + border-top-left-radius: 3px; + border-top-right-radius: 3px; } .features-list { @@ -117,13 +135,13 @@ } .steps li.current { - color: #333; - background-color: #fff; + color: #000; + background-color: #5cb85c; } .steps li { display: table-cell; - width: 33.3%; + width: 50%; padding: 10px 15px; color: #ccc; cursor: default; @@ -134,3 +152,23 @@ .steps li .step { display: block; } + +@media (max-width: 767px) { + .steps { + display: inherit; + } + + .steps li { + display: inherit; + width: inherit; + } + + .setup-secondary { + display: none; + } + + .setup-main, .setup-confirm { + float: inherit; + width: inherit; + } +} diff --git a/Bootstrap.Admin/Scripts/register.js b/Bootstrap.Admin/Scripts/register.js index 985dfbc2..eabcfbde 100644 --- a/Bootstrap.Admin/Scripts/register.js +++ b/Bootstrap.Admin/Scripts/register.js @@ -15,23 +15,29 @@ assurePassword: { required: true, maxlength: 50, - equalTo:"#password" + equalTo: "#password" }, description: { required: true, maxlength: 500 - } + } }); $('#btnAccount').click(function () { var valid = $('form').valid(); if (valid) { - $('.setup-main').hide(); - $('.steps li').toggleClass('current'); - $('#loginID').text($('#userName').val()); - $('#loginName').text($('#displayName').val()); - $('#loginDesc').text($('#description').val()); - $('.setup-confirm').show(); + $('.setup-main').hide(); + $('.steps li').toggleClass('current'); + $('#loginID').text($('#userName').val()); + $('#loginName').text($('#displayName').val()); + $('#loginDesc').text($('#description').val()); + $('.setup-confirm').show(); } }); + + $('#btnPrev').click(function () { + $('.steps li').toggleClass('current'); + $('.setup-main').show(); + $('.setup-confirm').hide(); + }); }); \ No newline at end of file diff --git a/Bootstrap.Admin/Views/Home/Register.cshtml b/Bootstrap.Admin/Views/Home/Register.cshtml index 40da8e5f..42692907 100644 --- a/Bootstrap.Admin/Views/Home/Register.cshtml +++ b/Bootstrap.Admin/Views/Home/Register.cshtml @@ -4,15 +4,18 @@ } @section css { + } @section javascript { + }
+

新用户注册

  1. @@ -26,64 +29,79 @@
    -

    +

    创建您的账号 -

    - -
    - @@ - + +
    + +
    + @@ + +
    - -
    - - +
    + +
    + + +
    - -
    - - +
    + +
    + + +
    - -
    - - +
    + +
    + + +
    - -
    - - +
    + +
    + + +
    - -
    +
    + +
    +
    -

    您注册的信息如下:

    -
    - +

    您注册的信息如下:

    +
    +
    -
    - +
    +
    -
    - +
    + +
    +
    + +
    -

    欢迎加入本系统

      -
    • Unlimited特性一
    • -
    • Unlimited特性二
    • -
    • Unlimited特性三
    • -
    • Unlimited特性四
    • +
    • Unlimited 特性一
    • +
    • Unlimited 特性二
    • +
    • Unlimited 特性三
    • +
    • Unlimited 特性四
    • -
    • 优点一
    • -
    • 优点二
    • -
    • 优点三
    • -
    • 优点四
    • +
    • 优点一
    • +
    • 优点二
    • +
    • 优点三
    • +
    • 优点四