liuzhihui %!s(int64=2) %!d(string=hace) años
padre
commit
2c418a6ba5
Se han modificado 2 ficheros con 10 adiciones y 1 borrados
  1. 4 0
      WebChatNew/html/login.html
  2. 6 1
      WebChatNew/html/workOrdeListr.html

+ 4 - 0
WebChatNew/html/login.html

@@ -119,6 +119,9 @@
119 119
 //			}
120 120
 			
121 121
 			$('.btn').click(function(){
122
+				
123
+				
124
+
122 125
 				 if(!(/^1[3|4|5|7|8]\d{9}$/.test($('#phone').val()))){ 
123 126
 					mui.alert("请输入正确的手机号");  
124 127
 					return false; 
@@ -133,6 +136,7 @@
133 136
 				    dataType: 'json',
134 137
 				    success: function (result) {
135 138
 				        if (result.state.toLowerCase() == "success") {
139
+							localStorage.setItem('tell', $('#phone').val());
136 140
 							window.location.replace("../html/workOrdeListr.html?tell="+$('#phone').val());
137 141
 				        }
138 142
 				    }

+ 6 - 1
WebChatNew/html/workOrdeListr.html

@@ -88,9 +88,14 @@
88 88
 //			if (!openid) {
89 89
 //			    window.location.replace("../html/error.html");
90 90
 //			}
91
-			var tell=helper.request.queryString("tell")
91
+			var tell = localStorage.getItem('tell');
92 92
 			workOrderList()
93 93
 			function workOrderList(){
94
+
95
+				if (!tell || tell.length !== 11) {
96
+					return;
97
+				}
98
+
94 99
 				$.ajax({
95 100
 					type: "get",
96 101
 					url: huayi.config.callcenter_url + '/APP/GetList',