Browse Source

平顶山app代码提交

miaofuhao 5 years ago
parent
commit
b6ca34045f

+ 0 - 0
.gitignore


+ 28 - 0
平顶山WebAPP/.project

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>12345平顶山WebAPP</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>com.aptana.ide.core.unifiedBuilder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+	</buildSpec>
14
+	<natures>
15
+		<nature>com.aptana.projects.webnature</nature>
16
+	</natures>
17
+	<filteredResources>
18
+		<filter>
19
+			<id>1590633853754</id>
20
+			<name></name>
21
+			<type>26</type>
22
+			<matcher>
23
+				<id>org.eclipse.ui.ide.multiFilter</id>
24
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
25
+			</matcher>
26
+		</filter>
27
+	</filteredResources>
28
+</projectDescription>

+ 6 - 3
平顶山WebAPP/User-login.html

132
 			
132
 			
133
 			.mui-logo-box {
133
 			.mui-logo-box {
134
 				text-align: center;
134
 				text-align: center;
135
-				padding-top: 80px;
136
-				margin-bottom: 70px;
135
+				
136
+				margin-bottom: 130px;
137
+				width: 100%;
137
 			}
138
 			}
138
 			
139
 			
139
 			.mui-logo-box img {
140
 			.mui-logo-box img {
140
-				margin-bottom: 50px;
141
+				padding-top: 150px;
142
+				width: 80%;
143
+				
141
 			}
144
 			}
142
 			
145
 			
143
 			.mui-input-row {
146
 			.mui-input-row {

BIN
平顶山WebAPP/img/123.png


BIN
平顶山WebAPP/img/32.png


BIN
平顶山WebAPP/img/banner.png


+ 3 - 3
平顶山WebAPP/js/huayi.config.js

3
 }
3
 }
4
 huayi.config = {
4
 huayi.config = {
5
 	//callcenter_url: "http://192.168.8.13:1001/",//生产环境
5
 	//callcenter_url: "http://192.168.8.13:1001/",//生产环境
6
-	//callcenter_url: "http://139.224.236.21:4025/",//生产环境
7
-	callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
6
+	callcenter_url: "http://139.224.236.21:4014/",//生产环境 
7
+	
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, //菜单工单数量刷新间隔
11
-	indextime: 5000, //首页报表刷新间隔
11
+	indextime: 5000, //首页报表刷新间隔 
12
 	arr: [
12
 	arr: [
13
 			"<a class='xg' onclick='ckxq(data)' title='查看'>查看</a>",
13
 			"<a class='xg' onclick='ckxq(data)' title='查看'>查看</a>",
14
 			"<a class='xg' onclick='bj(data)' title='编辑'>编辑</a>",
14
 			"<a class='xg' onclick='bj(data)' title='编辑'>编辑</a>",

+ 20 - 16
平顶山WebAPP/login.html

126
 			
126
 			
127
 			.mui-logo-box {
127
 			.mui-logo-box {
128
 				text-align: center;
128
 				text-align: center;
129
-				padding-top: 80px;
130
-				margin-bottom: 70px;
129
+				
130
+				margin-bottom: 130px;
131
+				width: 100%;
131
 			}
132
 			}
132
 			
133
 			
133
 			.mui-logo-box img {
134
 			.mui-logo-box img {
134
-				margin-bottom: 50px;
135
+				padding-top: 150px;
136
+				width: 80%;
137
+				
135
 			}
138
 			}
136
 			
139
 			
137
 			.mui-input-row {
140
 			.mui-input-row {
210
 
213
 
211
 	<body>
214
 	<body>
212
 
215
 
213
-		<div class="mui-content">
214
-			<form id='login-form' class="mui-input-group">
216
+		<div class="mui-content" >
217
+			<form id="login-form" class="mui-input-group">
215
 				<!--logo-->
218
 				<!--logo-->
216
 				<div class="mui-logo-box">
219
 				<div class="mui-logo-box">
217
 					<div>
220
 					<div>
218
 						<img src="img/123.png" alt="" />
221
 						<img src="img/123.png" alt="" />
219
 					</div>
222
 					</div>
223
+					
220
 				</div>
224
 				</div>
221
 				<div class="mui-input-row">
225
 				<div class="mui-input-row">
222
 					<label><span class="mui-icon iconfont icon-yonghu"></span></label>
226
 					<label><span class="mui-icon iconfont icon-yonghu"></span></label>
223
-					<input id='account' type="text" class="mui-input-clear mui-input" placeholder="请输入账号">
227
+					<input id="account" type="text" class="mui-input-clear mui-input" placeholder="请输入账号">
224
 				</div>
228
 				</div>
225
 				<div class="mui-input-row mui-password">
229
 				<div class="mui-input-row mui-password">
226
 					<label><span class="mui-icon iconfont icon-suo"></span></label>
230
 					<label><span class="mui-icon iconfont icon-suo"></span></label>
227
-					<input id='password' type="password" class=" mui-input-password mui-input" placeholder="请输入密码">
231
+					<input id="password" type="password" class=" mui-input-password mui-input" placeholder="请输入密码">
228
 				</div>
232
 				</div>
229
 			</form>
233
 			</form>
230
 			<div class="mui-content-padded">
234
 			<div class="mui-content-padded">
231
-				<button id='login' class="mui-btn mui-btn-block mui-btn-primary" style="font-size: 16px;">登录</button>
235
+				<button id="login" class="mui-btn mui-btn-block mui-btn-primary" style="font-size: 16px;">登录</button>
232
 			</div>
236
 			</div>
233
 			<div class="mui-content-padded oauth-area" style="width: 100%;  margin-top: 30px;">
237
 			<div class="mui-content-padded oauth-area" style="width: 100%;  margin-top: 30px;">
234
-				<a href="User-login.html" class="reg_href" style="font-size: 14px;">我是市民</a>		
238
+				<a href="User-login.html" class="reg_href" style="font-size: 14px;">我是市民</a>
235
 			</div>
239
 			</div>
236
 		</div>
240
 		</div>
237
 		<script src="js/mui.min.js"></script>
241
 		<script src="js/mui.min.js"></script>
244
 			mui.plusReady(function() {
248
 			mui.plusReady(function() {
245
 				var usercode = localStorage.getItem("user"); //获取本地存储
249
 				var usercode = localStorage.getItem("user"); //获取本地存储
246
 				var psw = localStorage.getItem("psw"); //获取本地存储s
250
 				var psw = localStorage.getItem("psw"); //获取本地存储s
247
-				if(usercode != null) //如果缓存中有数据,则加载出来 
251
+				if (usercode != null) //如果缓存中有数据,则加载出来 
248
 				{
252
 				{
249
 					document.getElementById("account").value = usercode;
253
 					document.getElementById("account").value = usercode;
250
 					document.getElementById("password").value = localStorage.getItem("psw");
254
 					document.getElementById("password").value = localStorage.getItem("psw");
251
 				}
255
 				}
252
 				document.getElementById("login").addEventListener('tap', function() {
256
 				document.getElementById("login").addEventListener('tap', function() {
253
-//					localStorage.clear();
257
+					//					localStorage.clear();
254
 					var username = document.getElementById('account').value;
258
 					var username = document.getElementById('account').value;
255
 					var password = document.getElementById('password').value;
259
 					var password = document.getElementById('password').value;
256
 					var data = {
260
 					var data = {
258
 						"password": $.md5(password),
262
 						"password": $.md5(password),
259
 						" extensionphone": 1
263
 						" extensionphone": 1
260
 					};
264
 					};
261
-					if(!username) {
265
+					if (!username) {
262
 						plus.nativeUI.toast('输入账号');
266
 						plus.nativeUI.toast('输入账号');
263
-					} else if(!password) {
267
+					} else if (!password) {
264
 						plus.nativeUI.toast('密码不能为空');
268
 						plus.nativeUI.toast('密码不能为空');
265
 					} else {
269
 					} else {
266
-						if(plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE) {
270
+						if (plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE) {
267
 							mui.toast("网络连接中断!");
271
 							mui.toast("网络连接中断!");
268
 						}
272
 						}
269
 						// 调用ajax  
273
 						// 调用ajax  
273
 							type: 'post', //HTTP请求类型
277
 							type: 'post', //HTTP请求类型
274
 							timeout: 10000, //超时时间设置为10秒
278
 							timeout: 10000, //超时时间设置为10秒
275
 							success: function(data) {
279
 							success: function(data) {
276
-								if(data.state == "success") {
280
+								if (data.state == "success") {
277
 									localStorage.setItem("token", data.data.token);
281
 									localStorage.setItem("token", data.data.token);
278
 									localStorage.setItem("user", username);
282
 									localStorage.setItem("user", username);
279
 									localStorage.setItem("psw", password);
283
 									localStorage.setItem("psw", password);
301
 		</script>
305
 		</script>
302
 	</body>
306
 	</body>
303
 
307
 
304
-</html>
308
+</html>

+ 3 - 3
平顶山WebAPP/manifest.json

1
 {
1
 {
2
     "@platforms" : [ "android", "iPhone", "iPad" ],
2
     "@platforms" : [ "android", "iPhone", "iPad" ],
3
-    "id" : "io.dcloud.H5E9497099", /*应用的标识,创建应用时自动生成,勿手动修改*/
4
-    "name" : "12345马上办便民服务热线", /*应用名称,程序桌面图标名称*/
3
+    "id" : "io.dcloud.H5E9497000", /*应用的标识,创建应用时自动生成,勿手动修改*/
4
+    "name" : "平顶山12345政府服务热线", /*应用名称,程序桌面图标名称*/
5
     "version" : {
5
     "version" : {
6
-        "name" : "1.9.2", /*应用版本名称*/
6
+        "name" : "1.0.0", /*应用版本名称*/
7
         "code" : "83"
7
         "code" : "83"
8
     },
8
     },
9
     "description" : "", /*应用描述信息*/
9
     "description" : "", /*应用描述信息*/

BIN
平顶山WebAPP/unpackage/res/icons/120x120.png


BIN
平顶山WebAPP/unpackage/res/icons/144x144.png


BIN
平顶山WebAPP/unpackage/res/icons/152x152.png


BIN
平顶山WebAPP/unpackage/res/icons/167x167.png


BIN
平顶山WebAPP/unpackage/res/icons/180x180.png


BIN
平顶山WebAPP/unpackage/res/icons/192x192.png


BIN
平顶山WebAPP/unpackage/res/icons/20x20.png


BIN
平顶山WebAPP/unpackage/res/icons/29x29.png


BIN
平顶山WebAPP/unpackage/res/icons/40x40.png


BIN
平顶山WebAPP/unpackage/res/icons/58x58.png


BIN
平顶山WebAPP/unpackage/res/icons/60x60.png


BIN
平顶山WebAPP/unpackage/res/icons/76x76.png


BIN
平顶山WebAPP/unpackage/res/icons/80x80.png


BIN
平顶山WebAPP/unpackage/res/icons/87x87.png


BIN
平顶山WebAPP/unpackage/res/icons/96x96.png