瀏覽代碼

双汇APP

miaofuhao 6 年之前
父節點
當前提交
8d7a5d03cf

+ 211 - 0
双汇APP-andriod/Common/Setting_manage.html

1
+<!DOCTYPE html>
2
+<html>
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
+		<link href="../css/mui.indexedlist.css" rel="stylesheet" />
10
+		<link href="../css/index.css" />
11
+		<style>
12
+			html, 
13
+			body { 
14
+				height: 100%;
15
+				overflow: hidden; 
16
+			} 
17
+			
18
+			.oa-contact-cell.mui-table .mui-table-cell {
19
+				padding: 11px 0;
20
+				vertical-align: middle;
21
+			}
22
+			
23
+			.oa-contact-cell {
24
+				position: relative;
25
+				margin: -11px 0;
26
+			}
27
+			
28
+			.oa-contact-avatar {
29
+				width: 50px;
30
+			}
31
+			
32
+			.oa-contact-avatar img {
33
+				border-radius: 50%;
34
+				width: 30px;
35
+				height: 30px;
36
+			}
37
+			
38
+			.oa-contact-content {
39
+				width: 100%;
40
+			}
41
+			
42
+			.oa-contact-name {
43
+				margin-right: 10px;
44
+			}
45
+			
46
+			.go_search {
47
+				background: #fff!important;
48
+				border: 1px solid #ccc!important;
49
+				border-radius: 17px!important;
50
+			}
51
+			a {
52
+				color: #000;
53
+			}
54
+			.mui-search.mui-active:before {
55
+				top: 25px;
56
+			}
57
+			.oa-contact-position{
58
+				margin-left: 15px;
59
+			}
60
+		</style>
61
+	</head>
62
+	<body>
63
+		<header class="mui-bar mui-bar-nav" style="background: #cd0000 !important;">
64
+			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
65
+			<h1 id="title" class="mui-title">用户管理</h1>
66
+		</header>
67
+		<div class="mui-content">
68
+			<div id='list' class="mui-indexed-list" style="height: 100%;">
69
+				<div class="mui-indexed-list-search mui-input-row mui-search">
70
+					<input type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="搜索">
71
+				</div> 
72
+				<div class="mui-indexed-list-bar">
73
+					<a>A</a>
74
+					<a>B</a>
75
+					<a>C</a>
76
+					<a>D</a>
77
+					<a>E</a>
78
+					<a>F</a>
79
+					<a>G</a>
80
+					<a>H</a>
81
+					<a>I</a>
82
+					<a>J</a>
83
+					<a>K</a>
84
+					<a>L</a>
85
+					<a>M</a>
86
+					<a>N</a>
87
+					<a>O</a>
88
+					<a>P</a>
89
+					<a>Q</a>
90
+					<a>R</a>
91
+					<a>S</a>
92
+					<a>T</a>
93
+					<a>U</a>
94
+					<a>V</a>
95
+					<a>W</a>
96
+					<a>X</a>
97
+					<a>Y</a>
98
+					<a>Z</a>
99
+				</div>
100
+				<div class="mui-indexed-list-alert"></div>
101
+				<div class="mui-indexed-list-inner">
102
+					<div class="mui-indexed-list-empty-alert">没有数据</div>
103
+					<ul class="mui-table-view TX">
104
+						
105
+					</ul>
106
+				</div>
107
+			</div>
108
+		</div>
109
+		<script src="../js/mui.min.js"></script>
110
+		<script src="../js/mui.indexedlist.js"></script>
111
+		<script src="../js/zepto.js"></script>
112
+		<script src="../js/huayi.config.js"></script>
113
+		<script type="text/javascript" charset="utf-8">
114
+			mui.init();  
115
+			mui.ready(function() {  
116
+				var keyw = '';
117
+				mui('.mui-scroll-wrapper').scroll({
118
+					deceleration: 0.0005
119
+				}); //设置减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
120
+				
121
+				Ajax(); 
122
+				function Ajax() { 
123
+					$(".TX").empty();
124
+					$.ajax({
125
+					data: {
126
+						pageindex: 1,
127
+						pagesize: 9999,
128
+						token: localStorage.getItem('token')
129
+					}, 
130
+					url: huayi.config.callcenter_url + '/UserAccount/GetList',
131
+					dataType: 'json', //服务器返回json格式数据
132
+					type: 'get', //HTTP请求类型
133
+					timeout: 10000, //超时时间设置为10秒;
134
+					headers: {
135
+						'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
136
+					},
137
+					success: function(data) {
138
+						if(data.state = "success") {
139
+								var html;
140
+								//alert(JSON.stringify(data.rows))
141
+								//alert(JSON.stringify(data.total))
142
+								if (data.rows.length>0) {
143
+									$(data.rows).each(function(i, n) {
144
+										html= '<li data-group="'+n.code+'" data-value="'+n.NameOneCode+'" data-tags="'+n.NameOneCode+'" class="mui-table-view-cell mui-indexed-list-item">'+
145
+													'<div class="mui-slider-cell">'+
146
+												        '<a  class="xg_manage" data-name="'+n.F_UserCode+'"  data-index="'+n.F_UserId+'">'+
147
+														'<div class="oa-contact-cell mui-table">'+
148
+															'<div class="oa-contact-content mui-table-cell">'+
149
+																'<h4 class="oa-contact-name size-14">'+n.F_UserName+
150
+																'<span class="oa-contact-position mui-h6">'+n.F_WorkNumber+'</span></h4>'+
151
+																'<h4 class="oa-contact-email mui-h5">'+n.F_Mobile+'</h4>'+
152
+															'</div>'+
153
+														'</div>'+
154
+														'</a>'+
155
+													'</div>'+
156
+												'</li>';
157
+										$(html).appendTo($(".TX"));
158
+										
159
+									})
160
+									
161
+								}
162
+								
163
+									
164
+						} 
165
+					},
166
+					error: function(xhr, type, errorThrown) {
167
+						//异常处理;
168
+						mui.alert("");
169
+
170
+					}
171
+				});
172
+
173
+
174
+				}
175
+				setTimeout(indexAjax,5000); 
176
+				function indexAjax () {
177
+					var list = document.getElementById('list')
178
+					//calc hieght
179
+					list.style.height = (document.body.offsetHeight) + 'px';
180
+					//create
181
+					window.indexedList = new mui.IndexedList(list);
182
+				}
183
+				
184
+				$('.TX').on('tap', '.xg_manage', function() {
185
+					var id = $(this).attr('data-index');
186
+					var name = $(this).attr('data-name');
187
+					mui.openWindow({
188
+						id: 'xg_manage',
189
+						url: 'xg_manage.html',
190
+						createNew: true,
191
+						show: {
192
+							aniShow: 'pop-in'
193
+						},
194
+						styles: {
195
+							popGesture: 'hide'
196
+						},
197
+						waiting: {
198
+							autoShow: true
199
+						},
200
+						extras: {
201
+							name: name,
202
+							nameid: id,
203
+							token: localStorage.getItem('token')
204
+						}
205
+					});
206
+				})
207
+			});
208
+		</script>
209
+	</body>
210
+
211
+</html>

+ 38 - 23
双汇APP-andriod/Common/js/portrait.js

1
 mui.init();
1
 mui.init();
2
 mui.init({
2
 mui.init({
3
-    beforeback: function() {    
4
-        var list = plus.webview.currentWebview().opener();    
5
-        //refresh是A页面自定义事件
6
-        mui.fire(list, 'refresh');
7
-        //返回true,继续页面关闭逻辑
8
-        return true;
9
-    }
3
+	beforeback: function() {    
4
+		var list = plus.webview.currentWebview().opener();    
5
+		//refresh是A页面自定义事件
6
+		mui.fire(list, 'refresh');
7
+		//返回true,继续页面关闭逻辑
8
+		return true;
9
+	}
10
 });
10
 });
11
 //初始化单页的区域滚动
11
 //初始化单页的区域滚动
12
 mui('.mui-scroll-wrapper').scroll();
12
 mui('.mui-scroll-wrapper').scroll();
24
 		},
24
 		},
25
 		success: function(data) {
25
 		success: function(data) {
26
 			var RoleCode = data.data.role.F_RoleCode;
26
 			var RoleCode = data.data.role.F_RoleCode;
27
-			$(".F_UserName").text(data.data.user.F_UserName);
28
-			$(".rolname").text(data.data.user.F_UserCode);
27
+			$("#UserId").val(data.data.user.F_UserId)
28
+			$(".F_UserName").val(data.data.user.F_UserName);
29
+			$(".rolname").val(data.data.user.F_UserCode);
30
+			$(".password").val(data.data.user.F_Password);
29
 			if(!data.data.FileUrl[0].F_Url) {
31
 			if(!data.data.FileUrl[0].F_Url) {
30
 				$(".feedback .image-item").css("background-image", "url(../img/3.png)")
32
 				$(".feedback .image-item").css("background-image", "url(../img/3.png)")
31
-			} else{
33
+			} else {
32
 				$(".feedback .image-item").css("background-image", "url(" + data.data.FileUrl[0].F_Url + ")")
34
 				$(".feedback .image-item").css("background-image", "url(" + data.data.FileUrl[0].F_Url + ")")
33
 			}
35
 			}
34
-				
36
+
35
 		},
37
 		},
36
 		error: function(xhr, type, errorThrown) {
38
 		error: function(xhr, type, errorThrown) {
37
 			//异常处理;
39
 			//异常处理;
39
 
41
 
40
 	});
42
 	});
41
 })
43
 })
42
-
43
-
44
-//常见问题
45
-//document.getElementById('Question').addEventListener('tap', function() {
46
-//	var nwaiting = plus.nativeUI.showWaiting();
47
-//	webviewShow = plus.webview.create("portrait_head.html"); //后台创建webview并打开show.html  
48
-//	webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
49
-//		nwaiting.close(); //新webview的载入完毕后关闭等待框  
50
-//		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
51
-//	}, false);
52
-//
53
-//});
44
+$('#xgPassword').on('tap', function() {
45
+	$.ajax({
46
+		type: "post",
47
+		dataType: 'json',
48
+		url: huayi.config.callcenter_url + '/UserAccount/EditUsers',
49
+		async: true,
50
+		data: {
51
+			userid:$("#UserId").val(),
52
+			username: $('.F_UserName').val(), //用户名
53
+			usercode: $('.rolname').val(), //账号
54
+			Password: $('.password').val(), //密码
55
+			token: localStorage.getItem("token")
56
+		},
57
+		success: function(data) {
58
+			if(data.state == "success") {
59
+				mui.toast('修改成功!');
60
+				setTimeout(function () {
61
+					window.location.href="../login.html"
62
+				},1500)
63
+			} else {
64
+				mui.toast(data.message);
65
+			}
66
+		}
67
+	});
68
+})

+ 125 - 0
双汇APP-andriod/Common/js/xg_manage.js

1
+mui.init({
2
+	beforeback: function() {    
3
+		var list = plus.webview.currentWebview().opener();    
4
+		//refresh是A页面自定义事件
5
+		mui.fire(list, 'refresh');
6
+		//返回true,继续页面关闭逻辑
7
+		return true;
8
+	}
9
+});
10
+
11
+//初始化单页的区域滚动
12
+mui('.mui-scroll-wrapper').scroll();
13
+mui.plusReady(function() {
14
+	var wv = plus.webview.currentWebview();
15
+	var nameid = wv.nameid;
16
+	var name = wv.name;
17
+	mui.ajax(huayi.config.callcenter_url + '/UserAccount/GetUser', {
18
+		data: {
19
+			usercode:name,
20
+			userid:nameid,
21
+			token: localStorage.getItem("token"),
22
+		},
23
+		dataType: 'json', //服务器返回json格式数据
24
+		async: false,
25
+		type: 'get', //HTTP请求类型
26
+		timeout: 10000, //超时时间设置为10秒;
27
+		headers: {
28
+			'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
29
+		},
30
+		success: function(data) {
31
+			var RoleCode = data.data; 
32
+			$("#UserId").val(RoleCode.F_UserId) //用户id
33
+			$(".F_UserName").val(RoleCode.F_UserName); //员工姓名
34
+			$(".F_SeatGroup").val(RoleCode.depname); //部门
35
+			$(".rolname").val(RoleCode.F_UserCode); //员工工号
36
+			$(".password").val(RoleCode.F_Password); //密码
37
+			$(".F_Mobile").val(RoleCode.F_Mobile); //手机号
38
+			
39
+			 
40
+		},
41
+		error: function(xhr, type, errorThrown) {
42
+			//异常处理;
43
+		}
44
+
45
+	});
46
+	//	产品代码
47
+	var Product = [];
48
+	$.ajax({
49
+		type: "get",
50
+		url: huayi.config.callcenter_url + 'Department/GetDeptList',
51
+		async: false,
52
+		data: {
53
+			flag: "CPDM",
54
+			token:localStorage.getItem("token")
55
+		},
56
+		dataType: 'json',
57
+		success: function(res) {
58
+			if(res.state.toLowerCase() === "success") {
59
+				res = res.data;
60
+				if(res && res.length > 0) {
61
+					res.forEach(function(v, i) {
62
+						var obj = {};
63
+						obj.value = v.id;
64
+						obj.text = v.text;
65
+						obj.children = v.children;
66
+						Product.push(obj);
67
+					});
68
+				}
69
+			}
70
+		}
71
+	});	
72
+	(function($, doc) {
73
+		$.init(); 
74
+		$.ready(function() {
75
+			//产品代码
76
+			var userPicker2 = new $.PopPicker({layer: 3});
77
+			userPicker2.setData(Product);
78
+			var showUserPickerButton2 = doc.getElementById('showUserPickerProduct');
79
+			var F_Product = doc.getElementById('F_ProductType');
80
+			showUserPickerButton2.addEventListener('tap', function(event) {
81
+				userPicker2.show(function(items) {
82
+					F_Product.value = items[0].textt + "-" + items[1].text + "-" + items[2].text;
83
+					F_Product.setAttribute("data-index", items[2].value);
84
+					if (items[2].text="undefined") {
85
+						F_Product.value = items[0].text + "-" + items[1].text;
86
+						F_Product.setAttribute("data-index", items[1].value);
87
+					}else if (items[1].text="undefined") {
88
+						F_Product.value = items[0].text;
89
+						F_Product.setAttribute("data-index", items[0].value);
90
+					}else {
91
+						
92
+					}
93
+					
94
+					
95
+				});
96
+			}, false); 
97
+		})
98
+	})(mui, document);
99
+})
100
+$('#xgPassword').on('tap', function() {
101
+	$.ajax({
102
+		type: "post",
103
+		dataType: 'json',
104
+		url: huayi.config.callcenter_url + '/UserAccount/EditUsers',
105
+		async: true,
106
+		data: {
107
+			userid:$("#UserId").val(),
108
+			username: $('.F_UserName').val(), //用户名
109
+			usercode: $('.rolname').val(), //账号
110
+			Password: $('.password').val(), //密码
111
+			token: localStorage.getItem("token")
112
+		},
113
+		success: function(data) {
114
+			if(data.state == "success") {
115
+				mui.toast('修改成功!');
116
+				setTimeout(function () {
117
+					window.location.href="../login.html"
118
+				},1500)
119
+			} else {
120
+				mui.toast(data.message);
121
+			}
122
+		}
123
+	});
124
+})
125
+

+ 19 - 3
双汇APP-andriod/Common/portrait_head.html

29
 		                    </a>
29
 		                    </a>
30
 		                </li>
30
 		                </li>
31
 						<li class="mui-table-view-cell">
31
 						<li class="mui-table-view-cell">
32
-							<a id="Bom">用户名 <span class="mui-pull-right F_UserName"></span></a>
32
+							<div class="mui-input-row">
33
+								<label class="label">用户名:</label>
34
+								<input style="font-size: 14px;" type="text" placeholder="请填写用户名" class="F_UserName">
35
+							</div>
33
 						</li>
36
 						</li>
34
 						<li class="mui-table-view-cell">
37
 						<li class="mui-table-view-cell">
35
-							<a href="#" id='update'>账号<span class="mui-pull-right rolname"></span></a>
38
+							<div class="mui-input-row">
39
+								<label class="label">账号:</label>
40
+								<input style="font-size: 14px;" type="text"  placeholder="请填写账号" class="rolname">
41
+							</div>
36
 						</li>
42
 						</li>
43
+						<li class="mui-table-view-cell">
44
+							<div class="mui-input-row">
45
+								<label class="label">密码:</label>
46
+								<input style="font-size: 14px;" type="text" placeholder="请填写密码" class="password">
47
+							</div>
48
+						</li>
49
+						
37
 					</ul>
50
 					</ul>
51
+					<div class="mui-content-padded">
52
+						<button id='xgPassword' class="mui-btn mui-btn-block mui-btn-warning" style="font-size: 16px;">保存</button>
53
+					</div>
38
 				</div>
54
 				</div>
39
 				
55
 				
40
 			</div>
56
 			</div>
41
 			
57
 			
42
 		</div>
58
 		</div>
43
-		<input type="hidden" id="Vb" />
59
+		<input type="hidden" id="UserId" />
44
 		</div>
60
 		</div>
45
 
61
 
46
 		<!--常见问题-->
62
 		<!--常见问题-->

+ 90 - 0
双汇APP-andriod/Common/xg_manage.html

1
+<!DOCTYPE html>
2
+<html>
3
+	<head>
4
+		<meta charset="utf-8">
5
+		<title>修改资料</title>
6
+		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
7
+		<meta name="apple-mobile-web-app-capable" content="yes">
8
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
9
+		<link rel="stylesheet" href="../css/mui.min.css">
10
+		<link href="../css/mui.picker.css" rel="stylesheet" />
11
+		<link href="../css/mui.poppicker.css" rel="stylesheet" />
12
+		<link rel="stylesheet" href="css/portrait.css" />
13
+		<style>
14
+			.type_down{
15
+				position: absolute;
16
+				right: 0px;
17
+				top: 8px;
18
+			}
19
+			#F_ProductType{
20
+				font-size: 14px;
21
+			}
22
+		</style>
23
+	</head>
24
+	<body>
25
+		<header class="mui-bar mui-bar-nav">
26
+			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
27
+			<h1 id="title" class="mui-title">修改用户资料</h1>
28
+		</header>
29
+		<!--页面主内容区开始-->
30
+		<div class="mui-page-content" style="margin-top: 44px;">
31
+			<div class="mui-scroll-wrapper">
32
+				<div class="mui-scroll">
33
+					<ul class="mui-table-view mui-table-view-chevron">
34
+		               
35
+						<li class="mui-table-view-cell">
36
+							<div class="mui-input-row">
37
+								<label class="label">员工姓名:</label>
38
+								<input style="font-size: 14px;" type="text" placeholder="请填写用户名" class="F_UserName">
39
+							</div>
40
+						</li>
41
+						<li class="mui-table-view-cell">
42
+							<div class="mui-input-row"> 
43
+								<label class="label">员工工号:</label>
44
+								<input disabled="disabled" style="font-size: 14px;" type="text"  placeholder="请填写账号" class="rolname">
45
+							</div>
46
+						</li>
47
+						
48
+						<li class="mui-table-view-cell" id="showUserPickerProduct">
49
+							<div class="mui-input-row">
50
+								<label class="label">部门:</label>
51
+								<input id='F_ProductType'  data-index="" type="text" placeholder="请选择部门" class="F_SeatGroup">
52
+								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
53
+							</div>
54
+						</li>
55
+						<li class="mui-table-view-cell">
56
+							<div class="mui-input-row">
57
+								<label class="label">手机号:</label>
58
+								<input style="font-size: 14px;" type="text" placeholder="请填写密码" class="F_Mobile">
59
+							</div>
60
+						</li>
61
+						<li class="mui-table-view-cell">
62
+							<div class="mui-input-row">
63
+								<label class="label">密码:</label>
64
+								<input style="font-size: 14px;" type="text" placeholder="请填写密码" class="password">
65
+							</div>
66
+						</li>
67
+						
68
+					</ul>
69
+					<div class="mui-content-padded">
70
+						<button id='xgPassword' class="mui-btn mui-btn-block mui-btn-warning" style="font-size: 16px;">保存</button>
71
+					</div>
72
+				</div>
73
+				
74
+			</div>
75
+			
76
+		</div>
77
+			<input type="hidden" id="UserId" />
78
+		</div>		
79
+		<!--常见问题-->
80
+	</body>
81
+	<script src="../js/mui.min.js "></script>
82
+	<script src="../js/zepto.js"></script>
83
+	<script src="../js/mui.picker.js"></script>
84
+	<script src="../js/mui.poppicker.js"></script>
85
+	<script src="../js/jquery-1.8.js"></script>
86
+	<script src="../js/huayi.config.js"></script>
87
+	<script src="../js/mui.view.js "></script>
88
+	<script src="../js/app.js"></script>
89
+	<script src="js/xg_manage.js"></script>
90
+</html>

+ 4 - 2
双汇APP-andriod/Setting-1.html

47
 						</ul>
47
 						</ul>
48
 						<ul class="mui-table-view mui-table-view-chevron">
48
 						<ul class="mui-table-view mui-table-view-chevron">
49
 							<li class="mui-table-view-cell">
49
 							<li class="mui-table-view-cell">
50
-
51
-								<a id="Question" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
50
+								<a id="management" class="mui-navigate-right"><img class="Img" src="img/Wb.png" alt="" />用户管理 <i class="mui-pull-right "></i></a>
52
 							</li>
51
 							</li>
53
 							<li class="mui-table-view-cell">
52
 							<li class="mui-table-view-cell">
53
+								<a id="Question" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
54
+							</li>
55
+							<li class="mui-table-view-cell"> 
54
 								<a id="Bom" class="mui-navigate-right"><img class="Img" src="img/Wc.png" alt="" />服务协议 <i class="mui-pull-right "></i></a>
56
 								<a id="Bom" class="mui-navigate-right"><img class="Img" src="img/Wc.png" alt="" />服务协议 <i class="mui-pull-right "></i></a>
55
 							</li>
57
 							</li>
56
 							<li class="mui-table-view-cell">
58
 							<li class="mui-table-view-cell">

+ 1 - 1
双汇APP-andriod/css/index.css

4
 }
4
 }
5
 
5
 
6
 .mui-bar-nav {
6
 .mui-bar-nav {
7
-	background-color: #323137 !important;
7
+	background: #cd0000 !important;
8
 	padding-right: 15px;
8
 	padding-right: 15px;
9
 }
9
 }
10
 
10
 

二進制
双汇APP-andriod/img/Wb.png


+ 2 - 2
双汇APP-andriod/js/huayi.config.js

2
 	var huayi = {};
2
 	var huayi = {};
3
 }
3
 }
4
 huayi.config = {
4
 huayi.config = {
5
-	callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
5
+	//callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
7
-	//callcenter_url: "http://192.168.5.9:1001/",//生产环境
7
+	callcenter_url: "http://192.168.8.9:1001/",//生产环境
8
 	socket_ip: "222.143.137.63", //ip
8
 	socket_ip: "222.143.137.63", //ip
9
 	socket_port: "8081", //端口
9
 	socket_port: "8081", //端口
10
 	menuworktime: 30000, //菜单工单数量刷新间隔
10
 	menuworktime: 30000, //菜单工单数量刷新间隔

+ 9 - 0
双汇APP-andriod/js/setting.js

141
 		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
141
 		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
142
 	}, false);
142
 	}, false);
143
 });
143
 });
144
+//常见问题
145
+document.getElementById('management').addEventListener('tap', function() {
146
+	var nwaiting = plus.nativeUI.showWaiting();
147
+	webviewShow = plus.webview.create("Common/Setting_manage.html"); //后台创建webview并打开show.html  
148
+	webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
149
+		nwaiting.close(); //新webview的载入完毕后关闭等待框  
150
+		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
151
+	}, false);
152
+});
144
 //退出
153
 //退出
145
 document.getElementById('exit').addEventListener('tap', function() {
154
 document.getElementById('exit').addEventListener('tap', function() {
146
 	var btnArray = [{
155
 	var btnArray = [{

+ 9 - 1
双汇APP-andriod/manifest.json

1007
 					"Common/Setting-FabKui.html",
1007
 					"Common/Setting-FabKui.html",
1008
 					"Common/Phone-list.html",
1008
 					"Common/Phone-list.html",
1009
 					"Common/Setting-portrait.html",
1009
 					"Common/Setting-portrait.html",
1010
-					"Common/portrait_head.html"
1010
+					"Common/portrait_head.html",
1011
+					"Common/Setting_manage.html"
1011
 				],
1012
 				],
1012
 				"priority": 0
1013
 				"priority": 0
1013
 			},
1014
 			},
2473
 					"Setting-1.html"
2474
 					"Setting-1.html"
2474
 				],
2475
 				],
2475
 				"priority": 0
2476
 				"priority": 0
2477
+			},
2478
+			"Common/Setting_manage.html": {
2479
+				"resources": [],
2480
+				"refer": [
2481
+					"Common/xg_manage.html"
2482
+				],
2483
+				"priority": 0
2476
 			}
2484
 			}
2477
 		},
2485
 		},
2478
 		"idle": {
2486
 		"idle": {

+ 1 - 1
双汇APP-andriod/tab-phone.html

158
 															'</div>'+
158
 															'</div>'+
159
 															'<div class="oa-contact-content mui-table-cell">'+
159
 															'<div class="oa-contact-content mui-table-cell">'+
160
 																'<h4 class="oa-contact-name size-14">'+n.F_Name+
160
 																'<h4 class="oa-contact-name size-14">'+n.F_Name+
161
-																'<span class="oa-contact-position mui-h6">'+n.F_Position+'</span></h4>'+
161
+																'<span class="oa-contact-position mui-h6">'+n.F_Area+"-"+n.F_Offce+"-"+n.F_Position+'</span></h4>'+
162
 																'<h4 class="oa-contact-email mui-h5">'+n.F_Mobile+'</h4>'+
162
 																'<h4 class="oa-contact-email mui-h5">'+n.F_Mobile+'</h4>'+
163
 															'</div>'+
163
 															'</div>'+
164
 														'</div>'+
164
 														'</div>'+

+ 7 - 1
双汇APP-andriod/unpackage/.confirmed_dependencies

140
 			"Common/Setting-FabKui.html",
140
 			"Common/Setting-FabKui.html",
141
 			"Common/Phone-list.html",
141
 			"Common/Phone-list.html",
142
 			"Common/Setting-portrait.html",
142
 			"Common/Setting-portrait.html",
143
-			"Common/portrait_head.html"
143
+			"Common/portrait_head.html",
144
+			"Common/Setting_manage.html"
144
 		],
145
 		],
145
 		"resources": [
146
 		"resources": [
146
 			"img/Wc.png",
147
 			"img/Wc.png",
1491
 		"refer": [
1492
 		"refer": [
1492
 			"Setting-1.html"
1493
 			"Setting-1.html"
1493
 		]
1494
 		]
1495
+	},
1496
+	"Common/Setting_manage.html": {
1497
+		"refer": [
1498
+			"Common/xg_manage.html"
1499
+		]
1494
 	}
1500
 	}
1495
 }
1501
 }

+ 3 - 4
双汇APP-ios/Setting-1.html

32
 				<div class="mui-scroll-wrapper">
32
 				<div class="mui-scroll-wrapper">
33
 					<div class="mui-scroll">
33
 					<div class="mui-scroll">
34
 						<ul class="mui-table-view mui-table-view-chevron setting_bj" >
34
 						<ul class="mui-table-view mui-table-view-chevron setting_bj" >
35
-							<a class=" Img-box" id="Question">
35
+							<a class=" Img-box">
36
 								<div class="mui-media-body">
36
 								<div class="mui-media-body">
37
 									<div class="top_left"><img src="img/3.png"/></div>
37
 									<div class="top_left"><img src="img/3.png"/></div>
38
 									<div class="top_text">
38
 									<div class="top_text">
46
 							</a>
46
 							</a>
47
 						</ul>
47
 						</ul>
48
 						<ul class="mui-table-view mui-table-view-chevron">
48
 						<ul class="mui-table-view mui-table-view-chevron">
49
-							<li class="mui-table-view-cell">
50
-
49
+							<!-- <li class="mui-table-view-cell">
51
 								<a id="Question" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
50
 								<a id="Question" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
52
-							</li>
51
+							</li> -->
53
 							<li class="mui-table-view-cell">
52
 							<li class="mui-table-view-cell">
54
 								<a id="Bom" class="mui-navigate-right"><img class="Img" src="img/Wc.png" alt="" />服务协议 <i class="mui-pull-right "></i></a>
53
 								<a id="Bom" class="mui-navigate-right"><img class="Img" src="img/Wc.png" alt="" />服务协议 <i class="mui-pull-right "></i></a>
55
 							</li>
54
 							</li>

+ 2 - 2
双汇APP-ios/js/huayi.config.js

2
 	var huayi = {};
2
 	var huayi = {};
3
 }
3
 }
4
 huayi.config = {
4
 huayi.config = {
5
-	callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
5
+	//callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
7
-	//callcenter_url: "http://192.168.5.9:1001/",//生产环境
7
+	callcenter_url: "http://192.168.8.9:1001/",//生产环境
8
 	socket_ip: "222.143.137.63", //ip
8
 	socket_ip: "222.143.137.63", //ip
9
 	socket_port: "8081", //端口
9
 	socket_port: "8081", //端口
10
 	menuworktime: 30000, //菜单工单数量刷新间隔
10
 	menuworktime: 30000, //菜单工单数量刷新间隔

+ 8 - 8
双汇APP-ios/js/setting.js

124
 	}
124
 	}
125
 }
125
 }
126
 //常见问题
126
 //常见问题
127
-document.getElementById('Question').addEventListener('tap', function() {
128
-	var nwaiting = plus.nativeUI.showWaiting();
129
-	webviewShow = plus.webview.create("Common/portrait_head.html"); //后台创建webview并打开show.html  
130
-	webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
131
-		nwaiting.close(); //新webview的载入完毕后关闭等待框  
132
-		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
133
-	}, false);
134
-});
127
+// document.getElementById('Question').addEventListener('tap', function() {
128
+// 	var nwaiting = plus.nativeUI.showWaiting();
129
+// 	webviewShow = plus.webview.create("Common/portrait_head.html"); //后台创建webview并打开show.html  
130
+// 	webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
131
+// 		nwaiting.close(); //新webview的载入完毕后关闭等待框  
132
+// 		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
133
+// 	}, false);
134
+// });
135
 //常见问题
135
 //常见问题
136
 document.getElementById('Bom').addEventListener('tap', function() {
136
 document.getElementById('Bom').addEventListener('tap', function() {
137
 	var nwaiting = plus.nativeUI.showWaiting();
137
 	var nwaiting = plus.nativeUI.showWaiting();

+ 1 - 1
双汇APP-ios/manifest.json

3
     "id" : "io.dcloud.H5E949709", /*应用的标识,创建应用时自动生成,勿手动修改*/
3
     "id" : "io.dcloud.H5E949709", /*应用的标识,创建应用时自动生成,勿手动修改*/
4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
5
     "version" : {
5
     "version" : {
6
-        "name" : "1.1.0", /*应用版本名称*/
6
+        "name" : "1.1.1", /*应用版本名称*/
7
         "code" : "83"
7
         "code" : "83"
8
     },
8
     },
9
     "description" : "", /*应用描述信息*/
9
     "description" : "", /*应用描述信息*/

+ 2 - 2
双汇APP-ios/personal.html

268
 				</li>
268
 				</li>
269
 			</ul>
269
 			</ul>
270
 			
270
 			
271
-			<ul class="mui-table-view mui-grid-view mui-grid-9 Common-box addDisplay" style="display: none;">
272
-				<li class="mui-table-view-cell mui-media mui-col-xs-12 mui-col-sm-6">
271
+			<ul class="mui-table-view mui-grid-view mui-grid-12 Common-box addDisplay" style="display: none; margin-top: 0;">
272
+				<li class="mui-table-view-cell mui-media mui-col-xs-12 mui-col-sm-12">
273
 					<a href="javascript:;" id="Report" data-index="0" style="padding: 0px;">
273
 					<a href="javascript:;" id="Report" data-index="0" style="padding: 0px;">
274
 						<div class="Icon icon-1"><i class="mui-icon iconfont icon-bianji "></i></div>
274
 						<div class="Icon icon-1"><i class="mui-icon iconfont icon-bianji "></i></div>
275
 						<div class="addWord">提出诉求</div>
275
 						<div class="addWord">提出诉求</div>

二進制
双汇APP.zip


+ 3 - 4
双汇APP/Setting-1.html

32
 				<div class="mui-scroll-wrapper">
32
 				<div class="mui-scroll-wrapper">
33
 					<div class="mui-scroll">
33
 					<div class="mui-scroll">
34
 						<ul class="mui-table-view mui-table-view-chevron setting_bj" >
34
 						<ul class="mui-table-view mui-table-view-chevron setting_bj" >
35
-							<a class=" Img-box" id="Question">
35
+							<a class=" Img-box">
36
 								<div class="mui-media-body">
36
 								<div class="mui-media-body">
37
 									<div class="top_left"><img src="img/3.png"/></div>
37
 									<div class="top_left"><img src="img/3.png"/></div>
38
 									<div class="top_text">
38
 									<div class="top_text">
46
 							</a>
46
 							</a>
47
 						</ul>
47
 						</ul>
48
 						<ul class="mui-table-view mui-table-view-chevron">
48
 						<ul class="mui-table-view mui-table-view-chevron">
49
-							<li class="mui-table-view-cell">
50
-
49
+							<!-- <li class="mui-table-view-cell">
51
 								<a id="Question" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
50
 								<a id="Question" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
52
-							</li>
51
+							</li> -->
53
 							<li class="mui-table-view-cell">
52
 							<li class="mui-table-view-cell">
54
 								<a id="Bom" class="mui-navigate-right"><img class="Img" src="img/Wc.png" alt="" />服务协议 <i class="mui-pull-right "></i></a>
53
 								<a id="Bom" class="mui-navigate-right"><img class="Img" src="img/Wc.png" alt="" />服务协议 <i class="mui-pull-right "></i></a>
55
 							</li>
54
 							</li>

+ 1 - 1
双汇APP/js/huayi.config.js

4
 huayi.config = {
4
 huayi.config = {
5
 	callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
5
 	callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
7
-	//callcenter_url: "http://192.168.5.9:1001/",//生产环境
7
+	//callcenter_url: "http://192.168.8.9:1001/",//生产环境
8
 	socket_ip: "222.143.137.63", //ip
8
 	socket_ip: "222.143.137.63", //ip
9
 	socket_port: "8081", //端口
9
 	socket_port: "8081", //端口
10
 	menuworktime: 30000, //菜单工单数量刷新间隔
10
 	menuworktime: 30000, //菜单工单数量刷新间隔

+ 8 - 8
双汇APP/js/setting.js

124
 	}
124
 	}
125
 }
125
 }
126
 //常见问题
126
 //常见问题
127
-document.getElementById('Question').addEventListener('tap', function() {
128
-	var nwaiting = plus.nativeUI.showWaiting();
129
-	webviewShow = plus.webview.create("Common/portrait_head.html"); //后台创建webview并打开show.html  
130
-	webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
131
-		nwaiting.close(); //新webview的载入完毕后关闭等待框  
132
-		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
133
-	}, false);
134
-});
127
+// document.getElementById('Question').addEventListener('tap', function() {
128
+// 	var nwaiting = plus.nativeUI.showWaiting();
129
+// 	webviewShow = plus.webview.create("Common/portrait_head.html"); //后台创建webview并打开show.html  
130
+// 	webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
131
+// 		nwaiting.close(); //新webview的载入完毕后关闭等待框  
132
+// 		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
133
+// 	}, false);
134
+// });
135
 //常见问题
135
 //常见问题
136
 document.getElementById('Bom').addEventListener('tap', function() {
136
 document.getElementById('Bom').addEventListener('tap', function() {
137
 	var nwaiting = plus.nativeUI.showWaiting();
137
 	var nwaiting = plus.nativeUI.showWaiting();

+ 2 - 2
双汇APP/manifest.json

1
 {
1
 {
2
-    "@platforms" : [ "android", "iPhone", "ipad" ],
2
+    "@platforms" : [ "android", "iPhone" ],
3
     "id" : "io.dcloud.H5E949709", /*应用的标识,创建应用时自动生成,勿手动修改*/
3
     "id" : "io.dcloud.H5E949709", /*应用的标识,创建应用时自动生成,勿手动修改*/
4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
5
     "version" : {
5
     "version" : {
6
-        "name" : "1.1.1", /*应用版本名称*/
6
+        "name" : "1.1.3", /*应用版本名称*/
7
         "code" : "83"
7
         "code" : "83"
8
     },
8
     },
9
     "description" : "", /*应用描述信息*/
9
     "description" : "", /*应用描述信息*/

+ 2 - 2
双汇APP/personal.html

268
 				</li>
268
 				</li>
269
 			</ul>
269
 			</ul>
270
 			
270
 			
271
-			<ul class="mui-table-view mui-grid-view mui-grid-9 Common-box addDisplay" style="display: none;">
272
-				<li class="mui-table-view-cell mui-media mui-col-xs-12 mui-col-sm-6">
271
+			<ul class="mui-table-view mui-grid-view mui-grid-12 Common-box addDisplay" style="display: none; margin-top: 0;">
272
+				<li class="mui-table-view-cell mui-media mui-col-xs-12 mui-col-sm-12">
273
 					<a href="javascript:;" id="Report" data-index="0" style="padding: 0px;">
273
 					<a href="javascript:;" id="Report" data-index="0" style="padding: 0px;">
274
 						<div class="Icon icon-1"><i class="mui-icon iconfont icon-bianji "></i></div>
274
 						<div class="Icon icon-1"><i class="mui-icon iconfont icon-bianji "></i></div>
275
 						<div class="addWord">提出诉求</div>
275
 						<div class="addWord">提出诉求</div>