Commit 624dbad996e6be27e8b140d4c042e3e85a511494
1 parent
d72ff7ef
赤峰签名+混淆
Showing
6 changed files
with
22 additions
and
346 deletions
js/ajax.js
1 | -window.onload = function () { | ||
2 | - document.onkeydown = function () { | ||
3 | - var e = window.event || arguments[0]; | ||
4 | - //屏蔽F12 | ||
5 | - if (e.keyCode == 123) { | ||
6 | - | ||
7 | - return false; | ||
8 | - //屏蔽Ctrl+Shift+I | ||
9 | - } else if ((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)) { | ||
10 | - | ||
11 | - return false; | ||
12 | - //屏蔽Shift+F10 | ||
13 | - } else if ((e.shiftKey) && (e.keyCode == 121)) { | ||
14 | - return false; | ||
15 | - } | ||
16 | - }; | ||
17 | - //屏蔽右键单击 | ||
18 | - document.oncontextmenu = function () { | ||
19 | - return false; | ||
20 | - } | ||
21 | -} | ||
22 | - | ||
23 | -var _app_id = 'ud8yq5tv0inxupc05xfeau39jywlqoj2' | ||
24 | - | ||
25 | -var jsajax = jsajax || {}; | ||
26 | -//任你停赤峰 | ||
27 | - | ||
28 | - | ||
29 | -jsajax.appID = 'wx2af2bab90d433c86'; | ||
30 | -//获取openid | ||
31 | -jsajax.getopenid = function (code,fn) { | ||
32 | - var openid = ''; | ||
33 | - var jsondata = { | ||
34 | - appId:jsajax.appID, | ||
35 | - code:code | ||
36 | - }; | ||
37 | - jsajax.defaultReq( | ||
38 | - mUrl.tcgetopenid, | ||
39 | - JSON.stringify(jsondata), | ||
40 | - function(data){ | ||
41 | - console.log("根据code获取openid"+JSON.stringify(data)); | ||
42 | - if(data.code=='0'){ | ||
43 | - openid = data.data; | ||
44 | - mUrl.SetOpenid(openid); | ||
45 | - mUrl.setApporWX('wx'); | ||
46 | - console.log("用户 openid "+openid); | ||
47 | - fn(openid); | ||
48 | - } | ||
49 | - } | ||
50 | - ); | ||
51 | -} | ||
52 | -//获取token | ||
53 | -jsajax.gett = function (openid,fn) { | ||
54 | - var jsondata = { | ||
55 | - openid:openid, | ||
56 | - deviceInfo:"BC0703A4-AFB0-4B51-9089-9B7487C0CC6E" | ||
57 | - } | ||
58 | - jsajax.defaultReq( | ||
59 | - mUrl.tcgettoken, | ||
60 | - JSON.stringify(jsondata), | ||
61 | - function (data) { | ||
62 | - console.log('执行获取token的接口 '+JSON.stringify(data)); | ||
63 | - if(data.code==0){ | ||
64 | - console.log("用户 token "+data.data.token); | ||
65 | - mUrl.SetToken(data.data.token); | ||
66 | - mUrl.SetPhone(data.data.phoneNum); | ||
67 | - fn(1); | ||
68 | - }else{ | ||
69 | - fn(0); | ||
70 | - //location.href = mUrl.Uri+'/WEB-INF/pages/elsepages/common_pages/paybind.html; | ||
71 | - } | ||
72 | - } | ||
73 | - ); | ||
74 | -} | ||
75 | -/*获取设备 start*/ | ||
76 | - | ||
77 | -jsajax.setstyle = function(){ | ||
78 | - | ||
79 | - var pt = ''; | ||
80 | - if(mUrl.getApporWX()&&mUrl.getApporWX()!=''){ | ||
81 | - pt = mUrl.getApporWX(); | ||
82 | - } | ||
83 | - // alert('clapntemp_获取到用户openid'+mUrl.getApporWX()); | ||
84 | - | ||
85 | - if(pt!=''){ | ||
86 | - if(pt=='iosapp'||pt=='andriodapp'){ | ||
87 | - if($('.qihuan')){ | ||
88 | - $('.qihuan').addClass('iosapp'); | ||
89 | - } | ||
90 | - | ||
91 | - } | ||
92 | - } | ||
93 | - console.log('执行米 '+pt); | ||
94 | -} | ||
95 | -jsajax.setstyle(); | ||
96 | - | ||
97 | - | ||
98 | - | ||
99 | -/*根据不同的类型加载不同的文件 start*/ | ||
100 | -jsajax.dynamicLoading = { | ||
101 | - css: function(path){ | ||
102 | - if(!path || path.length === 0){ | ||
103 | - throw new Error('argument "path" is required !'); | ||
104 | - } | ||
105 | - var head = document.getElementsByTagName('head')[0]; | ||
106 | - var link = document.createElement('link'); | ||
107 | - link.href = path; | ||
108 | - link.rel = 'stylesheet'; | ||
109 | - link.type = 'text/css'; | ||
110 | - head.appendChild(link); | ||
111 | - }, | ||
112 | - js: function(path){ | ||
113 | - if(!path || path.length === 0){ | ||
114 | - throw new Error('argument "path" is required !'); | ||
115 | - } | ||
116 | - var head = document.getElementsByTagName('head')[0]; | ||
117 | - var script = document.createElement('script'); | ||
118 | - script.src = path; | ||
119 | - script.type = 'text/javascript'; | ||
120 | - head.appendChild(script); | ||
121 | - } | ||
122 | -} | ||
123 | - | ||
124 | -jsajax.setcss = function(strpath){ | ||
125 | - var wxorapp = mUrl.getApporWX(); | ||
126 | - console.log('这里先获取 '+wxorapp); | ||
127 | - if(wxorapp){ | ||
128 | - if(wxorapp!='wx'){ | ||
129 | - console.log('不是微信微信'); | ||
130 | - if(strpath){ | ||
131 | - jsajax.dynamicLoading.css(strpath); | ||
132 | - } | ||
133 | - | ||
134 | - }else{ | ||
135 | - //jsajax.dynamicLoading.css("n1.css"); | ||
136 | - //console.log('dengyu微信'); | ||
137 | - } | ||
138 | - }else{ | ||
139 | - jsajax.dynamicLoading.css(strpath); | ||
140 | - } | ||
141 | -}; | ||
142 | - | ||
143 | -/* 默认请求*/ | ||
144 | -jsajax.defaultReq=function(url, data, successfn,errorfn) { | ||
145 | - data = (data==null || data=="" || typeof(data)=="undefined")? {"date": new Date().getTime()} : data; | ||
146 | - $.ajax({ | ||
147 | - type: "post", | ||
148 | - data: data, | ||
149 | - url: url, | ||
150 | - dataType: "json", | ||
151 | - contentType:'application/json;charset=utf-8', | ||
152 | - beforeSend:function(xhr){}, | ||
153 | - success: function(d){ | ||
154 | - successfn(d); | ||
155 | - }, | ||
156 | - error: function(e){ | ||
157 | - //alert(JSON.stringify(e)); | ||
158 | - console.log(JSON.stringify(e)); | ||
159 | - if (typeof (errorfn) != "undefined") { | ||
160 | - errorfn(JSON.stringify(e)); | ||
161 | - } | ||
162 | - }, | ||
163 | - complete:function (e) {} | ||
164 | - }); | ||
165 | -} | ||
166 | -/* 车牌号校验.<br/>*/ | ||
167 | -jsajax.isVehicleNumber=function(vehicleNumber){ | ||
168 | - var result = false; | ||
169 | - if (vehicleNumber.length == 7){ | ||
170 | - var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/; | ||
171 | - result = express.test(vehicleNumber); | ||
172 | - } | ||
173 | - return result; | ||
174 | -} | ||
175 | - | ||
176 | -//获取签名 | ||
177 | -jsajax.getsign = function(objb){ | ||
178 | - var compare = function (obj1, obj2) { | ||
179 | - var val1 = obj1.keyname; | ||
180 | - var val2 = obj2.keyname; | ||
181 | - if (val1 < val2) { | ||
182 | - return -1; | ||
183 | - } else if (val1 > val2) { | ||
184 | - return 1; | ||
185 | - } else { | ||
186 | - return 0; | ||
187 | - } | ||
188 | - } | ||
189 | - objb.sort(compare); | ||
190 | - var strmd5 = 'ny1u72b6k374sg379z0kqjgfxe2ycnpw'; | ||
191 | - for(var i=0;i<objb.length;i++){ | ||
192 | - if(objb[i].value != null&&objb[i].value != ''){ | ||
193 | - strmd5 += objb[i].keyname+objb[i].value; | ||
194 | - } | ||
195 | - } | ||
196 | - strmd5 += 'ny1u72b6k374sg379z0kqjgfxe2ycnpw'; | ||
197 | - console.log('strmd5-------->'+strmd5); | ||
198 | - strmd5 = md5(strmd5); | ||
199 | - strmd5=strmd5.toUpperCase(); | ||
200 | - return strmd5; | ||
201 | -} | ||
202 | -//获取盐值 | ||
203 | -jsajax.salt=function(a){ | ||
204 | - var len = parseInt(a); | ||
205 | - var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; | ||
206 | - var maxPos = $chars.length; | ||
207 | - var pwd = ''; | ||
208 | - for (var i = 0; i < len; i++) { | ||
209 | - pwd += $chars.charAt(Math.floor(Math.random() * maxPos)); | ||
210 | - } | ||
211 | - console.log(pwd); | ||
212 | - return pwd; | ||
213 | -} | ||
214 | - | ||
215 | -//金额转换(分转化成元) | ||
216 | -jsajax.fenToYuan=function(fen){ | ||
217 | - if( fen == null || fen.length<=0 || isNaN(fen) == true){ | ||
218 | - return ""; | ||
219 | - } | ||
220 | - var yuan = Math.round(fen); | ||
221 | - yuan = yuan.toString(); | ||
222 | - var before = yuan.substr(0, yuan.length - 2); | ||
223 | - | ||
224 | - var end = yuan.substr(yuan.length - 2, 2); | ||
225 | - before = before.toString(); | ||
226 | - end = end.toString(); | ||
227 | - if(before==''){ | ||
228 | - before = '0'; | ||
229 | - } | ||
230 | - if(fen<10){ | ||
231 | - end = '0'+end; | ||
232 | - } | ||
233 | - yuan = before + "." + end; | ||
234 | - var re = /(-?\d+)(\d{3})/; | ||
235 | - while (re.test(yuan)) { | ||
236 | - yuan = yuan.replace(re, "$1,$2") | ||
237 | - } | ||
238 | - return yuan; | ||
239 | -} | ||
240 | -function isAndroidorios(fn){ | ||
241 | - var u = navigator.userAgent, app = navigator.appVersion; | ||
242 | - var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器 | ||
243 | - var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 | ||
244 | - isAndroid==true?true:false; | ||
245 | - var jixing = ''; | ||
246 | - if(isAndroid){jixing = 'android';}else if(isiOS){ | ||
247 | - jixing = 'ios'; | ||
248 | - } | ||
249 | - fn(jixing); | ||
250 | -} | ||
251 | -//时间转化 秒转分 | ||
252 | -jsajax.formatSeconds = function (value) { | ||
253 | - var theTime = parseInt(value);// 秒 | ||
254 | - var theTime1 = 0;// 分 | ||
255 | - var theTime2 = 0;// 小时 | ||
256 | - var result = ''; | ||
257 | - var day = parseInt(theTime/(60*60*24)); | ||
258 | - var hours = parseInt(theTime/(60*60) - day*24); | ||
259 | - var fen = parseInt(theTime/60 -hours*60 - day*24*60); | ||
260 | - var senc = parseInt(theTime -fen*60 -hours*60*60 - day*24*60*60); | ||
261 | - if(day>0){result +=day+'天';} | ||
262 | - if(hours>0){result +=hours+'小时';} | ||
263 | - if(fen>0){result +=fen+'分';} | ||
264 | - if(senc>0){result +=senc+'秒';} | ||
265 | - return result; | ||
266 | -} | ||
267 | - | ||
268 | -jsajax.fStohours = function (value) { | ||
269 | - var theTime = parseInt(value);// 秒 | ||
270 | - var theTime1 = 0;// 分 | ||
271 | - var theTime2 = 0;// 小时 | ||
272 | - if(theTime > 60) { | ||
273 | - theTime1 = parseInt(theTime/60); | ||
274 | - theTime = parseInt(theTime%60); | ||
275 | - if(theTime1 > 60) { | ||
276 | - theTime2 = parseInt(theTime1/60); | ||
277 | - theTime1 = parseInt(theTime1%60); | ||
278 | - } | ||
279 | - } | ||
280 | - var result = "";//+parseInt(theTime)+"秒"; | ||
281 | - if(theTime1 > 0) { | ||
282 | - result = ""+parseInt(theTime1)+"分"+result; | ||
283 | - } | ||
284 | - if(theTime2 > 0) { | ||
285 | - result = ""+parseInt(theTime2)+"小时"+result; | ||
286 | - } | ||
287 | - return result; | ||
288 | -} | ||
289 | -//为Date类型拓展一个format方法,用于格式化日期 | ||
290 | -Date.prototype.format = function (format) //author: meizz | ||
291 | -{ | ||
292 | - var o = { | ||
293 | - "M+": this.getMonth() + 1, //month | ||
294 | - "d+": this.getDate(), //day | ||
295 | - "h+": this.getHours(), //hour | ||
296 | - "m+": this.getMinutes(), //minute | ||
297 | - "s+": this.getSeconds(), //second | ||
298 | - "q+": Math.floor((this.getMonth() + 3) / 3), //quarter | ||
299 | - "S": this.getMilliseconds() //millisecond | ||
300 | - }; | ||
301 | - if (/(y+)/.test(format)) | ||
302 | - format = format.replace(RegExp.$1, | ||
303 | - (this.getFullYear() + "").substr(4 - RegExp.$1.length)); | ||
304 | - for (var k in o) | ||
305 | - if (new RegExp("(" + k + ")").test(format)) | ||
306 | - format = format.replace(RegExp.$1, | ||
307 | - RegExp.$1.length == 1 ? o[k] : | ||
308 | - ("00" + o[k]).substr(("" + o[k]).length)); | ||
309 | - return format; | ||
310 | -}; | ||
311 | - | ||
312 | -//时间格式的返回 | ||
313 | -Date.prototype.toLocaleString = function() { | ||
314 | - var se = this.getSeconds(); | ||
315 | - var fz = this.getMinutes(); | ||
316 | - if(se>=0&&se<=9){ | ||
317 | - se = '0'+se; | ||
318 | - } | ||
319 | - if(fz>=0&&fz<=9){ | ||
320 | - fz = '0'+fz; | ||
321 | - } | ||
322 | - return this.getFullYear() + "/" + (this.getMonth() + 1) + "/" + this.getDate() + " " + this.getHours() + ":" + fz + ":" + se; | ||
323 | -}; | 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}('1i.26=j(){z.27=j(){5 a=1i.28||29[0];6(a.P==25){n C}w{6((a.23)&&(a.1j)&&(a.P==1Z)){n C}w{6((a.1j)&&(a.P==1Y)){n C}}}};z.20=j(){n C}};5 21="22";5 k=k||{};k.1k="2a";k.2b=j(c,a){5 b="";5 d={2i:k.1k,J:c};k.Q(t.2j,x.B(d),j(e){u.v("根据J获取W"+x.B(e));6(e.J=="0"){b=e.E;t.2k(b);t.2l("1u");u.v("用户 W "+b);a(b)}})};k.2h=j(b,a){5 c={W:b,2g:"2c-2d-1X-2f-2m"};k.Q(t.1T,x.B(c),j(d){u.v("执行获取F的接口 "+x.B(d));6(d.J==0){u.v("用户 F "+d.E.F);t.1D(d.E.F);t.1G(d.E.1K);a(1)}w{a(0)}})};k.1d=j(){5 a="";6(t.I()&&t.I()!=""){a=t.I()}6(a!=""){6(a=="1g"||a=="1J"){6($(".1h")){$(".1h").1H("1g")}}}u.v("执行米 "+a)};k.1d();k.T={L:j(c){6(!c||c.r===0){1e H 1f(\'1l "1m" 1s 1t !\')}5 a=z.1r("1c")[0];5 b=z.1n("1F");b.1I=c;b.1W="1S";b.Y="1o/L";a.1p(b)},1L:j(c){6(!c||c.r===0){1e H 1f(\'1l "1m" 1s 1t !\')}5 b=z.1r("1c")[0];5 a=z.1n("1Q");a.1M=c;a.Y="1o/1N";b.1p(a)}};k.2n=j(b){5 a=t.I();u.v("这里先获取 "+a);6(a){6(a!="1u"){u.v("不是微信微信");6(b){k.T.L(b)}}w{}}w{k.T.L(b)}};k.Q=j(a,b,d,c){b=(b==O||b==""||1a(b)=="17")?{2e:H 12().2y()}:b;$.2U({Y:"2T",E:b,2S:a,2Q:"19",2X:"2R/19;2W=30-8",2Z:j(e){},2Y:j(e){d(e)},2O:j(f){u.v(x.B(f));6(1a(c)!="17"){c(x.B(f))}},2x:j(f){}})};k.2P=j(b){5 a=C;6(b.r==7){5 c=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-1v-9]{4}[A-1v-9挂学警港澳]{1}$/;a=c.G(b)}n a};k.2z=j(b){5 d=j(h,g){5 f=h.14;5 e=g.14;6(f<e){n-1}w{6(f>e){n 1}w{n 0}}};b.2u(d);5 c="1b";16(5 a=0;a<b.r;a++){6(b[a].15!=O&&b[a].15!=""){c+=b[a].14+b[a].15}}c+="1b";u.v("2o-------->"+c);c=2q(c);c=c.2r();n c};k.2s=j(d){5 c=p(d);5 e="2A";5 b=e.r;5 g="";16(5 f=0;f<c;f++){g+=e.2B(K.1A(K.2K()*b))}u.v(g);n g};k.2M=j(c){6(c==O||c.r<=0||2N(c)==11){n""}5 a=K.2I(c);a=a.R();5 e=a.N(0,a.r-2);5 b=a.N(a.r-2,2);e=e.R();b=b.R();6(e==""){e="0"}6(c<10){b="0"+b}a=e+"."+b;5 d=/(-?\\d+)(\\d{3})/;2D(d.G(a)){a=a.13(d,"$1,$2")}n a};j 2C(e){5 a=18.2E,f=18.2G;5 d=a.1q("1O")>-1||a.1q("2F")>-1;5 c=!!a.2H(/\\(i[^;]+;( U;)? 2L.+2J 2p X/);d==11?11:C;5 b="";6(d){b="2t"}w{6(c){b="2v"}}e(b)}k.2w=j(h){5 e=p(h);5 c=0;5 b=0;5 i="";5 f=p(e/(l*l*24));5 g=p(e/(l*l)-f*24);5 a=p(e/l-g*l-f*24*l);5 d=p(e-a*l-g*l*l-f*24*l*l);6(f>0){i+=f+"天"}6(g>0){i+=g+"小时"}6(a>0){i+=a+"分"}6(d>0){i+=d+"秒"}n i};k.2V=j(e){5 d=p(e);5 c=0;5 b=0;6(d>l){c=p(d/l);d=p(d%l);6(c>l){b=p(c/l);c=p(c%l)}}5 a="";6(c>0){a=""+p(c)+"分"+a}6(b>0){a=""+p(b)+"小时"+a}n a};12.1z.1P=j(b){5 c={"M+":o.V()+1,"d+":o.1x(),"h+":o.1w(),"m+":o.1C(),"s+":o.1y(),"q+":K.1A((o.V()+3)/3),S:o.1R()};6(/(y+)/.G(b)){b=b.13(D.$1,(o.1B()+"").N(4-D.$1.r))}16(5 a 1V c){6(H D("("+a+")").G(b)){b=b.13(D.$1,D.$1.r==1?c[a]:("1U"+c[a]).N((""+c[a]).r))}}n b};12.1z.1E=j(){5 b=o.1y();5 a=o.1C();6(b>=0&&b<=9){b="0"+b}6(a>=0&&a<=9){a="0"+a}n o.1B()+"/"+(o.V()+1)+"/"+o.1x()+" "+o.1w()+":"+a+":"+b};',62,187,'|||||var|if|||||||||||||function|jsajax|60||return|this|parseInt||length||mUrl|console|log|else|JSON||document||stringify|false|RegExp|data|token|test|new|getApporWX|code|Math|css||substr|null|keyCode|defaultReq|toString||dynamicLoading||getMonth|openid||type|||true|Date|replace|keyname|value|for|undefined|navigator|json|typeof|ny1u72b6k374sg379z0kqjgfxe2ycnpw|head|setstyle|throw|Error|iosapp|qihuan|window|shiftKey|appID|argument|path|createElement|text|appendChild|indexOf|getElementsByTagName|is|required|wx|Z0|getHours|getDate|getSeconds|prototype|floor|getFullYear|getMinutes|SetToken|toLocaleString|link|SetPhone|addClass|href|andriodapp|phoneNum|js|src|javascript|Android|format|script|getMilliseconds|stylesheet|tcgettoken|00|in|rel|4B51|121|73|oncontextmenu|_app_id|ud8yq5tv0inxupc05xfeau39jywlqoj2|ctrlKey||123|onload|onkeydown|event|arguments|wx2af2bab90d433c86|getopenid|BC0703A4|AFB0|date|9089|deviceInfo|gett|appId|tcgetopenid|SetOpenid|setApporWX|9B7487C0CC6E|setcss|strmd5|OS|md5|toUpperCase|salt|android|sort|ios|formatSeconds|complete|getTime|getsign|ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678|charAt|isAndroidorios|while|userAgent|Linux|appVersion|match|round|Mac|random|CPU|fenToYuan|isNaN|error|isVehicleNumber|dataType|application|url|post|ajax|fStohours|charset|contentType|success|beforeSend|utf'.split('|'),0,{})) |
js/ajax_min.js renamed to js/ajax_back.js
js/config.js
@@ -7,11 +7,11 @@ window.webAppH5 = {}; | @@ -7,11 +7,11 @@ window.webAppH5 = {}; | ||
7 | 7 | ||
8 | 8 | ||
9 | /*服务器地址*/ | 9 | /*服务器地址*/ |
10 | - // var webAppRoot = "http://pay.service.huangshiparking.com"; | ||
11 | 10 | ||
12 | -// var webAppRoot = 'http://pay.service.renniting.cn/'; //赤峰 | 11 | + |
12 | +var webAppRoot = 'http://pay.service.renniting.cn/'; //赤峰 | ||
13 | //test 测试环境 | 13 | //test 测试环境 |
14 | -var webAppRoot = "http://39.98.58.92:8090"; | 14 | +// var webAppRoot = "http://39.98.58.92:8090"; |
15 | //微信支付结果回调地址 | 15 | //微信支付结果回调地址 |
16 | var webAppPayResult = "http://wxgzh.renniting.cn/wechatwuxi/DEV/Threewf/codepay/page/wxpayResult.html"; | 16 | var webAppPayResult = "http://wxgzh.renniting.cn/wechatwuxi/DEV/Threewf/codepay/page/wxpayResult.html"; |
17 | 17 |
js/paybacknew.js
1 | -var code = getUrlParam('code'); | ||
2 | -var local = window.location.href; | ||
3 | -if (code == null || code === '') { | ||
4 | - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + jsajax.appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect' | ||
5 | - | ||
6 | -} else { | ||
7 | - | ||
8 | -} | ||
9 | - | ||
10 | -function getUrlParam(name) { | ||
11 | - var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); | ||
12 | - var r = window.location.search.substr(1).match(reg) | ||
13 | - if (r != null) return unescape(r[2]) | ||
14 | - return null | ||
15 | -} | 1 | +// var code = getUrlParam('code'); |
2 | +// var local = window.location.href; | ||
3 | +// if (code == null || code === '') { | ||
4 | +// window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + jsajax.appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect' | ||
5 | +// | ||
6 | +// } else { | ||
7 | +// | ||
8 | +// } | ||
9 | +// | ||
10 | +// function getUrlParam(name) { | ||
11 | +// var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); | ||
12 | +// var r = window.location.search.substr(1).match(reg) | ||
13 | +// if (r != null) return unescape(r[2]) | ||
14 | +// return null | ||
15 | +// } | ||
16 | 16 | ||
17 | var fun = { | 17 | var fun = { |
18 | dateFormat: function (msd) { | 18 | dateFormat: function (msd) { |
js/url.js
@@ -89,10 +89,10 @@ mUrl.getJx = function(){ | @@ -89,10 +89,10 @@ mUrl.getJx = function(){ | ||
89 | 89 | ||
90 | /*end*/ | 90 | /*end*/ |
91 | 91 | ||
92 | -var cepath = 'http://39.98.58.92:8090'; | 92 | +// var cepath = 'http://39.98.58.92:8090'; |
93 | + | ||
94 | +var cepath = 'http://pay.service.renniting.cn/'; | ||
93 | 95 | ||
94 | -// var cepath = 'http://pay.service.renniting.cn/'; | ||
95 | -// http://pay.service.huangshiparking.com | ||
96 | 96 | ||
97 | /*----------------------------------------------登录登出绑定手机号 start*/ | 97 | /*----------------------------------------------登录登出绑定手机号 start*/ |
98 | //发送验证码 | 98 | //发送验证码 |
list.html
@@ -137,8 +137,6 @@ function activityQuery() { | @@ -137,8 +137,6 @@ function activityQuery() { | ||
137 | }; | 137 | }; |
138 | jsondata = JSON.stringify(jsondata); | 138 | jsondata = JSON.stringify(jsondata); |
139 | jsajax.defaultReq( | 139 | jsajax.defaultReq( |
140 | - // 'http://39.98.58.92:8090/activity/queryActivityListByOrgId', | ||
141 | - | ||
142 | mUrl.queryActivityListByJumpType, | 140 | mUrl.queryActivityListByJumpType, |
143 | jsondata, | 141 | jsondata, |
144 | function (data) { | 142 | function (data) { |