liuzhihui 3 年 前
コミット
a9e6337549

+ 3 - 3
WebChatNew/html/addWorkOrder.html

338
 		<script>
338
 		<script>
339
 			// var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
339
 			// var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
340
 			var openid = helper.cookies.get("openid");
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
 			$('.codeTX').css('display', 'none')
344
 			$('.codeTX').css('display', 'none')
345
 			var areaList = [],
345
 			var areaList = [],
346
 				townList = [];
346
 				townList = [];

File diff suppressed because it is too large
+ 124 - 12
WebChatNew/html/home.html


+ 5 - 6
WebChatNew/html/login.html

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

+ 3 - 3
WebChatNew/html/orderCoument.html

71
 		<script src="../Script/Common/huayi.http.js"></script>
71
 		<script src="../Script/Common/huayi.http.js"></script>
72
 		<script type="text/javascript">
72
 		<script type="text/javascript">
73
 			var openid = helper.cookies.get("openid");
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
 			mui.init();
77
 			mui.init();
78
 			var workorderid = helper.request.queryString("workorderid")
78
 			var workorderid = helper.request.queryString("workorderid")
79
 			mui.ready(function() {
79
 			mui.ready(function() {

+ 3 - 4
WebChatNew/html/workOrdeListr.html

85
 		<script>
85
 		<script>
86
 			// var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
86
 			// var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
87
 			var openid = helper.cookies.get("openid");
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
 			var tell=helper.request.queryString("tell")
91
 			var tell=helper.request.queryString("tell")
92
 			workOrderList()
92
 			workOrderList()
93
 			function workOrderList(){
93
 			function workOrderList(){
98
 					
98
 					
99
 					async: false,
99
 					async: false,
100
 					data: {
100
 					data: {
101
-						source:5,
102
 						tel:tell,
101
 						tel:tell,
103
 						page:1,
102
 						page:1,
104
 						pagesize:10000
103
 						pagesize:10000

+ 3 - 3
WebChatNew/html/workOrderDetail.html

107
 			var id = helper.request.queryString("id").trim()
107
 			var id = helper.request.queryString("id").trim()
108
 			var tel = helper.request.queryString("tel").trim()
108
 			var tel = helper.request.queryString("tel").trim()
109
 			var openid = helper.cookies.get("openid");
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
 			mui.ready(function() {
113
 			mui.ready(function() {
114
 				$.ajax({
114
 				$.ajax({
115
 					type: "get",
115
 					type: "get",

+ 21 - 20
WebChatNew/index.html

16
 		<script src="Script/Common/huayi.http.js"></script>
16
 		<script src="Script/Common/huayi.http.js"></script>
17
 		<script type="text/javascript">
17
 		<script type="text/javascript">
18
 			var openid = helper.cookies.get("openid");
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
 			var code = helper.request.queryString("code");
21
 			var code = helper.request.queryString("code");
22
 			var menucode = helper.request.queryString("menucode");
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
 			function gourl() {
43
 			function gourl() {
43
 				switch(menucode) {
44
 				switch(menucode) {