liuzhihui 3 lat temu
rodzic
commit
a9e6337549

+ 3 - 3
WebChatNew/html/addWorkOrder.html

@@ -338,9 +338,9 @@
338 338
 		<script>
339 339
 			// var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
340 340
 			var openid = helper.cookies.get("openid");
341
-			if (!openid) {
342
-			    window.location.replace("../html/error.html");
343
-			}
341
+//			if (!openid) {
342
+//			    window.location.replace("../html/error.html");
343
+//			}
344 344
 			$('.codeTX').css('display', 'none')
345 345
 			var areaList = [],
346 346
 				townList = [];

Plik diff jest za duży
+ 124 - 12
WebChatNew/html/home.html


+ 5 - 6
WebChatNew/html/login.html

@@ -114,9 +114,9 @@
114 114
 			$('.codeTX').css('display', 'none')
115 115
 			// var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
116 116
 			var openid = helper.cookies.get("openid");
117
-			if (!openid) {
118
-			    window.location.replace("../html/error.html");
119
-			}
117
+//			if (!openid) {
118
+//			    window.location.replace("../html/error.html");
119
+//			}
120 120
 			
121 121
 			$('.btn').click(function(){
122 122
 				 if(!(/^1[3|4|5|7|8]\d{9}$/.test($('#phone').val()))){ 
@@ -125,11 +125,10 @@
125 125
 				}
126 126
 				$.ajax({
127 127
 				    type: "get",
128
-				    url: huayi.config.callcenter_url + '/WxLogin/EditUserInfo',
128
+				    url: huayi.config.callcenter_url + '/APP/Checking',
129 129
 				    data: { 
130 130
 						code: $('#code').val(),
131
-						mobile:$('#phone').val() ,
132
-						OpenId: openid
131
+						phone:$('#phone').val()
133 132
 					},
134 133
 				    dataType: 'json',
135 134
 				    success: function (result) {

+ 3 - 3
WebChatNew/html/orderCoument.html

@@ -71,9 +71,9 @@
71 71
 		<script src="../Script/Common/huayi.http.js"></script>
72 72
 		<script type="text/javascript">
73 73
 			var openid = helper.cookies.get("openid");
74
-			if (!openid) {
75
-			    window.location.replace("../html/error.html");
76
-			}
74
+//			if (!openid) {
75
+//			    window.location.replace("../html/error.html");
76
+//			}
77 77
 			mui.init();
78 78
 			var workorderid = helper.request.queryString("workorderid")
79 79
 			mui.ready(function() {

+ 3 - 4
WebChatNew/html/workOrdeListr.html

@@ -85,9 +85,9 @@
85 85
 		<script>
86 86
 			// var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
87 87
 			var openid = helper.cookies.get("openid");
88
-			if (!openid) {
89
-			    window.location.replace("../html/error.html");
90
-			}
88
+//			if (!openid) {
89
+//			    window.location.replace("../html/error.html");
90
+//			}
91 91
 			var tell=helper.request.queryString("tell")
92 92
 			workOrderList()
93 93
 			function workOrderList(){
@@ -98,7 +98,6 @@
98 98
 					
99 99
 					async: false,
100 100
 					data: {
101
-						source:5,
102 101
 						tel:tell,
103 102
 						page:1,
104 103
 						pagesize:10000

+ 3 - 3
WebChatNew/html/workOrderDetail.html

@@ -107,9 +107,9 @@
107 107
 			var id = helper.request.queryString("id").trim()
108 108
 			var tel = helper.request.queryString("tel").trim()
109 109
 			var openid = helper.cookies.get("openid");
110
-			if (!openid) {
111
-			    window.location.replace("../html/error.html");
112
-			}
110
+//			if (!openid) {
111
+//			    window.location.replace("../html/error.html");
112
+//			}
113 113
 			mui.ready(function() {
114 114
 				$.ajax({
115 115
 					type: "get",

+ 21 - 20
WebChatNew/index.html

@@ -16,28 +16,29 @@
16 16
 		<script src="Script/Common/huayi.http.js"></script>
17 17
 		<script type="text/javascript">
18 18
 			var openid = helper.cookies.get("openid");
19
-//			var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
20
-//			helper.cookies.set("openid", openid);
19
+			//			var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
20
+			//			helper.cookies.set("openid", openid);
21 21
 			var code = helper.request.queryString("code");
22 22
 			var menucode = helper.request.queryString("menucode");
23
-			if(!openid) {
24
-				$.ajax({
25
-					type: "get",
26
-					url: huayi.config.callcenter_url + 'WxLogin/GetOpenId',
27
-					data: {
28
-						code: code,RedirectUrl:window.location.href
29
-					},
30
-					dataType: 'json',
31
-					success: function(result) {
32
-						if(result.state.toLowerCase() == "success") {
33
-							helper.cookies.set("openid", result.data, 7);
34
-							gourl()
35
-						}
36
-					}
37
-				});
38
-			} else {
39
-				gourl()
40
-			}
23
+			//			if(!openid) {
24
+			//				$.ajax({
25
+			//					type: "get",
26
+			//					url: huayi.config.callcenter_url + 'WxLogin/GetOpenId',
27
+			//					data: {
28
+			//						code: code,RedirectUrl:window.location.href
29
+			//					},
30
+			//					dataType: 'json',
31
+			//					success: function(result) {
32
+			//						if(result.state.toLowerCase() == "success") {
33
+			//							helper.cookies.set("openid", result.data, 7);
34
+			//							gourl()
35
+			//						}
36
+			//					}
37
+			//				});
38
+			//			} else {
39
+			//				gourl()
40
+			//			}
41
+			gourl()
41 42
 
42 43
 			function gourl() {
43 44
 				switch(menucode) {