Kaynağa Gözat

商丘转接省平台

miaofuhao 3 yıl önce
ebeveyn
işleme
c4034ea120

+ 1 - 0
WebUI/CallCenterWeb.UI/home.html

@@ -145,6 +145,7 @@
145 145
 											<dt>宁陵</dt>
146 146
 											<dt>民权</dt>
147 147
 											<dt>虞城</dt>
148
+											<dt>省平台</dt>
148 149
 										</dl>
149 150
 									</div>
150 151
 								</ul>

+ 28 - 20
WebUI/CallCenterWeb.UI/js/index.js

@@ -333,27 +333,35 @@ $(document).ready(function () {
333 333
 //  获取转接号码
334 334
     $(".TurnXianDiv dl dt").click(function () {
335 335
     	var xianName=$(this).text();
336
-    	$.ajax({
337
-            type: "get",
338
-            url: huayi.config.callcenter_url + "WorkOrder/GetCityList",
339
-            async: true,
340
-            dataType: 'json',
341
-            data: {
342
-                token: $.cookie("token"),
343
-	            name:xianName
344
-            },
345
-            success: function (result) {
346
-                if (result.state.toLowerCase() == "success") {
347
-                	debugger
348
-                    var telPhone=result.data[0].F_Phone
349
-	                $(".hw_through").attr("index",telPhone);
350
-	                throungh();
351
-	                $(".TurnXianDiv").hide();
352
-                }
353
-            }
354
-        })
336
+    	var telPhone;
337
+    	if(xianName ==="省平台"){
338
+            throunghMethod("037165250863")
339
+    	}else{
340
+    		$.ajax({
341
+	            type: "get",
342
+	            url: huayi.config.callcenter_url + "WorkOrder/GetCityList",
343
+	            async: true,
344
+	            dataType: 'json',
345
+	            data: {
346
+	                token: $.cookie("token"),
347
+		            name:xianName
348
+	            },
349
+	            success: function (result) {
350
+	                if (result.state.toLowerCase() == "success") {
351
+	                   throunghMethod(result.data[0].F_Phone)
352
+	                }
353
+	            }
354
+	        })
355
+    	}
356
+    	
357
+        
355 358
     })
356
-	
359
+	function throunghMethod(telPhone){
360
+		console.log(telPhone)
361
+		$(".hw_through").attr("index",telPhone);
362
+        throungh();
363
+        $(".TurnXianDiv").hide();
364
+	}
357 365
     //话务相关
358 366
     $("#top-search li").click(function () {
359 367
         if ($(this).find("i").hasClass("active")) {