init
This commit is contained in:
59
app/usmobile/view/antifake/anti_fake_input.phtml
Executable file
59
app/usmobile/view/antifake/anti_fake_input.phtml
Executable file
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Check Your Product</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
<div class="margin-top-90">
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<div class="query_title"><img src="__PUBLIC__/m_weben/images/anti_fake/security.png"
|
||||
class="sn_img">Anti-counterfeiting Code</div>
|
||||
</div>
|
||||
<div class="result_line"></div>
|
||||
<div class="fake_content">
|
||||
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" onsubmit="return check();">
|
||||
<div class="query_sub_title m-t-40">Anti-counterfeiting Code</div>
|
||||
<div class="query_des">
|
||||
<input placeholder="Please enter the anti-counterfeiting code" name="fake">
|
||||
</div>
|
||||
<div class="query_sub_title m-t-32">Where to get the anti-counterfeiting code</div>
|
||||
<div class="des">Anti-counterfeiting code can be seen on the label sticker of product (as is shown)</div>
|
||||
<div class="example img-responsives"><img src="__PUBLIC__/m_weben/images/anti_fake/security_code.png"></div>
|
||||
<button class="query_button" type="submit"><span class="fake_button_content">Check it</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</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>
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
<!--底部-->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user