瀏覽代碼

新建 工单 电话给为 input;
微信端增加 个人中心

fanlongfei 7 年之前
父節點
當前提交
2ffc66dbab

+ 2 - 2
CallCenterWeb.UI/commonHtml/js/orderModel.js

@@ -131,7 +131,7 @@ $(document).ready(function() {
131 131
 	//创建工单
132 132
 	$(".addts").click(function() {
133 133
 		var tskh = $("#tskh").val();
134
-		var tsdh = $("#tsdh").text();
134
+		var tsdh = $("#tsdh").val();
135 135
 //		var clbm = $("#clbm").val();
136 136
 //		var clid = $("#clid").val();
137 137
 		var cont = $("#cont").val();
@@ -308,7 +308,7 @@ function getSel(tId){
308 308
 			var res = result.data;
309 309
 			if(res){
310 310
 				$('#tskh').val(res.cusname);//姓名
311
-				$("#tsdh").text(res.telphone)//电话
311
+				$("#tsdh").val(res.telphone)//电话
312 312
 				$("#t_county").val(res.countryid);//乡镇
313 313
 				$("#t_address").val(res.address);//地址
314 314
 				var queLists = res.queslist;//反映问题

+ 1 - 1
CallCenterWeb.UI/commonHtml/orderModel.html

@@ -196,7 +196,7 @@
196 196
 								<th><b class="text-red">*</b>电话:</th>
197 197
 								<td>
198 198
 									<div class="inpBox">
199
-										<span id="tsdh"></span>
199
+										<input type="text" class="inps form-control" id="tsdh" placeholder="请输入电话" />
200 200
 									</div>
201 201
 								</td>
202 202
 							</tr>

+ 3 - 2
CallCenterWeb.WeChat/WeChart/html/index.html

@@ -123,8 +123,9 @@
123 123
 					success: function(data) {
124 124
 						mui(that).button('reset');
125 125
 						if(data.state.toLowerCase() == "success") {
126
-							mui.toast("提交成功");
127
-							window.location.href = 'WorkList.html';
126
+							mui.alert("提交成功", ' ', function() {
127
+								window.location.href = 'WorkList.html';
128
+							});
128 129
 						}
129 130
 					},
130 131
 					error: function(textStatus) {

+ 3 - 0
CallCenterWeb.WeChat/WeChart/index.html

@@ -63,6 +63,9 @@
63 63
 					case "GDTZ":
64 64
 						window.location.replace("/html/WorkAnn.html?menuCode=GDTZ");
65 65
 						break; //工公告通知
66
+					case "GRZX":
67
+						window.location.replace("signout.html?menuCode=GRZX");
68
+						break; //个人中心
66 69
 					default:
67 70
 						window.location.replace("html/error.html");
68 71
 						break;

+ 5 - 6
CallCenterWeb.WeChat/WeChart/js/Workdeal.js

@@ -1,7 +1,6 @@
1 1
 /**
2 2
  * 工单处理
3 3
  * */
4
-
5 4
 var openid = helper.cookies.get("openid");
6 5
 var id = helper.request.queryString("id");
7 6
 var countyPicker; //乡镇
@@ -101,11 +100,11 @@ function submitHandle() {
101 100
 		},
102 101
 		dataType: 'json',
103 102
 		success: function(data) {
104
-			debugger
105
-			mui(this).button('reset');
106
-			if(data.state = "success") {
107
-				mui.toast("提交成功");
108
-				window.location.href = 'WorkList.html';
103
+			mui(that).button('reset');
104
+			if(data.state.toLowerCase() == "success") {
105
+				mui.alert("提交成功", ' ', function() {
106
+					window.location.href = 'WorkList.html';
107
+				});
109 108
 			}
110 109
 		},
111 110
 		error: function(textStatus) {

+ 4 - 2
CallCenterWeb.WeChat/WeChart/js/questionnarire.js

@@ -50,8 +50,10 @@ function submitHandle() {
50 50
 		success: function(data) {
51 51
 			mui(that).button('reset');
52 52
 			if(data.state.toLowerCase() == "success") {
53
-				mui.toast("提交成功");
54
-				window.location.href = 'WorkList.html';
53
+				debugger;
54
+				mui.alert("提交成功", ' ', function() {
55
+					window.location.href = 'WorkList.html';
56
+				});
55 57
 			}
56 58
 		},
57 59
 		error: function(textStatus) {

+ 4 - 3
CallCenterWeb.WeChat/WeChart/login.html

@@ -75,12 +75,13 @@
75 75
 						if(data.state == "success") {
76 76
 							helper.cookies.set("usercode", $("#account").val(), 7);
77 77
 							//helper.cookies.set("openid", 'oKOqcvw24ZMtsRKlpjBFKHAWuDmI', 7);//微信openid 测试用
78
-							if(type) {
78
+							if(type === "1") {//高级管理》》数据统计
79 79
 								window.location.href = "index.html?menuCode=SJTJ";
80
-							} else {
80
+							} else if(type === "3") {//个人中心
81
+								window.location.href = "index.html?menuCode=GRZX";
82
+							}else{//高级管理》》信息处理
81 83
 								window.location.href = "index.html?menuCode=XXCL";
82 84
 							}
83
-
84 85
 						} else {
85 86
 							mui.alert(data.message);
86 87
 						}

+ 102 - 0
CallCenterWeb.WeChat/WeChart/signout.html

@@ -0,0 +1,102 @@
1
+<!DOCTYPE html>
2
+<html class="ui-page-login">
3
+
4
+	<head>
5
+		<meta charset="utf-8">
6
+		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
7
+		<title>个人中心</title>
8
+		<link href="css/mui.min.css" rel="stylesheet" />
9
+		<style>
10
+			.mui-btn-primary {
11
+				border: 1px solid #2f4050;
12
+				background-color: #2f4050;
13
+				width: 90%;
14
+				height: 46px;
15
+				left: 50%;
16
+				transform: translate(-50%);
17
+				-webkit-transform: translate(-50%);
18
+				padding: 0;
19
+			}
20
+			
21
+			.mui-content-padded {
22
+				margin-top: 10%;
23
+			}
24
+		</style>
25
+		<script src="js/zepto.js"></script>
26
+		<script src="Script/Common/huayi.http.js"></script>
27
+		<script>
28
+			var userCode = helper.cookies.get("usercode");
29
+			if(!userCode) {
30
+				window.location.href = "./login.html?type=3";
31
+			}
32
+		</script>
33
+	</head>
34
+
35
+	<body>
36
+
37
+		<div class="mui-card">
38
+			<!--页眉,放置标题-->
39
+			<div class="mui-card-header">用户信息</div>
40
+			<!--内容区-->
41
+			<div class="mui-card-content">
42
+				<ul class="mui-table-view">
43
+					<li class="mui-table-view-cell">
44
+						<span class="mui-icon mui-icon-contact"></span> 账号
45
+						<span id="usercode" class="mui-badge mui-badge-primary mui-badge-inverted"></span>
46
+					</li>
47
+				</ul>
48
+			</div>
49
+			<!--<div class="mui-card-footer">页脚</div>-->
50
+		</div>
51
+		<div class="mui-content-padded">
52
+			<button id="signout" class="mui-btn mui-btn-block mui-btn-primary">退出</button>
53
+		</div>
54
+
55
+		<script src="js/mui.min.js"></script>
56
+		<script src="Script/Common/huayi.config.js"></script>
57
+
58
+		<script>
59
+			Zepto(function($) {
60
+				$('#usercode').text(userCode);
61
+				$("#signout").on('tap', function() {
62
+
63
+					var btnArray = ['取消', '确定'];
64
+					mui.confirm('您确定要退出吗?', '消息提醒', btnArray, function(e) {
65
+						if(e.index == 1) { //确定
66
+							helper.cookies.set("usercode", "");
67
+							f_close();//关闭当前页面
68
+						}
69
+					});
70
+				});
71
+			});
72
+
73
+			function f_close() {
74
+				if(typeof(WeixinJSBridge) != "undefined") {
75
+					//WeixinJSBridge.call('closeWindow');  
76
+					WeixinJSBridge.invoke('closeWindow', {}, function(res) {
77
+						//alert(res.err_msg);
78
+					});
79
+				} else {
80
+					if(navigator.userAgent.indexOf("MSIE") > 0) {
81
+						if(navigator.userAgent.indexOf("MSIE 6.0") > 0) {
82
+							window.opener = null;
83
+							window.close();
84
+						} else {
85
+							window.open('', '_top');
86
+							window.top.close();
87
+						}
88
+					} else if(navigator.userAgent.indexOf("Firefox") > 0) {
89
+						window.location.href = 'about:blank ';
90
+					} else {
91
+						window.location.href="about:blank";
92
+ 						window.close();
93
+						/*window.opener = null;
94
+						window.open('', '_self', '');
95
+						window.close();*/
96
+					}
97
+				}
98
+			}
99
+		</script>
100
+	</body>
101
+
102
+</html>