54 lines
1.9 KiB
PHTML
Executable File
54 lines
1.9 KiB
PHTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>防伪查询入口</title>
|
|
{include file="include/head" /}
|
|
<script type="text/javascript">
|
|
var navID = "1";
|
|
</script>
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/anti-fake.css">
|
|
</head>
|
|
<body>
|
|
<div id="content">
|
|
<!--头部-->
|
|
{include file="include/top_back1" /}
|
|
|
|
<div class="m_Container margin-top-90 overflow-h">
|
|
<div class="fake">
|
|
<div class="text_38 text_center text_black title">防伪查询</div>
|
|
</div>
|
|
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" onsubmit="return check();">
|
|
<div class="fake">
|
|
<input placeholder="请输入防伪码" name="fake" class="text_28 text_left text_l_gray">
|
|
</div>
|
|
<div class="fake">
|
|
<div class="fake_content">
|
|
<p class="text_28 text_left text_black margin-top-20">如何获取防伪码</p>
|
|
<p class="text_18 text_left text_l_gray margin-top-14">防伪码在产品铭牌贴上可见(如图所示:)</p>
|
|
<p class="margin-top-50 fake_01 text_center margin-bottom-48"><img src="__PUBLIC__/m_web/images/anti_fake/anti_fake.jpg"></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="text_center">
|
|
<div class="fake_button img-responsive margin-top-80">
|
|
<button type="submit"><img src="__PUBLIC__/m_web/images/anti_fake/inquiry.png" ></button>
|
|
</div>
|
|
</form>
|
|
<!--底部-->
|
|
</div>
|
|
<script>
|
|
|
|
/*判断是否提交表单*/
|
|
function check() {
|
|
var sn = $("input[name='fake'").val().length;
|
|
if(!sn ==8){
|
|
alert('请输入8位数防伪码');
|
|
return false; //return false; 时,表单不提交
|
|
}else {
|
|
return true; //return true; 时,表单提交
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|