update
This commit is contained in:
@@ -12,16 +12,6 @@ body {
|
||||
* Sidebar
|
||||
*/
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 100; /* Behind the navbar */
|
||||
padding: 48px 0 0; /* Height of navbar */
|
||||
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.sidebar {
|
||||
top: 5rem;
|
||||
|
||||
@@ -24,10 +24,13 @@
|
||||
$('#exampleModal').on('show.bs.modal', function (event) {
|
||||
console.log(qr_websocket)
|
||||
console.log('打开');
|
||||
const ws = new WebSocket(`ws://${window.location.host}/ws/qr/?${qr_websocket.uuid}`)
|
||||
qr_websocket.websocket = ws
|
||||
});
|
||||
|
||||
$('#exampleModal').on('hidden.bs.modal', function (event) {
|
||||
console.log('关闭');
|
||||
qr_websocket.websocket.close()
|
||||
});
|
||||
})
|
||||
</script>
|
||||
@@ -40,12 +43,12 @@
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div>微信扫码登录</div>
|
||||
<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">
|
||||
|
||||
Reference in New Issue
Block a user