You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
180 lines
5.7 KiB
180 lines
5.7 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
<link rel="icon" href="../favicon.ico">
|
|
<title id="sys_title">欢迎使用牛栏山二锅头防伪查询系统</title>
|
|
<script src="./jquery.min.js"></script>
|
|
<script src="../config.js"></script>
|
|
</head>
|
|
<style>
|
|
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body {
|
|
height: 100%;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
|
|
}
|
|
|
|
label {
|
|
font-weight: 700;
|
|
}
|
|
|
|
html {
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
*,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: inherit;
|
|
}
|
|
.flex-box {
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
/* Safari */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.flex-box-column {
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
/* Safari */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
.search-container {
|
|
position: relative;
|
|
width: 100vw;
|
|
min-height: 100%;
|
|
background-image: url('./img/search-bg.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
.content-block {
|
|
position: relative;
|
|
margin-top: 42vh;
|
|
width: 320px;
|
|
color: #fff;
|
|
}
|
|
.content-block .title {
|
|
font-size: 18px;
|
|
line-height: 30px;
|
|
}
|
|
.content-box {
|
|
position: relative;
|
|
top:5px;
|
|
width: 100%;
|
|
min-height: 250px;
|
|
background: #fff;
|
|
border-radius: 20px;
|
|
padding: 15px;
|
|
word-wrap:break-word;
|
|
/* font-weight: 550; */
|
|
}
|
|
.content-box .content-title {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 88px;
|
|
height: 30px;
|
|
font-weight: 550;
|
|
font-size: 14px;
|
|
line-height: 30px;
|
|
color: #000000;
|
|
vertical-align: top;
|
|
}
|
|
.content-box .content-text {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 190px;
|
|
height: 30px;
|
|
font-size: 14px;
|
|
line-height: 30px;
|
|
color: #000000;
|
|
}
|
|
.content-box .num-text {
|
|
font-size: 13px;
|
|
line-height: 30px;
|
|
color: #C02932;
|
|
}
|
|
.text-indent-1 {
|
|
text-indent:1em
|
|
}
|
|
.nla-public {
|
|
position: absolute;
|
|
right: 15px;
|
|
width: 80px;
|
|
height: 80px;
|
|
bottom: 10px;
|
|
}
|
|
</style>
|
|
<body>
|
|
<div class="search-container flex-box-column">
|
|
<div class="content-block">
|
|
|
|
<p class="title text-indent-1" id="gyhl_code"></p>
|
|
<div id="patch" class="content-box">
|
|
<!-- <img src="img/nls.jpg" class="nla-public"> -->
|
|
<label class="content-title" for="companyName">企业信息</label><br>
|
|
<label class="content-title text-indent-1" for="companyName">企业名称:</label>
|
|
<span class="content-text" id="companyName">尊敬的客户您好!</span><br>
|
|
<label class="content-title text-indent-1" for="companyAddr">企业地址:</label>
|
|
<span class="content-text" id="companyAddr">尊敬的客户您好!</span><br>
|
|
<label class="content-title" for="companyName">防伪码信息</label><br>
|
|
<label class="content-title text-indent-1" for="createTime">注册时间:</label>
|
|
<span class="content-text" id="createTime">尊敬的客户您好!</span><br>
|
|
<label class="content-title text-indent-1" for="summary">简介:</label>
|
|
<span class="content-text" id="summary">尊敬的客户您好!尊敬的客户您好!尊敬的客户您好!
|
|
尊敬的客户您好!尊敬的客户您好! 尊敬的客户您好!尊敬的客户您好!</span><br>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</body>
|
|
<script>
|
|
var SHOW_PIC_BASE_URL = config.SHOW_URL;
|
|
var SYS_TITLE = config.TITLE;
|
|
// $("#sys_title").html(SYS_TITLE)
|
|
var param = '';
|
|
var code = '';
|
|
param = window.location.href.split('?')[1] || ''
|
|
code = param.split('&')[0] || ''
|
|
$("#gyhl_code").text(code)
|
|
function checkSocureData() {
|
|
if(code)
|
|
{
|
|
$.ajax({
|
|
url: config.API_URL+"/scan/code/"+code,
|
|
type: "GET",
|
|
dataType: "json",
|
|
success: function(res) {
|
|
console.log(res.code);
|
|
if(res.code == 200)
|
|
{
|
|
$("#companyName").text(res.data.companyName)
|
|
$("#companyAddr").text(res.data.companyAddr)
|
|
$("#createTime").text(res.data.createTime)
|
|
$("#summary").text(res.data.summary)
|
|
} else {
|
|
console.log(res.msg)
|
|
}
|
|
},
|
|
error: function(err) {
|
|
console.log(err);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
checkSocureData()
|
|
</script>
|
|
</html>
|