diff --git a/public/config.js b/public/config.js
index 3b04765..ed9ff8e 100644
--- a/public/config.js
+++ b/public/config.js
@@ -1,5 +1,7 @@
config = {
- API_URL: 'http://fw.niulanshan.com.cn:8081',
+ // API_URL: 'http://fw.niulanshan.com.cn:8081',
+ API_URL: 'http://61.135.192.50:8082',
+
}
\ No newline at end of file
diff --git a/public/m.html b/public/m.html
index 60b0d2c..7d13d50 100644
--- a/public/m.html
+++ b/public/m.html
@@ -37,6 +37,11 @@
*:after {
box-sizing: inherit;
}
+ iframe {
+ position: absolute;
+ top: -100px;
+ left: -100px;
+ }
.flex-box {
display: -webkit-box;
display: -webkit-flex;
@@ -131,7 +136,7 @@
您查询的是由"北京顺鑫农业股份有限公司牛栏山酒厂"生产的正牌产品,请放心使用,谢谢您的查询。
- 查询次数:,首次查询时间为:
+ 查询次数:
首次查询时间为:
您所查询的商品不存在!
@@ -162,9 +167,15 @@
$("#aplayerBlock").show()
$("#gyhl_code").text(res.data.gyhl_code)
- $("#scan_count").text(res.data.scan_count)
+ if(parseInt(res.data.scan_count) > 1)
+ {
+ $("#scan_count").text(res.data.scan_count)
+ let errInfo = '
(谨防假冒!)'
+ $("#scan_count").append(errInfo)
+ } else {
+ $("#scan_count").text(res.data.scan_count)
+ }
$("#first_scan").text(res.data.first_scan)
-
let url = config.API_URL + res.data.url
$('#play1').attr('src',url)
var fry_audio=$('#play1').get('0');
@@ -235,43 +246,6 @@
window.onload=function(){
getCurrentPosition()
-
- //IP定位
- // var map = new BMap.Map("allmap");
- // var point = new BMap.Point(116.331398,39.897445);
- // map.centerAndZoom(point,12);
-
- // function myFun(result){
- // var cityName = result.name;
- // map.setCenter(cityName);
- // alert("当前定位城市:"+cityName);
- // }
- // var myCity = new BMap.LocalCity();
- // myCity.get(myFun);
-
- //浏览器定位
- // var map = new BMap.Map("allmap");
- // var point = new BMap.Point(116.331398,39.897445);
- // map.centerAndZoom(point,12);
- // var geolocation = new BMap.Geolocation();
- // geolocation.getCurrentPosition(function(r){
- // if(this.getStatus() == BMAP_STATUS_SUCCESS){
- // if(r.accuracy==null){
- // handleError(1)
- // //用户决绝地理位置授权
- // return;
- // }
- // // var mk = new BMap.Marker(r.point);
- // // map.addOverlay(mk);
- // // map.panTo(r.point);
- // // alert('您的位置:'+r.point.lng+','+r.point.lat);
- // }
- // else {
- // // alert('failed:'+this.getStatus());
- // handleError(this.getStatus())
- // }
- // },handleError);
-
}