Files
orico-official-website-old/app/mobile/view/antifake/anti_fake_inlet.phtml
2024-10-29 14:04:59 +08:00

91 lines
3.8 KiB
PHTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="margin-top-60"></div>
<div class="m_Container margin-top-90 overflow-h">
<div class="fake">
<div class="text_38 text_center text_black title">防伪查询</div>
</div>
<div class="fake01">
<div class="fake_content text_22 text_black">
<div class="fake_border">
<div class="margin-top-50 line-height-50 margin-bottom-48">
扫描二维码可查询到产品真伪和产品信息扫描S/N码只能查询到产品信息不能查询到产品真伪如果需要查询产品真伪建议直接扫描二维码进行查询。
</div>
</div>
</div>
</div>
</div>
<div class="fake_content">
<div class="fake_button margin-top-80 fake_button_img">
<button id="sn"><img src="__PUBLIC__/m_web/images/anti_fake/sn_code1.png"></button>
<button id="code"><img src="__PUBLIC__/m_web/images/anti_fake/anti_fake_code1.png"></button>
</div>
<!--底部-->
</div>
</body>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script>
wx.config({
debug: false,
appId: '<?php echo $singpackage["appId"];?>',
timestamp: <?php echo $singpackage["timestamp"];?>,
nonceStr: '<?php echo $singpackage["nonceStr"];?>',
signature: '<?php echo $singpackage["signature"];?>',
jsApiList: [
// 所有要调用的 API 都要加到这个列表中
"scanQRCode"
]
});
wx.ready(function () {
// 在这里调用 API
$("#sn").click(function(){
//要执行的代码写在这里
wx.scanQRCode({
needResult: 1, // 默认为0扫描结果由微信处理1则直接返回扫描结果
scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
success: function (res) {
//alert(res.resultStr);
window.location.href='anti_fake_scan_snresult?qrresult='+res.resultStr; //跳转链接
/*for(i in res ){
//alert(i); //获得属性
alert(i + "---" + res[i]); //获得属性值
}*/
//var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
}
});
});
$("#code").click(function(){
//要执行的代码写在这里
wx.scanQRCode({
needResult: 1, // 默认为0扫描结果由微信处理1则直接返回扫描结果
scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
success: function (res) {
//alert(res.resultStr);
window.location.href='anti_fake_scan_result?qrresult='+res.resultStr; //跳转链接
/* for(i in res ){
//alert(i); //获得属性
alert(i + "---" + res[i]); //获得属性值
}*/
//var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
}
});
});
});
</script>
</html>