update
This commit is contained in:
+49
-24
@@ -36,18 +36,26 @@
|
||||
qr_websocket.websocket.close()
|
||||
});
|
||||
|
||||
|
||||
// 扫码登录
|
||||
$('#s_login_a').click(function () {
|
||||
$('.modal-body').hide();
|
||||
$('.qr_login_group').show();
|
||||
set_modal_title('登录');
|
||||
})
|
||||
|
||||
// 点击注册控件
|
||||
$('#register_a').click(function () {
|
||||
$('.log-in-group').hide();
|
||||
$('.register-group').show();
|
||||
$('.modal-body').hide();
|
||||
$('.register_group').show();
|
||||
set_modal_title('注册');
|
||||
})
|
||||
|
||||
// 点击登录
|
||||
$('#log-in_a').click(function () {
|
||||
$('.log-in-group').show();
|
||||
$('.register-group').hide();
|
||||
set_modal_title('扫码登录');
|
||||
// 用户名密码登录
|
||||
$('#p_login_a').click(function () {
|
||||
$('.modal-body').hide();
|
||||
$('.pw_login_group').show();
|
||||
set_modal_title('登录');
|
||||
})
|
||||
|
||||
// 设置窗口名称
|
||||
@@ -70,34 +78,51 @@
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<!--log-in start-->
|
||||
<div class="modal-body log-in-group" style="height: 360px;">
|
||||
|
||||
<!--qr_login start-->
|
||||
<div class="modal-body qr_login_group" style="height: 360px;">
|
||||
<img src="https://img0.baidu.com/it/u=3881180510,1470858589&fm=253&fmt=auto&app=138&f=JPEG?w=200&h=200" height="300px">
|
||||
</div>
|
||||
<div class="modal-footer log-in-group">
|
||||
<a class="nav-link active" id="register_a" href="#">
|
||||
<span data-feather="check-circle"></span>
|
||||
注册
|
||||
</a>
|
||||
</div>
|
||||
<!--log-in end-->
|
||||
<!--qr_login end-->
|
||||
|
||||
<!--register start-->
|
||||
<div class="modal-body register-group" style="display: none;height: 360px;">
|
||||
<h1 class="h3 mb-3 font-weight-normal">请输入手机号和密码</h1>
|
||||
<div class="modal-body register_group" style="display: none;height: 360px;">
|
||||
<h1 class="h3 mb-3 font-weight-normal">请输入用户名和密码</h1>
|
||||
<label for="inputEmail" class="sr-only">Email address</label>
|
||||
<input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
|
||||
|
||||
<label for="inputPassword" class="sr-only">Password</label>
|
||||
<input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
|
||||
</div>
|
||||
<div class="modal-footer register-group" style="display: none;">
|
||||
<a class="nav-link active" href="#" id="log-in_a">
|
||||
<span data-feather="log-in"></span>
|
||||
登录
|
||||
</a>
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
|
||||
</div>
|
||||
<!--register end-->
|
||||
|
||||
<!--pw_login start-->
|
||||
<div class="modal-body pw_login_group" style="display: none;height: 360px;">
|
||||
<h1 class="h3 mb-3 font-weight-normal">请输入用户名和密码</h1>
|
||||
<label for="inputEmail" class="sr-only">Email address</label>
|
||||
<input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
|
||||
|
||||
<label for="inputPassword" class="sr-only">Password</label>
|
||||
<input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
|
||||
</div>
|
||||
<!--pw_login end-->
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="nav-link active" href="#" id="s_login_a">
|
||||
<span data-feather="grid"></span>
|
||||
扫码登录
|
||||
</a>
|
||||
<a class="nav-link active" id="register_a" href="#">
|
||||
<span data-feather="check-circle"></span>
|
||||
用户注册
|
||||
</a>
|
||||
<a class="nav-link active" href="#" id="p_login_a">
|
||||
<span data-feather="smartphone"></span>
|
||||
用户名登录
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user