279 lines
9.1 KiB
HTML
279 lines
9.1 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
|
||
<!-- <meta name="viewport"
|
||
content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width"> -->
|
||
<meta name="viewport"
|
||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
<meta name="screen-orientation" content="portrait">
|
||
<meta name="full-screen" content="yes">
|
||
<meta name="browsermode" content="application">
|
||
<meta name="x5-orientation" content="portrait">
|
||
|
||
<title>牲畜信息</title>
|
||
<style>
|
||
*,div,img,ul,li,span {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
font-size: 14px;
|
||
font-family: "微软雅黑";
|
||
font-weight: normal;
|
||
color: #333;
|
||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||
-webkit-touch-callout: none;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-ms-user-select: none;
|
||
}
|
||
li {
|
||
list-style: none;
|
||
}
|
||
body {
|
||
width: 100%;
|
||
}
|
||
.main_img {
|
||
width: 100%;
|
||
/* position: absolute; */
|
||
}
|
||
.main_img img{
|
||
width: 100%;
|
||
}
|
||
.main_box {
|
||
margin-top: -100px;
|
||
}
|
||
.item_box {
|
||
width: 96%;
|
||
margin: 0px 2%;
|
||
color: #46D6A8;
|
||
margin-top: 15px;
|
||
background: #fff;
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
word-wrap: break-word;
|
||
border: 1px solid rgba(0,0,0,.125);
|
||
border-radius: 10px;
|
||
}
|
||
.item_box .item_title {
|
||
padding: 24px;
|
||
box-sizing: border-box;
|
||
text-align: left;
|
||
font-size: 14px;
|
||
letter-spacing: 2px;
|
||
height: 40px;
|
||
line-height: 24px;
|
||
border-radius: 8px 8px 0 0;
|
||
display: flex;
|
||
align-items: center;
|
||
padding-left: 14px;
|
||
background-color: #DAFCE4;
|
||
}
|
||
.item_box .item_title span:nth-child(1){
|
||
width: 100%;
|
||
width: 3px;
|
||
height: 14px;
|
||
background: #46D6A8;
|
||
}
|
||
.item_box .item_title span:nth-child(2){
|
||
margin-left: 10px;
|
||
color: #46D6A8;;
|
||
}
|
||
ul {
|
||
padding: 10px 10px 20px;
|
||
}
|
||
li {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
border-bottom: 1px solid rgba(0,0,0,.125);
|
||
}
|
||
li div{
|
||
height: 40px;
|
||
line-height: 40px;
|
||
color: #999;
|
||
}
|
||
.topimg {
|
||
display: flex;
|
||
justify-content: center;
|
||
height: 100% !important;
|
||
position: absolute;
|
||
width: 100%;
|
||
z-index: 9999;
|
||
padding-top: 80%;
|
||
background: rgba(0, 0, 0, .5);
|
||
display: none;
|
||
}
|
||
|
||
#img1 {
|
||
display: flex;
|
||
justify-content: center;
|
||
height: 150% !important;
|
||
position: fixed;
|
||
background: rgba(0, 0, 0, .5);
|
||
width: 100%;
|
||
z-index: 9999;
|
||
display: none;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
}
|
||
#img2 {
|
||
display: flex;
|
||
justify-content: center;
|
||
height: 150% !important;
|
||
position: fixed;
|
||
background: rgba(0, 0, 0, .5);
|
||
width: 100%;
|
||
z-index: 9999;
|
||
padding-top: 80%;
|
||
display: none;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
}
|
||
#img3 {
|
||
display: flex;
|
||
justify-content: center;
|
||
height: 150% !important;
|
||
position: fixed;
|
||
background: rgba(0, 0, 0, .5);
|
||
width: 100%;
|
||
z-index: 9999;
|
||
padding-top: 80%;
|
||
display: none;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<body id="bodydiv">
|
||
<div class="topimg" id="img1">
|
||
<div>
|
||
<img style="width: 90%;"
|
||
src="./img/scQrCode/222.jpg"
|
||
>
|
||
</div>
|
||
<div onclick="imgClick1(1)" style="font-size: 30px;color: rgb(255, 255, 255);">×</div>
|
||
</div>
|
||
<div class="topimg" id="img2">
|
||
<div>
|
||
<img style="width: 90%;"
|
||
src="./img/scQrCode/动物检疫证.jpg"
|
||
>
|
||
</div>
|
||
<div onclick="imgClick1(2)" style="font-size: 30px;color: rgb(255, 255, 255);">×</div>
|
||
</div>
|
||
<div class="topimg" id="img3">
|
||
<div>
|
||
<img style="width: 90%;"
|
||
src="./img/scQrCode/肉品品质检疫合格证.jpg"
|
||
>
|
||
</div>
|
||
<div onclick="imgClick1(3)" style="font-size: 30px;color: rgb(255, 255, 255);">×</div>
|
||
</div>
|
||
<!-- 顶部图片 -->
|
||
<div class="main_img">
|
||
<img src="./img/2.png">
|
||
</div>
|
||
|
||
|
||
<div class="main_box">
|
||
<div class="item_box">
|
||
<div class="item_title"><span></span><span>牲畜信息</span></div>
|
||
<ul>
|
||
<li>
|
||
<div class="item_name">牲畜照片</div>
|
||
<div class="item_center" style="width: 50px;height: 100%;"><img id="myDiv" onclick="imgClick(1)" style="width: 50px;"
|
||
src="./img/scQrCode/222.jpg"></div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">品种</div>
|
||
<div class="item_center">九龙牦牛</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">生理阶段</div>
|
||
<div class="item_center">犊牛</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">性别</div>
|
||
<div class="item_center">公</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">体重(kg)</div>
|
||
<div class="item_center">20.00</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="item_box">
|
||
<div class="item_title"><span></span><span>检疫证</span></div>
|
||
<ul>
|
||
<li>
|
||
<div class="item_name">证件照片</div>
|
||
<div class="item_center" style="width: 50px;height: 100%;"><img id="myDiv" onclick="imgClick(1)" style="width: 50px;"
|
||
src="./img/scQrCode/动物检疫证.jpg"></div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">货主</div>
|
||
<div class="item_center">刘超</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">产品名称</div>
|
||
<div class="item_center">牛肉</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">产地</div>
|
||
<div class="item_center">西吉县</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">生产单位名称</div>
|
||
<div class="item_center">西吉县</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">检疫识别号</div>
|
||
<div class="item_center">宁F302</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="item_box">
|
||
<div class="item_title"><span></span><span>肉品品质检验合格证</span></div>
|
||
<ul>
|
||
<li>
|
||
<div class="item_name">证件照片</div>
|
||
<div class="item_center" style="width: 50px;height: 100%;"><img id="myDiv" onclick="imgClick(2)" style="width: 50px;"
|
||
src="./img/scQrCode/肉品品质检疫合格证.jpg"></div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">产品名称</div>
|
||
<div class="item_center">牛肉</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">生产单位</div>
|
||
<div class="item_center">西吉县肉类加工有限公司</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">生产日期</div>
|
||
<div class="item_center">2024年8月8日</div>
|
||
</li>
|
||
<li>
|
||
<div class="item_name">肉品编码</div>
|
||
<div class="item_center">宁B5</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
<script>
|
||
var imgClick = (num) => {
|
||
document.getElementById('img'+num).style.display = 'block';
|
||
}
|
||
var imgClick1 = (num) => {
|
||
document.getElementById('img'+num).style.display = 'none';
|
||
}
|
||
</script>
|
||
</html> |