208 lines
8.5 KiB
PHTML
Executable File
208 lines
8.5 KiB
PHTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
<title>Check Your Product</title>
|
|
{include file="include/head" /}
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/indexcss.css">
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/theme.css">
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/Anti-Fake.css">
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
|
</head>
|
|
|
|
<body class="bg-gray">
|
|
<!--top-->
|
|
<header class="header-PC header-Product">
|
|
<div id="header" class="theme-black">
|
|
{include file="include/top" /}
|
|
{include file="include/top-header" /}
|
|
</div>
|
|
</header>
|
|
{include file="include/top-header-mobile" /}
|
|
<div class="anti-fake">
|
|
<div class="anti-fake-content">
|
|
<!--切换-->
|
|
<div class="text-c tab">
|
|
<div class="fw_fw_title cursor_p fw_on" id="one">Enter Anti-counterfeiting Code</div>
|
|
<div class="fw_fw_title cursor_p" id="two">Enter S/N Code</div>
|
|
</div>
|
|
<!--内容-->
|
|
<div class="fw_01">
|
|
<div class="fw_one">
|
|
<div class="list">
|
|
<p class="img-responsive"><img src="__PUBLIC__/weben/images/Anti-Fake/fw_01.png"></p>
|
|
<p class="title">Enter Anti-counterfeiting Code</p>
|
|
<p class="sub-title">Please enter the code which below the QR code on the product
|
|
label to check the authenticity and detail.</p>
|
|
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" class="fw_form">
|
|
<p class="form-title">Anti-counterfeiting Code</p>
|
|
<p class="form-input"><input name="fake" id="sn"></p>
|
|
<!--p class="form-title">Verification Code</p>
|
|
<p class="form-input-code">
|
|
<input name="captcha">
|
|
<img id="verifyimg" src="<?php echo url('/captcha/authcode');?>" class="img-responsive verifyimg-img">
|
|
<span type="button" class="btn-primary cursor_p" id="averifyimg">Change</span>
|
|
</p-->
|
|
<p class="fw_button fw_button_one cursor_p pop_check">Check</p>
|
|
<!--提示信息弹出框-->
|
|
<div class="Popup_all" style="display: none;">
|
|
<div class="Popup">
|
|
<div class="close"><span class="cursor_p"><img
|
|
src="__PUBLIC__/weben/images/Anti-Fake/close.png"></span>
|
|
</div>
|
|
<div class="Popup_content">
|
|
<div class="title">Remind</div>
|
|
<div class="des">The anti-counterfeiting code can only be inquiry
|
|
once,
|
|
please beware of imitations if the code used a second time. Please call the hotline
|
|
400-6696-298, if any questions.</div>
|
|
|
|
<p class="text-c"><button class="fw_button fw_button_two cursor_p" type="submit">Check</button></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--报错信息弹出框-->
|
|
<div class="Popup_error" style="display: none;">
|
|
<div class="Popup">
|
|
<div class="Popup_content Popup_des">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="list">
|
|
<div class="title">Where to get the anti-counterfeiting code </div>
|
|
<div class="sub-title">The code can be seen on the label sticker.</div>
|
|
<div class="y-img"><img src="__PUBLIC__/weben/images/Anti-Fake/fake.png"></div>
|
|
<div class="sub-title">*Note: Warranty void if remove or damage the label sticker.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="fw_two" style="display: none">
|
|
<div class="list">
|
|
<p class="img-responsive"><img src="__PUBLIC__/weben/images/Anti-Fake/sn_01.png"></p>
|
|
<p class="title">Enter S/N Code</p>
|
|
<p class="sub-title">Please enter the S/N code which on the product label to check the authenticity and
|
|
detail.</p>
|
|
<form action="<?php echo url('antifake/sn_result');?>" method="post" class="fw_form"
|
|
onsubmit="return check()" ;>
|
|
<p class="form-title">S/N Code</p>
|
|
<p class="form-input"><input name="sn" id="sn"></p>
|
|
<!--p class="form-title">Verification Code</p>
|
|
<p class="form-input-code">
|
|
<input name="captcha">
|
|
<img id="verifyimg1" src="<?php echo url('/captcha/authcode');?>"
|
|
class="img-responsive verifyimg-img"><span type="button" class="btn-primary cursor_p"
|
|
id="averifyimg1">Change</span>
|
|
</p-->
|
|
<p><button class="fw_button fw_button_one cursor_p" type="submit">Check</button></p>
|
|
<!--报错信息弹出框-->
|
|
<div class="Popup_error" style="display: none;">
|
|
<div class="Popup">
|
|
<div class="Popup_content Popup_des">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="list">
|
|
<div class="title">Where to get the S/N code</div>
|
|
<div class="sub-title">S/N code can be seen on the label sticker of product</div>
|
|
<div class="y-img"><img src="__PUBLIC__/weben/images/Anti-Fake/sn_02.png"></div>
|
|
<div class="sub-title">*Note: Warranty void if remove or damage the label sticker.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
|
|
<script type="text/javascript">
|
|
/*验证码*/
|
|
$(function() {
|
|
$("#verifyimg, #averifyimg").click(function(event) {
|
|
event.preventDefault();
|
|
$img = $("#verifyimg");
|
|
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
|
|
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
|
|
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
|
|
});
|
|
});
|
|
/*验证码1*/
|
|
$(function() {
|
|
$("#verifyimg1, #averifyimg1").click(function(event) {
|
|
event.preventDefault();
|
|
$img = $("#verifyimg1");
|
|
$img = $("#verifyimg1");
|
|
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
|
|
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
|
|
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
|
|
});
|
|
}); /*切换效果*/
|
|
$(document).ready(function() {
|
|
$("#one").click(function() {
|
|
event.preventDefault();
|
|
$img = $("#verifyimg");
|
|
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
|
|
$(this).addClass("fw_on");
|
|
$(this).siblings().removeClass("fw_on");
|
|
$(".fw_one").show();
|
|
$(".fw_two").hide();
|
|
|
|
});
|
|
$("#two").click(function() {
|
|
event.preventDefault();
|
|
$img = $("#verifyimg1");
|
|
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
|
|
$(this).addClass("fw_on");
|
|
$(this).siblings().removeClass("fw_on")
|
|
$(".fw_one").hide();
|
|
$(".fw_two").show();
|
|
});
|
|
|
|
/*点击弹出效果*/
|
|
$(".Popup_all").hide();
|
|
$(".pop_check").click(function() {
|
|
var fw = $("input[name='fake'").val().length;
|
|
if (fw == 8) {
|
|
$(".Popup_all").show();
|
|
} else {
|
|
$(".Popup_des").append("<div class='des'>Please input 8-digit security code</div>")
|
|
$(".Popup_error").show();
|
|
setTimeout(() => {
|
|
$(".Popup_error").hide();
|
|
$(".Popup_des").empty();
|
|
}, 1000);
|
|
};
|
|
});
|
|
|
|
});
|
|
|
|
$(".close").click(function() {
|
|
$(".Popup_all").hide();
|
|
});
|
|
/*判断是否提交表单*/
|
|
function check() {
|
|
var sn = $("input[name='sn'").val().length;
|
|
if (sn > 16 || sn < 12) {
|
|
|
|
$(".Popup_des").append("<div class='des'>Please enter between 12 to 16 digit Sn code</div>")
|
|
$(".Popup_error").show();
|
|
setTimeout(() => {
|
|
$(".Popup_error").hide();
|
|
$(".Popup_des").empty();
|
|
}, 1000);
|
|
return false; //return false; 时,表单不提交
|
|
} else {
|
|
return true; //return true; 时,表单提交
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<!-- bottom s -->
|
|
{include file="include/bottom" /}
|
|
<!-- bottom e -->
|
|
</body>
|
|
|
|
</html>
|