html_and_vue/qrcode_test/index.html

150 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="../vue/js/vue.js"></script>
<style type="text/css" >
.left-box {
width: 1344px;
height: 880px;
/* background-color: skyblue; */
border: 0.5px solid #999;
float: left;
}
.right-box {
width: 360px;
height: 880px;
margin-left: -0.5px;
/* background-color: orange; */
float: left;
border: 0.5px solid #999;
}
div .qr-block {
margin: 20px;
}
div .qr-title {
font-family: '思源黑体';
font-size: 28px;
font-weight: 600;
line-height: 42px;
margin-bottom: 16px;
}
#icon {
width: 32px;
vertical-align: middle;
}
#qrcode {
width: 312px;
vertical-align: middle;
margin-bottom: 16px;
border: #256294 4px solid;
}
.font-botton {
width: 320px;
text-align: center;
margin-bottom: 16px;
color: #666;
}
button {
display: block;
height: 38px;
width: 318px;
border-radius: 4px;
align-items: center;
font-size: 24px;
font-weight: 600;
}
#use-it {
background-color: #256294;
color: #fff;
border: #256294 1px solid;
}
#change {
background-color: #fff;
color: #256294;
border: #256294 1px solid;
margin-top: 8px;
}
table {
width: 100%;
text-align: center;
padding: 40px 20px;
line-height: 40px;
/* background-color: black; */
}
tbody:hover {
background-color: skyblue;
}
</style>
<title>QRCode Qurey</title>
</head>
<body>
<div class="left-box" id="root">
<table>
<thead>
<tr>
<th>QRCode</th>
<th>State</th>
<th>User</th>
<th>ActName</th>
<th>UpdateTime</th>
</tr>
</thead>
<tbody>
<tr v-for="(qr) in qrcode">
<td v-text="qr.qrcode"></td>
<td v-text="qr.state"></td>
<td v-text="qr.user"></td>
<td v-text="qr.actname"></td>
<td v-text="qr.updatetime"></td>
</tr>
</tbody>
</table>
</div>
<div class="right-box">
<div class="qr-block">
<div class="qr-title">
<img src="https://nasofcori.fun:9000/qrcode/qr/1470981902416.png" alt="" id="icon">
<span>FIT_110211</span>
</div>
<img src="https://nasofcori.fun:9000/qrcode/qr/1470981902416.png" alt="qrcode" id="qrcode">
<div class="font-botton">
<img src="#" alt="">
<span>Download Pic</span>
<span></span>
<img src="#" alt="">
<span>Export CSV</span>
</div>
<button id="use-it">USE IT</button>
<button id="change">CHANGE</button>
</div>
</div>
</body>
<script type="text/javascript">
const vm = new Vue({
el:'#root',
data:{
qrcode:[
{qrcode:'FIT_110211', state:'used', user:'张帆', actname:'本溪医保查询', updatetime:'2023-09-14 18:16:32'},
{qrcode:'FIT_110985', state:'unused', user:'张帆', actname:'抚顺医保查询', updatetime:'2023-09-14 18:16:32'},
]
}
})
</script>
</html>