style:资料审核
Showing
8 changed files
with
31 additions
and
12 deletions
... | @@ -382,6 +382,13 @@ div.footer .system_service ul li a:hover { | ... | @@ -382,6 +382,13 @@ div.footer .system_service ul li a:hover { |
382 | font-size: 14px; | 382 | font-size: 14px; |
383 | border-radius: 4px; | 383 | border-radius: 4px; |
384 | } | 384 | } |
385 | |||
386 | .personalCenter { | ||
387 | display: none!important; | ||
388 | } | ||
389 | .show{ | ||
390 | display: inline-block!important; | ||
391 | } | ||
385 | /* card样式 */ | 392 | /* card样式 */ |
386 | .cardItem { | 393 | .cardItem { |
387 | background: #FFFFFF; | 394 | background: #FFFFFF; | ... | ... |
... | @@ -130,3 +130,11 @@ | ... | @@ -130,3 +130,11 @@ |
130 | left: 65px; | 130 | left: 65px; |
131 | top: 40px; | 131 | top: 40px; |
132 | } | 132 | } |
133 | .complete { | ||
134 | text-align: center; | ||
135 | margin-top: 20px; | ||
136 | } | ||
137 | .complete p { | ||
138 | margin-bottom: 5px; | ||
139 | color: #0091FF; | ||
140 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -33,7 +33,7 @@ document.writeln(" </div>"); | ... | @@ -33,7 +33,7 @@ document.writeln(" </div>"); |
33 | document.writeln(""); | 33 | document.writeln(""); |
34 | document.writeln(" <ul class=\'login\'>"); | 34 | document.writeln(" <ul class=\'login\'>"); |
35 | document.writeln(" <!-- <li>登录</li> -->"); | 35 | document.writeln(" <!-- <li>登录</li> -->"); |
36 | document.writeln(" <li>"); | 36 | document.writeln(" <li class='personalCenter'>"); |
37 | document.writeln(" <a href=\'"+localhostPaht+"/staticViews/grzx.html\'>个人中心</a>"); | 37 | document.writeln(" <a href=\'"+localhostPaht+"/staticViews/grzx.html\'>个人中心</a>"); |
38 | document.writeln(" </li>"); | 38 | document.writeln(" </li>"); |
39 | document.writeln(" <li>"); | 39 | document.writeln(" <li>"); | ... | ... |
... | @@ -19,11 +19,10 @@ function login(){ | ... | @@ -19,11 +19,10 @@ function login(){ |
19 | }); | 19 | }); |
20 | }) | 20 | }) |
21 | } | 21 | } |
22 | // 时间委托解决冒泡 | 22 | $(document).on('click', '.PersonLogin', function(){ |
23 | $(document).off().on('click', '.PersonLogin', function(){ | ||
24 | //所执行的代码 | ||
25 | login() | 23 | login() |
26 | }); | 24 | }) |
25 | |||
27 | // 点击登陆的时候 | 26 | // 点击登陆的时候 |
28 | $(document).on('click', '#loginButton', function(){ | 27 | $(document).on('click', '#loginButton', function(){ |
29 | var userLoginRequest = {} | 28 | var userLoginRequest = {} |
... | @@ -36,6 +35,9 @@ $(document).on('click', '#loginButton', function(){ | ... | @@ -36,6 +35,9 @@ $(document).on('click', '#loginButton', function(){ |
36 | }); | 35 | }); |
37 | $(function(){ | 36 | $(function(){ |
38 | $('.PersonLogin').html(getCookie().username) | 37 | $('.PersonLogin').html(getCookie().username) |
38 | if(getCookie().username) { | ||
39 | $('.personalCenter').addClass('show') | ||
40 | } | ||
39 | }) | 41 | }) |
40 | // 点击注册的时候 | 42 | // 点击注册的时候 |
41 | $(document).on('click', '#registerButton', function(){ | 43 | $(document).on('click', '#registerButton', function(){ |
... | @@ -52,10 +54,10 @@ function clicklogin(data){ | ... | @@ -52,10 +54,10 @@ function clicklogin(data){ |
52 | dataType: "json", | 54 | dataType: "json", |
53 | data:JSON.stringify(data),//***关键****** | 55 | data:JSON.stringify(data),//***关键****** |
54 | success: function (result) {//返回数据根据结果进行相应的处理 | 56 | success: function (result) {//返回数据根据结果进行相应的处理 |
55 | console.log(222,result) | ||
56 | if(result.code ==200 && result.data!==null){ | 57 | if(result.code ==200 && result.data!==null){ |
57 | setCookie(result.data) | 58 | setCookie(result.data); |
58 | $('.PersonLogin').html(getCookie().username) | 59 | $('.personalCenter').addClass('show') |
60 | $('.PersonLogin').html(getCookie().username); | ||
59 | }else if(result.code ==500){ | 61 | }else if(result.code ==500){ |
60 | window.open(`${localhostPaht}/staticViews/register.html`,'_self') | 62 | window.open(`${localhostPaht}/staticViews/register.html`,'_self') |
61 | } | 63 | } | ... | ... |
... | @@ -63,7 +63,6 @@ | ... | @@ -63,7 +63,6 @@ |
63 | 63 | ||
64 | <div class="layui-form-item submitbutton_con"> | 64 | <div class="layui-form-item submitbutton_con"> |
65 | <div class="layui-input-block submitbutton"> | 65 | <div class="layui-input-block submitbutton"> |
66 | <button type="reset" class="layui-btn layui-btn-primary reset">重 置</button> | ||
67 | <button type="submit" class="layui-btn layui-btn-normal submit" lay-submit="" | 66 | <button type="submit" class="layui-btn layui-btn-normal submit" lay-submit="" |
68 | lay-filter="check">查 | 67 | lay-filter="check">查 |
69 | 询</button> | 68 | 询</button> | ... | ... |
... | @@ -57,6 +57,10 @@ | ... | @@ -57,6 +57,10 @@ |
57 | </p> | 57 | </p> |
58 | </li> | 58 | </li> |
59 | </ul> | 59 | </ul> |
60 | <div class="complete"> | ||
61 | <p>如您已经完成办理请点击确定</p> | ||
62 | <button type="button" class="layui-btn layui-btn-radius layui-btn-normal">确定</button> | ||
63 | </div> | ||
60 | </div> | 64 | </div> |
61 | <!-- ------------受理信息-------------- --> | 65 | <!-- ------------受理信息-------------- --> |
62 | <div class="acceptance_information"> | 66 | <div class="acceptance_information"> | ... | ... |
... | @@ -132,13 +132,13 @@ | ... | @@ -132,13 +132,13 @@ |
132 | <div class="layui-input-block ssq"> | 132 | <div class="layui-input-block ssq"> |
133 | <h2>省</h2> | 133 | <h2>省</h2> |
134 | <div class="layui-inline layui-select-default" style="margin-right: 10px;"> | 134 | <div class="layui-inline layui-select-default" style="margin-right: 10px;"> |
135 | <select name="province" class="Pselected" id="province" disabled data-area="陕西省"" lay-filter="province"> | 135 | <select name="province" class="Pselected" id="province" data-area="陕西省"" lay-filter="province"> |
136 | <option value="">选择省</option> | 136 | <option value="">选择省</option> |
137 | </select> | 137 | </select> |
138 | </div> | 138 | </div> |
139 | <h2>市</h2> | 139 | <h2>市</h2> |
140 | <div class="layui-inline selected layui-select-default"> | 140 | <div class="layui-inline selected layui-select-default"> |
141 | <select name="city" class="Cselected" id="city" disabled data-area="西安市"> | 141 | <select name="city" class="Cselected" id="city" data-area="西安市"> |
142 | <option value="">选择市</option> | 142 | <option value="">选择市</option> |
143 | </select> | 143 | </select> |
144 | </div> | 144 | </div> | ... | ... |
-
Please register or sign in to post a comment