Commit c1bc58c0efcdc16a8243ccf04076175c0e90a8ff

Authored by liuqimichale
1 parent 3645f0c3

西城签名+混淆

js/ajax.js
1   -
2   -window.onload = function () {
3   - document.onkeydown = function () {
4   - var e = window.event || arguments[0];
5   - //屏蔽F12
6   - if (e.keyCode == 123) {
7   -
8   - return false;
9   - //屏蔽Ctrl+Shift+I
10   - } else if ((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)) {
11   -
12   - return false;
13   - //屏蔽Shift+F10
14   - } else if ((e.shiftKey) && (e.keyCode == 121)) {
15   - return false;
16   - }
17   - };
18   - //屏蔽右键单击
19   - document.oncontextmenu = function () {
20   - return false;
21   - }
22   -}
23   -
24   -var _app_id = 'ud8yq5tv0inxupc05xfeau39jywlqoj2'
25   -var jsajax = jsajax || {};
26   -//任你停赤峰
27   -jsajax.appID = 'wx945eccc8163fd75b';
28   -//获取openid
29   -jsajax.getopenid = function (code,fn) {
30   - var openid = '';
31   - var jsondata = {
32   - appId:jsajax.appID,
33   - code:code
34   - };
35   - jsajax.defaultReq(
36   - mUrl.tcgetopenid,
37   - JSON.stringify(jsondata),
38   - function(data){
39   - console.log("根据code获取openid"+JSON.stringify(data));
40   - if(data.code=='0'){
41   - openid = data.data;
42   - mUrl.SetOpenid(openid);
43   - mUrl.setApporWX('wx');
44   - console.log("用户 openid "+openid);
45   - fn(openid);
46   - }
47   - }
48   - );
49   -}
50   -//获取token
51   -jsajax.gett = function (openid,fn) {
52   - var jsondata = {
53   - openid:openid,
54   - deviceInfo:"BC0703A4-AFB0-4B51-9089-9B7487C0CC6E"
55   - }
56   - jsajax.defaultReq(
57   - mUrl.tcgettoken,
58   - JSON.stringify(jsondata),
59   - function (data) {
60   - console.log('执行获取token的接口 '+JSON.stringify(data));
61   - if(data.code==0){
62   - console.log("用户 token "+data.data.token);
63   - mUrl.SetToken(data.data.token);
64   - mUrl.SetPhone(data.data.phoneNum);
65   - fn(1);
66   - }else{
67   - fn(0);
68   - //location.href = mUrl.Uri+'/WEB-INF/pages/elsepages/common_pages/paybind.html;
69   - }
70   - }
71   - );
72   -}
73   -/*获取设备 start*/
74   -
75   -jsajax.setstyle = function(){
76   -
77   - var pt = '';
78   - if(mUrl.getApporWX()&&mUrl.getApporWX()!=''){
79   - pt = mUrl.getApporWX();
80   - }
81   -// alert('clapntemp_获取到用户openid'+mUrl.getApporWX());
82   -
83   - if(pt!=''){
84   - if(pt=='iosapp'||pt=='andriodapp'){
85   - if($('.qihuan')){
86   - $('.qihuan').addClass('iosapp');
87   - }
88   -
89   - }
90   - }
91   - console.log('执行米 '+pt);
92   -}
93   -jsajax.setstyle();
94   -
95   -
96   -
97   -/*根据不同的类型加载不同的文件 start*/
98   -jsajax.dynamicLoading = {
99   - css: function(path){
100   - if(!path || path.length === 0){
101   - throw new Error('argument "path" is required !');
102   - }
103   - var head = document.getElementsByTagName('head')[0];
104   - var link = document.createElement('link');
105   - link.href = path;
106   - link.rel = 'stylesheet';
107   - link.type = 'text/css';
108   - head.appendChild(link);
109   - },
110   - js: function(path){
111   - if(!path || path.length === 0){
112   - throw new Error('argument "path" is required !');
113   - }
114   - var head = document.getElementsByTagName('head')[0];
115   - var script = document.createElement('script');
116   - script.src = path;
117   - script.type = 'text/javascript';
118   - head.appendChild(script);
119   - }
120   -}
121   -
122   -jsajax.setcss = function(strpath){
123   - var wxorapp = mUrl.getApporWX();
124   - console.log('这里先获取 '+wxorapp);
125   - if(wxorapp){
126   - if(wxorapp!='wx'){
127   - console.log('不是微信微信');
128   - if(strpath){
129   - jsajax.dynamicLoading.css(strpath);
130   - }
131   -
132   - }else{
133   - //jsajax.dynamicLoading.css("n1.css");
134   - //console.log('dengyu微信');
135   - }
136   - }else{
137   - jsajax.dynamicLoading.css(strpath);
138   - }
139   -};
140   -
141   -/* 默认请求*/
142   -jsajax.defaultReq=function(url, data, successfn,errorfn) {
143   - data = (data==null || data=="" || typeof(data)=="undefined")? {"date": new Date().getTime()} : data;
144   - $.ajax({
145   - type: "post",
146   - data: data,
147   - url: url,
148   - dataType: "json",
149   - contentType:'application/json;charset=utf-8',
150   - beforeSend:function(xhr){},
151   - success: function(d){
152   - successfn(d);
153   - },
154   - error: function(e){
155   - //alert(JSON.stringify(e));
156   - console.log(JSON.stringify(e));
157   - if (typeof (errorfn) != "undefined") {
158   - errorfn(JSON.stringify(e));
159   - }
160   - },
161   - complete:function (e) {}
162   - });
163   -}
164   -/* 车牌号校验.<br/>*/
165   -jsajax.isVehicleNumber=function(vehicleNumber){
166   - var result = false;
167   - if (vehicleNumber.length == 7){
168   - var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/;
169   - result = express.test(vehicleNumber);
170   - }
171   - return result;
172   -}
173   -
174   -//获取签名
175   -jsajax.getsign = function(objb){
176   - var compare = function (obj1, obj2) {
177   - var val1 = obj1.keyname;
178   - var val2 = obj2.keyname;
179   - if (val1 < val2) {
180   - return -1;
181   - } else if (val1 > val2) {
182   - return 1;
183   - } else {
184   - return 0;
185   - }
186   - }
187   - objb.sort(compare);
188   - var strmd5 = '14318527b13840c2a4af63fef52c2d6e';
189   - for(var i=0;i<objb.length;i++){
190   - if(objb[i].value != null&&objb[i].value != ''){
191   - strmd5 += objb[i].keyname+objb[i].value;
192   - }
193   - }
194   - strmd5 += '14318527b13840c2a4af63fef52c2d6e';
195   - console.log('strmd5-------->'+strmd5);
196   - strmd5 = md5(strmd5);
197   - strmd5=strmd5.toUpperCase();
198   - return strmd5;
199   -}
200   -//获取盐值
201   -jsajax.salt=function(a){
202   - var len = parseInt(a);
203   - var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';
204   - var maxPos = $chars.length;
205   - var pwd = '';
206   -   for (var i = 0; i < len; i++) {
207   -       pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
208   -   }
209   - console.log(pwd);
210   -   return pwd;
211   -}
212   -
213   -//金额转换(分转化成元)
214   -jsajax.fenToYuan=function(fen){
215   - if( fen == null || fen.length<=0 || isNaN(fen) == true){
216   - return "";
217   - }
218   - var yuan = Math.round(fen);
219   - yuan = yuan.toString();
220   - var before = yuan.substr(0, yuan.length - 2);
221   -
222   - var end = yuan.substr(yuan.length - 2, 2);
223   - before = before.toString();
224   - end = end.toString();
225   - if(before==''){
226   - before = '0';
227   - }
228   - if(fen<10){
229   - end = '0'+end;
230   - }
231   - yuan = before + "." + end;
232   - var re = /(-?\d+)(\d{3})/;
233   - while (re.test(yuan)) {
234   - yuan = yuan.replace(re, "$1,$2")
235   - }
236   - return yuan;
237   -}
238   -function isAndroidorios(fn){
239   - var u = navigator.userAgent, app = navigator.appVersion;
240   - var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
241   - var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
242   - isAndroid==true?true:false;
243   - var jixing = '';
244   - if(isAndroid){jixing = 'android';}else if(isiOS){
245   - jixing = 'ios';
246   - }
247   - fn(jixing);
248   -}
249   -//时间转化 秒转分
250   -jsajax.formatSeconds = function (value) {
251   - var theTime = parseInt(value);// 秒
252   - var theTime1 = 0;// 分
253   - var theTime2 = 0;// 小时
254   - var result = '';
255   - var day = parseInt(theTime/(60*60*24));
256   - var hours = parseInt(theTime/(60*60) - day*24);
257   - var fen = parseInt(theTime/60 -hours*60 - day*24*60);
258   - var senc = parseInt(theTime -fen*60 -hours*60*60 - day*24*60*60);
259   - if(day>0){result +=day+'天';}
260   - if(hours>0){result +=hours+'小时';}
261   - if(fen>0){result +=fen+'分';}
262   - if(senc>0){result +=senc+'秒';}
263   - return result;
264   -}
265   -
266   -jsajax.fStohours = function (value) {
267   - var theTime = parseInt(value);// 秒
268   - var theTime1 = 0;// 分
269   - var theTime2 = 0;// 小时
270   - if(theTime > 60) {
271   - theTime1 = parseInt(theTime/60);
272   - theTime = parseInt(theTime%60);
273   - if(theTime1 > 60) {
274   - theTime2 = parseInt(theTime1/60);
275   - theTime1 = parseInt(theTime1%60);
276   - }
277   - }
278   - var result = "";//+parseInt(theTime)+"秒";
279   - if(theTime1 > 0) {
280   - result = ""+parseInt(theTime1)+"分"+result;
281   - }
282   - if(theTime2 > 0) {
283   - result = ""+parseInt(theTime2)+"小时"+result;
284   - }
285   - return result;
286   -}
287   -//为Date类型拓展一个format方法,用于格式化日期
288   -Date.prototype.format = function (format) //author: meizz
289   -{
290   - var o = {
291   - "M+": this.getMonth() + 1, //month
292   - "d+": this.getDate(), //day
293   - "h+": this.getHours(), //hour
294   - "m+": this.getMinutes(), //minute
295   - "s+": this.getSeconds(), //second
296   - "q+": Math.floor((this.getMonth() + 3) / 3), //quarter
297   - "S": this.getMilliseconds() //millisecond
298   - };
299   - if (/(y+)/.test(format))
300   - format = format.replace(RegExp.$1,
301   - (this.getFullYear() + "").substr(4 - RegExp.$1.length));
302   - for (var k in o)
303   - if (new RegExp("(" + k + ")").test(format))
304   - format = format.replace(RegExp.$1,
305   - RegExp.$1.length == 1 ? o[k] :
306   - ("00" + o[k]).substr(("" + o[k]).length));
307   - return format;
308   -};
309   -
310   -//时间格式的返回
311   -Date.prototype.toLocaleString = function() {
312   - var se = this.getSeconds();
313   - var fz = this.getMinutes();
314   - if(se>=0&&se<=9){
315   - se = '0'+se;
316   - }
317   - if(fz>=0&&fz<=9){
318   - fz = '0'+fz;
319   - }
320   - return this.getFullYear() + "/" + (this.getMonth() + 1) + "/" + this.getDate() + " " + this.getHours() + ":" + fz + ":" + se;
321   -};
  1 +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5 28(a){j d,e,f,b=1f.27;1f.29,d=b.1g("2a")>-1||b.1g("2b")>-1,e=!!b.26(/\\(i[^;]+;( U;)? 25.+20 1Z X/),f="",d?f="21":e&&(f="22"),a(f)}j 1d,6;1h.23=5(){w.2c=5(){j a=1h.2d||2l[0];o 2m==a.P?!1:a.2n&&a.1e&&2o==a.P?!1:a.1e&&2k==a.P?!1:2j 0},w.2f=5(){o!1}},1d="2e",6=6||{},6.19="2g",6.2h=5(a,b){j c="",d={1Y:6.19,J:a};6.T(r.2p,v.x(d),5(a){t.u("根据J获取12"+v.x(a)),"0"==a.J&&(c=a.B,r.1T(c),r.1G("1s"),t.u("用户 12 "+c),b(c))})},6.1F=5(a,b){j c={12:a,1H:"1I-1E-1K-1B-1D"};6.T(r.1C,v.x(c),5(a){t.u("执行获取K的接口 "+v.x(a)),0==a.J?(t.u("用户 K "+a.B.K),r.1J(a.B.K),r.1L(a.B.1U),b(1)):b(0)})},6.1c=5(){j a="";r.D()&&""!=r.D()&&(a=r.D()),""!=a&&("1b"==a||"1V"==a)&&$(".1a")&&$(".1a").1W("1b"),t.u("执行米 "+a)},6.1c(),6.R={E:5(a){j b,c;L(!a||0===a.p)1i H 1j(\'1p "1q" 18 1r !\');b=w.1o("1n")[0],c=w.1k("1R"),c.1N=a,c.1M="1O",c.W="1l/E",b.1m(c)},1P:5(a){j b,c;L(!a||0===a.p)1i H 1j(\'1p "1q" 18 1r !\');b=w.1o("1n")[0],c=w.1k("2R"),c.2P=a,c.W="1l/2M",b.1m(c)}},6.2S=5(a){j b=r.D();t.u("这里先获取 "+b),b?"1s"!=b&&(t.u("不是微信微信"),a&&6.R.E(a)):6.R.E(a)},6.T=5(a,b,c,d){b=V==b||""==b||"17"==16 b?{2I:(H 11).2J()}:b,$.2w({W:"2y",B:b,2v:a,2u:"1t",2r:"2s/1t;2t=2z-8",2G:5(){},2H:5(a){c(a)},2F:5(a){t.u(v.x(a)),"17"!=16 d&&d(v.x(a))},2B:5(){}})},6.2A=5(a){j c,b=!1;o 7==a.p&&(c=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-15-9]{4}[A-15-9挂学警港澳]{1}$/,b=c.C(a)),b},6.2x=5(a){j c,d,b=5(a,b){j c=a.O,d=b.O;o d>c?-1:c>d?1:0};G(a.2V(b),c="14",d=0;d<a.p;d++)V!=a[d].N&&""!=a[d].N&&(c+=a[d].O+a[d].N);o c+="14",t.u("2O-------->"+c),c=2Q(c),c=c.2K()},6.2L=5(a){j f,b=n(a),c="2Z",d=c.p,e="";G(f=0;b>f;f++)e+=c.2U(F.1z(F.1Q()*d));o t.u(e),e},6.2N=5(a){j b,c,d,e;L(V==a||a.p<=0||1==2Y(a))o"";G(b=F.2W(a),b=b.13(),c=b.I(0,b.p-2),d=b.I(b.p-2,2),c=c.13(),d=d.13(),""==c&&(c="0"),10>a&&(d="0"+d),b=c+"."+d,e=/(-?\\d+)(\\d{3})/;e.C(b);)b=b.Y(e,"$1,$2");o b},6.2D=5(a){j b=n(a),e="",f=n(b/2C),g=n(b/2E-24*f),h=n(b/k-k*g-k*24*f),i=n(b-k*h-k*k*g-k*k*24*f);o f>0&&(e+=f+"天"),g>0&&(e+=g+"小时"),h>0&&(e+=h+"分"),i>0&&(e+=i+"秒"),e},6.2T=5(a){j e,b=n(a),c=0,d=0;o b>k&&(c=n(b/k),b=n(b%k),c>k&&(d=n(c/k),c=n(c%k))),e="",c>0&&(e=""+n(c)+"分"+e),d>0&&(e=""+n(d)+"小时"+e),e},11.1v.2X=5(a){j c,b={"M+":l.Q()+1,"d+":l.1A(),"h+":l.1u(),"m+":l.1x(),"s+":l.1y(),"q+":F.1z((l.Q()+3)/3),S:l.2i()};/(y+)/.C(a)&&(a=a.Y(z.$1,(l.1w()+"").I(4-z.$1.p)));G(c 2q b)H z("("+c+")").C(a)&&(a=a.Y(z.$1,1==z.$1.p?b[c]:("1S"+b[c]).I((""+b[c]).p)));o a},11.1v.1X=5(){j a=l.1y(),b=l.1x();o a>=0&&9>=a&&(a="0"+a),b>=0&&9>=b&&(b="0"+b),l.1w()+"/"+(l.Q()+1)+"/"+l.1A()+" "+l.1u()+":"+b+":"+a};',62,186,'|||||function|jsajax|||||||||||||var|60|this||parseInt|return|length||mUrl||console|log|JSON|document|stringify||RegExp||data|test|getApporWX|css|Math|for|new|substr|code|token|if||value|keyname|keyCode|getMonth|dynamicLoading||defaultReq||null|type||replace|||Date|openid|toString|14318527b13840c2a4af63fef52c2d6e|Z0|typeof|undefined|is|appID|qihuan|iosapp|setstyle|_app_id|shiftKey|navigator|indexOf|window|throw|Error|createElement|text|appendChild|head|getElementsByTagName|argument|path|required|wx|json|getHours|prototype|getFullYear|getMinutes|getSeconds|floor|getDate|9089|tcgettoken|9B7487C0CC6E|AFB0|gett|setApporWX|deviceInfo|BC0703A4|SetToken|4B51|SetPhone|rel|href|stylesheet|js|random|link|00|SetOpenid|phoneNum|andriodapp|addClass|toLocaleString|appId|OS|Mac|android|ios|onload||CPU|match|userAgent|isAndroidorios|appVersion|Android|Linux|onkeydown|event|ud8yq5tv0inxupc05xfeau39jywlqoj2|oncontextmenu|wx945eccc8163fd75b|getopenid|getMilliseconds|void|121|arguments|123|ctrlKey|73|tcgetopenid|in|contentType|application|charset|dataType|url|ajax|getsign|post|utf|isVehicleNumber|complete|86400|formatSeconds|3600|error|beforeSend|success|date|getTime|toUpperCase|salt|javascript|fenToYuan|strmd5|src|md5|script|setcss|fStohours|charAt|sort|round|format|isNaN|ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'.split('|'),0,{}))
... ...
js/ajax_back.js 0 → 100644
  1 +
  2 +window.onload = function () {
  3 + document.onkeydown = function () {
  4 + var e = window.event || arguments[0];
  5 + //屏蔽F12
  6 + if (e.keyCode == 123) {
  7 +
  8 + return false;
  9 + //屏蔽Ctrl+Shift+I
  10 + } else if ((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)) {
  11 +
  12 + return false;
  13 + //屏蔽Shift+F10
  14 + } else if ((e.shiftKey) && (e.keyCode == 121)) {
  15 + return false;
  16 + }
  17 + };
  18 + //屏蔽右键单击
  19 + document.oncontextmenu = function () {
  20 + return false;
  21 + }
  22 +}
  23 +
  24 +var _app_id = 'ud8yq5tv0inxupc05xfeau39jywlqoj2'
  25 +var jsajax = jsajax || {};
  26 +//任你停赤峰
  27 +jsajax.appID = 'wx945eccc8163fd75b';
  28 +//获取openid
  29 +jsajax.getopenid = function (code,fn) {
  30 + var openid = '';
  31 + var jsondata = {
  32 + appId:jsajax.appID,
  33 + code:code
  34 + };
  35 + jsajax.defaultReq(
  36 + mUrl.tcgetopenid,
  37 + JSON.stringify(jsondata),
  38 + function(data){
  39 + console.log("根据code获取openid"+JSON.stringify(data));
  40 + if(data.code=='0'){
  41 + openid = data.data;
  42 + mUrl.SetOpenid(openid);
  43 + mUrl.setApporWX('wx');
  44 + console.log("用户 openid "+openid);
  45 + fn(openid);
  46 + }
  47 + }
  48 + );
  49 +}
  50 +//获取token
  51 +jsajax.gett = function (openid,fn) {
  52 + var jsondata = {
  53 + openid:openid,
  54 + deviceInfo:"BC0703A4-AFB0-4B51-9089-9B7487C0CC6E"
  55 + }
  56 + jsajax.defaultReq(
  57 + mUrl.tcgettoken,
  58 + JSON.stringify(jsondata),
  59 + function (data) {
  60 + console.log('执行获取token的接口 '+JSON.stringify(data));
  61 + if(data.code==0){
  62 + console.log("用户 token "+data.data.token);
  63 + mUrl.SetToken(data.data.token);
  64 + mUrl.SetPhone(data.data.phoneNum);
  65 + fn(1);
  66 + }else{
  67 + fn(0);
  68 + //location.href = mUrl.Uri+'/WEB-INF/pages/elsepages/common_pages/paybind.html;
  69 + }
  70 + }
  71 + );
  72 +}
  73 +/*获取设备 start*/
  74 +
  75 +jsajax.setstyle = function(){
  76 +
  77 + var pt = '';
  78 + if(mUrl.getApporWX()&&mUrl.getApporWX()!=''){
  79 + pt = mUrl.getApporWX();
  80 + }
  81 + // alert('clapntemp_获取到用户openid'+mUrl.getApporWX());
  82 +
  83 + if(pt!=''){
  84 + if(pt=='iosapp'||pt=='andriodapp'){
  85 + if($('.qihuan')){
  86 + $('.qihuan').addClass('iosapp');
  87 + }
  88 +
  89 + }
  90 + }
  91 + console.log('执行米 '+pt);
  92 +}
  93 +jsajax.setstyle();
  94 +
  95 +
  96 +
  97 +/*根据不同的类型加载不同的文件 start*/
  98 +jsajax.dynamicLoading = {
  99 + css: function(path){
  100 + if(!path || path.length === 0){
  101 + throw new Error('argument "path" is required !');
  102 + }
  103 + var head = document.getElementsByTagName('head')[0];
  104 + var link = document.createElement('link');
  105 + link.href = path;
  106 + link.rel = 'stylesheet';
  107 + link.type = 'text/css';
  108 + head.appendChild(link);
  109 + },
  110 + js: function(path){
  111 + if(!path || path.length === 0){
  112 + throw new Error('argument "path" is required !');
  113 + }
  114 + var head = document.getElementsByTagName('head')[0];
  115 + var script = document.createElement('script');
  116 + script.src = path;
  117 + script.type = 'text/javascript';
  118 + head.appendChild(script);
  119 + }
  120 +}
  121 +
  122 +jsajax.setcss = function(strpath){
  123 + var wxorapp = mUrl.getApporWX();
  124 + console.log('这里先获取 '+wxorapp);
  125 + if(wxorapp){
  126 + if(wxorapp!='wx'){
  127 + console.log('不是微信微信');
  128 + if(strpath){
  129 + jsajax.dynamicLoading.css(strpath);
  130 + }
  131 +
  132 + }else{
  133 + //jsajax.dynamicLoading.css("n1.css");
  134 + //console.log('dengyu微信');
  135 + }
  136 + }else{
  137 + jsajax.dynamicLoading.css(strpath);
  138 + }
  139 +};
  140 +
  141 +/* 默认请求*/
  142 +jsajax.defaultReq=function(url, data, successfn,errorfn) {
  143 + data = (data==null || data=="" || typeof(data)=="undefined")? {"date": new Date().getTime()} : data;
  144 + $.ajax({
  145 + type: "post",
  146 + data: data,
  147 + url: url,
  148 + dataType: "json",
  149 + contentType:'application/json;charset=utf-8',
  150 + beforeSend:function(xhr){},
  151 + success: function(d){
  152 + successfn(d);
  153 + },
  154 + error: function(e){
  155 + //alert(JSON.stringify(e));
  156 + console.log(JSON.stringify(e));
  157 + if (typeof (errorfn) != "undefined") {
  158 + errorfn(JSON.stringify(e));
  159 + }
  160 + },
  161 + complete:function (e) {}
  162 + });
  163 +}
  164 +/* 车牌号校验.<br/>*/
  165 +jsajax.isVehicleNumber=function(vehicleNumber){
  166 + var result = false;
  167 + if (vehicleNumber.length == 7){
  168 + var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/;
  169 + result = express.test(vehicleNumber);
  170 + }
  171 + return result;
  172 +}
  173 +
  174 +//获取签名
  175 +jsajax.getsign = function(objb){
  176 + var compare = function (obj1, obj2) {
  177 + var val1 = obj1.keyname;
  178 + var val2 = obj2.keyname;
  179 + if (val1 < val2) {
  180 + return -1;
  181 + } else if (val1 > val2) {
  182 + return 1;
  183 + } else {
  184 + return 0;
  185 + }
  186 + }
  187 + objb.sort(compare);
  188 + var strmd5 = '14318527b13840c2a4af63fef52c2d6e';
  189 + for(var i=0;i<objb.length;i++){
  190 + if(objb[i].value != null&&objb[i].value != ''){
  191 + strmd5 += objb[i].keyname+objb[i].value;
  192 + }
  193 + }
  194 + strmd5 += '14318527b13840c2a4af63fef52c2d6e';
  195 + console.log('strmd5-------->'+strmd5);
  196 + strmd5 = md5(strmd5);
  197 + strmd5=strmd5.toUpperCase();
  198 + return strmd5;
  199 +}
  200 +//获取盐值
  201 +jsajax.salt=function(a){
  202 + var len = parseInt(a);
  203 + var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';
  204 + var maxPos = $chars.length;
  205 + var pwd = '';
  206 + for (var i = 0; i < len; i++) {
  207 + pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
  208 + }
  209 + console.log(pwd);
  210 + return pwd;
  211 +}
  212 +
  213 +//金额转换(分转化成元)
  214 +jsajax.fenToYuan=function(fen){
  215 + if( fen == null || fen.length<=0 || isNaN(fen) == true){
  216 + return "";
  217 + }
  218 + var yuan = Math.round(fen);
  219 + yuan = yuan.toString();
  220 + var before = yuan.substr(0, yuan.length - 2);
  221 +
  222 + var end = yuan.substr(yuan.length - 2, 2);
  223 + before = before.toString();
  224 + end = end.toString();
  225 + if(before==''){
  226 + before = '0';
  227 + }
  228 + if(fen<10){
  229 + end = '0'+end;
  230 + }
  231 + yuan = before + "." + end;
  232 + var re = /(-?\d+)(\d{3})/;
  233 + while (re.test(yuan)) {
  234 + yuan = yuan.replace(re, "$1,$2")
  235 + }
  236 + return yuan;
  237 +}
  238 +function isAndroidorios(fn){
  239 + var u = navigator.userAgent, app = navigator.appVersion;
  240 + var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
  241 + var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
  242 + isAndroid==true?true:false;
  243 + var jixing = '';
  244 + if(isAndroid){jixing = 'android';}else if(isiOS){
  245 + jixing = 'ios';
  246 + }
  247 + fn(jixing);
  248 +}
  249 +//时间转化 秒转分
  250 +jsajax.formatSeconds = function (value) {
  251 + var theTime = parseInt(value);// 秒
  252 + var theTime1 = 0;// 分
  253 + var theTime2 = 0;// 小时
  254 + var result = '';
  255 + var day = parseInt(theTime/(60*60*24));
  256 + var hours = parseInt(theTime/(60*60) - day*24);
  257 + var fen = parseInt(theTime/60 -hours*60 - day*24*60);
  258 + var senc = parseInt(theTime -fen*60 -hours*60*60 - day*24*60*60);
  259 + if(day>0){result +=day+'天';}
  260 + if(hours>0){result +=hours+'小时';}
  261 + if(fen>0){result +=fen+'分';}
  262 + if(senc>0){result +=senc+'秒';}
  263 + return result;
  264 +}
  265 +
  266 +jsajax.fStohours = function (value) {
  267 + var theTime = parseInt(value);// 秒
  268 + var theTime1 = 0;// 分
  269 + var theTime2 = 0;// 小时
  270 + if(theTime > 60) {
  271 + theTime1 = parseInt(theTime/60);
  272 + theTime = parseInt(theTime%60);
  273 + if(theTime1 > 60) {
  274 + theTime2 = parseInt(theTime1/60);
  275 + theTime1 = parseInt(theTime1%60);
  276 + }
  277 + }
  278 + var result = "";//+parseInt(theTime)+"秒";
  279 + if(theTime1 > 0) {
  280 + result = ""+parseInt(theTime1)+"分"+result;
  281 + }
  282 + if(theTime2 > 0) {
  283 + result = ""+parseInt(theTime2)+"小时"+result;
  284 + }
  285 + return result;
  286 +}
  287 +//为Date类型拓展一个format方法,用于格式化日期
  288 +Date.prototype.format = function (format) //author: meizz
  289 +{
  290 + var o = {
  291 + "M+": this.getMonth() + 1, //month
  292 + "d+": this.getDate(), //day
  293 + "h+": this.getHours(), //hour
  294 + "m+": this.getMinutes(), //minute
  295 + "s+": this.getSeconds(), //second
  296 + "q+": Math.floor((this.getMonth() + 3) / 3), //quarter
  297 + "S": this.getMilliseconds() //millisecond
  298 + };
  299 + if (/(y+)/.test(format))
  300 + format = format.replace(RegExp.$1,
  301 + (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  302 + for (var k in o)
  303 + if (new RegExp("(" + k + ")").test(format))
  304 + format = format.replace(RegExp.$1,
  305 + RegExp.$1.length == 1 ? o[k] :
  306 + ("00" + o[k]).substr(("" + o[k]).length));
  307 + return format;
  308 +};
  309 +
  310 +//时间格式的返回
  311 +Date.prototype.toLocaleString = function() {
  312 + var se = this.getSeconds();
  313 + var fz = this.getMinutes();
  314 + if(se>=0&&se<=9){
  315 + se = '0'+se;
  316 + }
  317 + if(fz>=0&&fz<=9){
  318 + fz = '0'+fz;
  319 + }
  320 + return this.getFullYear() + "/" + (this.getMonth() + 1) + "/" + this.getDate() + " " + this.getHours() + ":" + fz + ":" + se;
  321 +};
... ...
js/config.js
... ... @@ -7,11 +7,10 @@ window.webAppH5 = {};
7 7  
8 8  
9 9 /*服务器地址*/
10   -//
11   -// http://pay.service.huangshiparking.com
12   -// var webAppRoot = "http://pay.service.renniting.cn/v1";
  10 +
  11 + var webAppRoot = "http://pay.service.renniting.cn/v1";
13 12 //test 测试环境
14   -var webAppRoot = "http://39.98.54.240:8090";
  13 +// var webAppRoot = "http://39.98.54.240:8090";
15 14 //微信支付结果回调地址
16 15 var webAppPayResult = "http://wxgzh.renniting.cn/xcscan/PDA-Payment/wxpayResult.html";
17 16  
... ... @@ -56,54 +55,6 @@ webAppH5.zeroPayServer = &quot;/appAccountPay/zeroPay&quot;;
56 55  
57 56  
58 57  
59   -
60   -
61   -
62   -
63   -/*入场参数*/
64   -//测试地址
65   -//http://localhost:18879/page/in.html?plNo=P11011700C&parkingId=1&channelId=172198242&direction=0&codeType=0&expireDate=expireDate&extendData=extendData
66   -//channelId=172198242 [入场设备号]
67   -//webAppH5.appIn = {
68   -// /*入场设备号*/
69   -// channelId: '172198242',
70   -// /*入:0,1:出*/
71   -// direction: 0
72   -//}
73   -
74   -/*出场参数*/
75   -//测试地址
76   -//http://localhost:18879/page/out.html?plNo=P11011700C&parkingId=1&channelId=172198243&direction=1&codeType=0&expireDate=expireDate&extendData=extendData
77   -//channelId=172198243 [出场设备号]
78   -//direction=0 [通行方向 入:0,1:出 必填]
79   -//webAppH5.appOut = {
80   -// /*出场设备号*/
81   -// channelId: '172198243',
82   -// /*入:0,1:出*/
83   -// direction:1
84   -//}
85   -
86   -//小票二维码出场
87   -//http://39.98.54.240/codepay/index.html?appid=0&lotId=1&payConfigId=2&receiptNo=3
88   -//http://localhost:1260/codepay/index.html?appid=0&lotId=1&payConfigId=2&receiptNo=3
89   -
90   -
91   -//首页
92   -//进出场标识>>>>>>>>>>direction=0 [通行方向 入:0,1:出 必填]
93   -//测试服务器进场首页
94   -//http://39.98.54.240/codepay/index.html?plNo=P11011700C&parkingId=1&channelId=172198242&direction=0&codeType=0&expireDate=expireDate&extendData=extendData
95   -
96   -//测试服务器出场首页
97   -//http://39.98.54.240/codepay/index.html?plNo=P11011700C&parkingId=1&channelId=172198243&direction=1&codeType=0&expireDate=expireDate&extendData=extendData
98   -
99   -
100   -
101   -//测试支付[任你停测试-首页-停车记录(停车列表车牌号,再找到对应停车场编号)]
102   -//http://test.renniting.cn/parking/admin/SubMenus/allparkrecords.html
103   -
104   -//http://localhost:1260/pay.html?orderId=101526715300086198272&parkName=%E9%9D%99%E9%9B%85%E5%9C%B0%E4%B8%8A&parkCode=B1504020C7&inparktime=2018-12-24%2010%3A58%3A24&outtime=2018-12-24%2011%3A05%3A10&staytime=420&due=70&paid=0&orderTotalFee=70&orderFee=7&discountFee=63&plateno=%E8%92%99DTK366&outPayOrderNo=B1504020C720181224110510813DTK366-172192102&appOrderTimeout=%E8%AF%B7%E5%9C%A8%E6%94%AF%E4%BB%98%E5%AE%8C%E6%88%9010%E5%88%86%E9%92%9F%E5%86%85%E5%87%BA%E5%9C%BA%EF%BC%8C%E5%A6%82%E8%B6%85%E6%97%B6%E6%9C%AA%E5%87%BA%E5%9C%BA%EF%BC%8C%E4%BC%9A%E7%BB%A7%E7%BB%AD%E8%AE%A1%E8%B4%B9%E3%80%82&discountDesc=1%E6%8A%98%E4%BC%98%E6%83%A0&queryOrderInfo=%7B%22app_id%22%3A%221%22%2C%22carNumber%22%3A%22%E8%92%99DTK366%22%2C%22channelId%22%3A%22172192102%22%2C%22codeType%22%3A0%2C%22deviceInfo%22%3A%223%22%2C%22direction%22%3A1%2C%22parkingId%22%3A%22B1504020C7%22%2C%22plNo%22%3A%22B1504020C7%22%2C%22salt%22%3A%222%22%2C%22sign%22%3A%224%22%2C%22sign_type%22%3A%22md5%22%2C%22terminalSource%22%3A%227%22%2C%22token%22%3A%22666%22%7D&needPay=true
105   -
106   -
107 58 function IsWeixinOrAlipay(){
108 59 //
109 60 // var ua = window.navigator.userAgent;
... ...
js/url.js
... ... @@ -87,14 +87,10 @@ mUrl.getJx = function(){
87 87  
88 88 /*end*/
89 89  
90   -var cepath = 'http://39.98.54.240:8090';
91   -
92   -// var cepath = 'http://pay.service.renniting.cn/v1';
93   -// http://pay.service.renniting.cn
94   -// var cepath = 'http://39.98.54.240:8090'
95   -// http://app.api.dyszt.com:8090
96   -// var cepath = 'http://app.api.dyszt.com:8090';
97   -// https://pay.service.rnting.com//'http://47.96.41.38:8090';
  90 +// var cepath = 'http://39.98.54.240:8090';
  91 +
  92 +var cepath = 'http://pay.service.renniting.cn/v1';
  93 +
98 94 /*----------------------------------------------登录登出绑定手机号 start*/
99 95 //发送验证码
100 96 mUrl.sendRandCode = cepath + '/user/sendverificode';//webPath + '/binding/sendRandCode'+mUrl.getCommonParam();
... ...
list.html
... ... @@ -10,9 +10,7 @@
10 10 <meta name="apple-mobile-web-app-capable" content="yes"/>
11 11 <meta name="apple-mobile-web-app-title" content="">
12 12 <meta name="google" value="notranslate"><!-- 禁止Chrome 浏览器中自动提示翻译 -->
13   - <link rel="apple-touch-icon-precomposed" href="favicon.ico">
14   - <link rel="shortcut icon" href="favicon.ico">
15   - <link rel="Bookmark" href="favicon.ico">
  13 +
16 14 <meta http-equiv="Pragma" content="no-cache" />
17 15  
18 16 <meta http-equiv="Expires" content="0" />
... ... @@ -183,7 +181,7 @@
183 181 </style>
184 182 </head>
185 183 <body ontouchstart="">
186   -<!--<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center">48小时限时补缴优惠</div>-->
  184 +<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center"></div>
187 185 <div id="pay_listcont">
188 186  
189 187 </div>
... ... @@ -205,15 +203,15 @@
205 203 </div>
206 204 </div>
207 205  
208   -<div class="strTip" id="strTip">
209   - <div class="strWrap">
210   - <div class="header-title">车牌号码确认信息提示</div>
211   - <div style="font-size: 13px;color: #333;padding: 15px 0;">请确认您当前缴费的车牌号码</div>
212   - <div class="strCon"><span class="payCarNum" id="payCarNum"></span></div>
213   - <div class="btn hiddenBtn" style="margin: 15px 0">是我的车,去支付</div>
214   - <div class="btn outBtn">不是我的车,手动输入车牌号</div>
215   - </div>
216   -</div>
  206 +<!--<div class="strTip" id="strTip">-->
  207 +<!--<div class="strWrap">-->
  208 +<!--<div class="header-title">车牌号码确认信息提示</div>-->
  209 +<!--<div style="font-size: 13px;color: #333;padding: 15px 0;">请确认您当前缴费的车牌号码</div>-->
  210 +<!--<div class="strCon"><span class="payCarNum" id="payCarNum"></span></div>-->
  211 +<!--<div class="btn hiddenBtn" style="margin: 15px 0">是我的车,去支付</div>-->
  212 +<!--<div class="btn outBtn">不是我的车,手动输入车牌号</div>-->
  213 +<!--</div>-->
  214 +<!--</div>-->
217 215  
218 216  
219 217  
... ... @@ -224,26 +222,26 @@
224 222  
225 223 <script src="js/md5.min.js"></script>
226 224  
227   -<script src="js/url.js?u=1.11"></script>
228   -<script src="js/ajax.js"></script>
  225 +<script src="js/url.js?a=2.11"></script>
  226 +<script src="js/ajax.js?a=44"></script>
229 227 <script type="text/javascript">
230 228 //微信浏览器中,aler弹框不显示域名
231 229 (function(){
232   - //先判断是否为微信浏览器
233   - var ua = window.navigator.userAgent.toLowerCase();
234   - if (ua.match(/MicroMessenger/i) == 'micromessenger') {
235   - //重写alert方法,alert()方法重写,不能传多余参数
236   - window.alert = function(name){
237   - var iframe = document.createElement("IFRAME");
238   - iframe.style.display="none";
239   - iframe.setAttribute("src", 'data:text/plain');
240   - document.documentElement.appendChild(iframe);
241   - window.frames[0].window.alert(name);
242   - iframe.parentNode.removeChild(iframe);
  230 + //先判断是否为微信浏览器
  231 + var ua = window.navigator.userAgent.toLowerCase();
  232 + if (ua.match(/MicroMessenger/i) == 'micromessenger') {
  233 + //重写alert方法,alert()方法重写,不能传多余参数
  234 + window.alert = function(name){
  235 + var iframe = document.createElement("IFRAME");
  236 + iframe.style.display="none";
  237 + iframe.setAttribute("src", 'data:text/plain');
  238 + document.documentElement.appendChild(iframe);
  239 + window.frames[0].window.alert(name);
  240 + iframe.parentNode.removeChild(iframe);
  241 + }
243 242 }
244   - }
245 243 })();
246 244 </script>
247   -<script src="js/list.js?h=11141.31"></script>
  245 +<script src="js/listnew.js"></script>
248 246 </body>
249 247 </html>
... ...
list_bak.html 0 → 100644
  1 +<!DOCTYPE html>
  2 +<html lang="en">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <title>列表详情</title>
  6 + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  7 + <meta name="format-detection" content="telephone=no"/>
  8 + <meta name="format-detection" content="email=no"/>
  9 + <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
  10 + <meta name="apple-mobile-web-app-capable" content="yes"/>
  11 + <meta name="apple-mobile-web-app-title" content="">
  12 + <meta name="google" value="notranslate"><!-- 禁止Chrome 浏览器中自动提示翻译 -->
  13 + <link rel="apple-touch-icon-precomposed" href="favicon.ico">
  14 + <link rel="shortcut icon" href="favicon.ico">
  15 + <link rel="Bookmark" href="favicon.ico">
  16 + <meta http-equiv="Pragma" content="no-cache" />
  17 +
  18 + <meta http-equiv="Expires" content="0" />
  19 +
  20 + <link rel="stylesheet" href="//cdn.bootcss.com/weui/1.1.1/style/weui.min.css">
  21 + <link rel="stylesheet" href="//cdn.bootcss.com/jquery-weui/1.0.1/css/jquery-weui.min.css">
  22 + <link rel="stylesheet" href="css/reset.css">
  23 +
  24 + <style>
  25 + .all_told, .platen_number {
  26 + text-align: center;
  27 + }
  28 + .all_told {
  29 + padding: 30px 0 10px 0;
  30 + }
  31 + .all_told span {
  32 + margin-right: 5px;
  33 + font-size: 22px;
  34 + }
  35 + .discount_money {
  36 + color: #fc3817;
  37 + }
  38 + .discount {
  39 + padding: 4px 7px;
  40 + background: #fc3817;
  41 + border-radius: 2px;
  42 + position: relative;
  43 + margin-left: 10px;
  44 + color: #fff;
  45 + }
  46 + .discount:before {
  47 + position: absolute;
  48 + content: '';
  49 + width: 0;
  50 + height: 0;
  51 + left: -6px;
  52 + top: 8px;
  53 + border-top: 6px solid transparent;
  54 + border-bottom: 6px solid transparent;
  55 + border-right: 6px solid #fc3817;
  56 + }
  57 + .youhuid{
  58 + background: #f00;
  59 + color: #fff;
  60 + font-size: 13px;
  61 + padding:2px 5px;
  62 + border-radius: 3px;
  63 + margin-left: 2px;
  64 + display: none;
  65 + }
  66 + .showTooltips{
  67 + display: none;
  68 + /*针对苹果新增手势*/
  69 + cursor: pointer;
  70 + }
  71 + .weui-cells{
  72 + /*针对苹果新增手势*/
  73 + cursor: pointer;
  74 + }
  75 + .dialog-out{
  76 + position: absolute;
  77 + width: 100%;
  78 + height: 100%;
  79 + top:0;
  80 + right: 0;
  81 + left: 0;
  82 + bottom: 0;
  83 + z-index: 1000;
  84 + background: rgba(0,0,0,.3);
  85 + display: none;
  86 + }
  87 + .dia-con{
  88 + width: 305px;
  89 + height: 138px;
  90 + padding: 10px ;
  91 + background:rgba(255,255,255,1);
  92 + border-radius:8px;
  93 + position: absolute;
  94 + left: 50%;
  95 + top:50%;
  96 + transform: translate(-50%,-50%);
  97 + }
  98 + .close-btn{
  99 + float: right;
  100 + width: 16px;
  101 + height: 16px;
  102 + background: url("img/close.png") no-repeat;
  103 + background-size: 100% 100%;
  104 + cursor: pointer;
  105 + overflow: hidden;
  106 + }
  107 + .dia-main{
  108 + margin-left: 30px;
  109 + margin-top: 30px;
  110 + height: 52px;
  111 + padding-left: 90px;
  112 + background: url("img/out.png") no-repeat;
  113 + background-size: 52px 52px;
  114 + }
  115 + .dia-text{
  116 + padding-top: 20px;
  117 + text-align: center;
  118 + font-size: 12px;
  119 + color: #999;
  120 + }
  121 + .arrears-btn{
  122 + width: 70px;
  123 + height: 25px;
  124 + margin-top: 20px;
  125 + color: #FFF;
  126 + font-size: 12px;
  127 + text-align: center;
  128 + line-height: 25px;
  129 + background: url("img/arrears-bg.png") no-repeat;
  130 + background-size:70px 25px ;
  131 + }
  132 +
  133 + .strTip{
  134 + width: 100%;
  135 + height: 100%;
  136 + text-align: center;
  137 + font-size: 20px;
  138 + background: rgba(0,0,0,.7);
  139 + position: fixed;
  140 + top:0;
  141 + left: 0;
  142 + }
  143 + .strWrap{
  144 + width: 80%;
  145 + background: #fff;
  146 + border-radius: 4px;
  147 + margin: 50px auto 0;
  148 + padding: 0 10px 15px;
  149 + }
  150 + .strCon{
  151 + text-align: center;
  152 + font-size: 20px;
  153 + color: #333;
  154 + text-align: center;
  155 + }
  156 + .header-title{
  157 + padding: 15px 0;
  158 + font-size: 14px;
  159 + font-weight: 600;
  160 + border-bottom:1px solid #ccc ;
  161 + color: #333;
  162 + }
  163 + .payCarNum{
  164 + font-size: 16px;
  165 + color: #D40202;
  166 + }
  167 + .btn{
  168 + color: #fff;
  169 + font-size: 20px;
  170 +
  171 + height: 40px;
  172 + line-height: 40px;
  173 + border-radius: 8px;
  174 + cursor: pointer;
  175 + }
  176 + .hiddenBtn{
  177 + background: #79cbbf;
  178 + }
  179 + .outBtn{
  180 + background: #509f93;
  181 + }
  182 +
  183 + </style>
  184 +</head>
  185 +<body ontouchstart="">
  186 +<!--<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center">48小时限时补缴优惠</div>-->
  187 +<div id="pay_listcont">
  188 +
  189 +</div>
  190 +
  191 +
  192 +<div class="pay-content-padded">
  193 + <a class="weui-btn weui-btn_primary showTooltips" href="javascript:" id="showTooltips" v-cloak="showTooltips">申请离场</a>
  194 +</div>
  195 +
  196 +<div class="dialog-out">
  197 + <div class="dia-con">
  198 + <div class="close-btn"></div>
  199 + <div class="layui-clear"></div>
  200 + <div class="dia-main">
  201 + <p>您已经成功申请离场</p>
  202 + <p>期待您的再次光临</p>
  203 + </div>
  204 + <div class="dia-text">温馨提示:请尽快出场,超过时间将重新计费哦!</div>
  205 + </div>
  206 +</div>
  207 +
  208 +<div class="strTip" id="strTip">
  209 + <div class="strWrap">
  210 + <div class="header-title">车牌号码确认信息提示</div>
  211 + <div style="font-size: 13px;color: #333;padding: 15px 0;">请确认您当前缴费的车牌号码</div>
  212 + <div class="strCon"><span class="payCarNum" id="payCarNum"></span></div>
  213 + <div class="btn hiddenBtn" style="margin: 15px 0">是我的车,去支付</div>
  214 + <div class="btn outBtn">不是我的车,手动输入车牌号</div>
  215 + </div>
  216 +</div>
  217 +
  218 +
  219 +
  220 +
  221 +<script src="js/jquery-3.2.1.min.js"></script>
  222 +<script src="//cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
  223 +<script src="//cdn.bootcss.com/jquery-weui/1.0.1/js/jquery-weui.min.js"></script>
  224 +
  225 +<script src="js/md5.min.js"></script>
  226 +
  227 +<script src="js/url.js?u=1.11"></script>
  228 +<script src="js/ajax.js"></script>
  229 +<script type="text/javascript">
  230 +//微信浏览器中,aler弹框不显示域名
  231 +(function(){
  232 + //先判断是否为微信浏览器
  233 + var ua = window.navigator.userAgent.toLowerCase();
  234 + if (ua.match(/MicroMessenger/i) == 'micromessenger') {
  235 + //重写alert方法,alert()方法重写,不能传多余参数
  236 + window.alert = function(name){
  237 + var iframe = document.createElement("IFRAME");
  238 + iframe.style.display="none";
  239 + iframe.setAttribute("src", 'data:text/plain');
  240 + document.documentElement.appendChild(iframe);
  241 + window.frames[0].window.alert(name);
  242 + iframe.parentNode.removeChild(iframe);
  243 + }
  244 + }
  245 +})();
  246 +</script>
  247 +<script src="js/list.js?h=11141.31"></script>
  248 +</body>
  249 +</html>
... ...
listnew.html
... ... @@ -10,9 +10,7 @@
10 10 <meta name="apple-mobile-web-app-capable" content="yes"/>
11 11 <meta name="apple-mobile-web-app-title" content="">
12 12 <meta name="google" value="notranslate"><!-- 禁止Chrome 浏览器中自动提示翻译 -->
13   - <link rel="apple-touch-icon-precomposed" href="favicon.ico">
14   - <link rel="shortcut icon" href="favicon.ico">
15   - <link rel="Bookmark" href="favicon.ico">
  13 +
16 14 <meta http-equiv="Pragma" content="no-cache" />
17 15  
18 16 <meta http-equiv="Expires" content="0" />
... ...