瀏覽代碼

商丘代码提交

miaofuhao 4 年之前
父節點
當前提交
e295815822

+ 13 - 4
WebSite/comment/ComHeader.html

@@ -91,10 +91,10 @@
91 91
                 <a href="index.html" target="_self">网站首页</a>
92 92
             </li>
93 93
             <li>
94
-                <a href="dongtai.html" target="_self">工作动态</a>
94
+                <a href="newsList.html?type=1" target="_self">工作动态</a>
95 95
             </li>
96 96
             <li>
97
-                <a href="gonggao.html" target="_self">通知通告</a>
97
+                <a href="newsList.html?type=6" target="_self">通知通告</a>
98 98
             </li>
99 99
             <li>
100 100
                 <a href="tousu.html" target="_self">网上受理</a>
@@ -103,10 +103,19 @@
103 103
                 <a href="shouli.html" target="_self">网上查询</a>
104 104
             </li>
105 105
             <li>
106
-                <a href="zhengce.html" target="_self">政策法规</a>
106
+                <a href="newsList.html?type=4" target="_self">政策法规</a>
107
+            </li>
108
+            <li>
109
+                <a href="newsList.html?type=7" target="_self">政策解读</a>
110
+            </li>
111
+            <li>
112
+                <a href="newsList.html?type=8" target="_self">机构职能</a>
113
+            </li>
114
+            <li>
115
+                <a href="newsList.html?type=9" target="_self">领导信息</a>
107 116
             </li>
108 117
             <li class="navLast">
109
-                <a href="PeopleNews.html" target="_self">民情速递</a>
118
+                <a href="newsList.html?type=2" target="_self">民情速递</a>
110 119
             </li>
111 120
         </ul>
112 121
     </div>

+ 1 - 1
WebSite/css/indexs.css

@@ -1745,7 +1745,7 @@ ul.acceptance>li>img {
1745 1745
 	padding: 15px 0;
1746 1746
 }
1747 1747
 #navcon_box li{
1748
-	width: 14.28571428571429%;
1748
+	width: 10%;
1749 1749
 	float: left;
1750 1750
 		
1751 1751
 }

+ 2 - 1
WebSite/js/common/huayi.config.js

@@ -2,9 +2,10 @@
2 2
     var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
+	//http://12345.shangqiu.gov.cn:8819/",//生产环境
5 6
     //callcenter_url: "http://192.168.4.18:4010/",//生产环境
6 7
     //callcenter_url: "http://222.89.245.66:8819/",//曝光台有数据
7
-  callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
8
+  callcenter_url: "http://192.168.8.20:1001/",//生产环境
8 9
 
9 10
     //callcenter_url: "http://localhost:63662/",//测试环境
10 11
     headurl: "/comment/ComHeader.html",

+ 85 - 0
WebSite/js/newsList.js

@@ -0,0 +1,85 @@
1
+var type = helper.request.queryString('type')
2
+$(document).ready(function() {
3
+	GetWebReleaseList();
4
+	switch(type + '') {
5
+		case '1':
6
+			$('.active').text('工作动态')
7
+			document.title = '工作动态';
8
+			break;
9
+		case '2':
10
+			$('.active').text('民情速递')
11
+			document.title = '民情速递';
12
+			break;
13
+		case '3':
14
+			$('.active').text('曝光台')
15
+			document.title = '曝光台';
16
+			break;
17
+		case '4':
18
+			$('.active').text('政策法规')
19
+			document.title = '政策法规';
20
+			break;
21
+		case '5':
22
+			$('.active').text('工作掠影')
23
+			document.title = '工作掠影';
24
+			break;
25
+		case '6':
26
+			$('.active').text('公告')
27
+			document.title = '公告';
28
+			break;
29
+		case '7':
30
+			$('.active').text('政策解读')
31
+			document.title = '政策解读';
32
+			break;
33
+		case '8':
34
+			$('.active').text('机构职能')
35
+			document.title = '机构职能';
36
+			break;
37
+		case '9':
38
+			$('.active').text('领导信息')
39
+			document.title = '领导信息';
40
+			break;
41
+			
42
+	}
43
+//	getClient();
44
+	//顶部hover
45
+	$('.topbarWx').hover(function() {
46
+		$('.topbarWx .topbarWx-box').css('left', $(this).offset().left);
47
+	});
48
+	$('.topbarClient').hover(function() {
49
+		$('.topbarClient .topbarClient-box').css('left', $(this).offset().left);
50
+	});
51
+
52
+});
53
+function GetWebReleaseList() {
54
+layui.use('table', function(){
55
+var table = layui.table;
56
+
57
+//方法级渲染
58
+table.render({
59
+    elem: '#list',
60
+   url: huayi.config.callcenter_url + "Web/GetWebNewsList",
61
+ 	 method: 'get', //如果无需自定义HTTP类型,可不加该参数
62
+	skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
63
+	even: true, //开启隔行背景
64
+    where: {type:type},
65
+    limit:10,
66
+    limits:[10],
67
+    request: {
68
+		   pageName: 'page' //页码的参数名称,默认:page
69
+		  ,limitName: 'pagesize' //每页数据量的参数名,默认:limit
70
+	},
71
+	response: {
72
+		statusName: 'state', //状态字段名称
73
+        statusCode: 'success', //状态字段成功值
74
+	  	countName: 'total' //数据总数的字段名称,默认:count
75
+	  	,dataName: 'rows' //数据列表的字段名称,默认:data
76
+	},
77
+    cols: [[
78
+      {field:'bt',  minWidth: 150, title: '信息主题',templet: '#switchTpl'}
79
+		,{field:'sj', width:220, title: '日期'}
80
+    ]]
81
+    ,page: true
82
+});
83
+});
84
+
85
+}

+ 69 - 0
WebSite/leadInformation.html

@@ -0,0 +1,69 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<meta http-equiv="x-ua-compatible" content="ie=edge">
7
+		<link rel="shortcut icon" href="img/32.ico" />
8
+		<title>工作动态</title>
9
+		<script src="js/common/huayi.load.js"></script>
10
+		<link rel="stylesheet" href="layui/css/layui.css" />
11
+		<!--[if lt IE 9]>
12
+		  <style>
13
+			table tbody tr{
14
+				border-bottom: 1px solid #e6e6e6;
15
+			}
16
+		</style>
17
+		<![endif]-->
18
+	</head>
19
+
20
+	<body>
21
+		
22
+		<div class="header"></div>
23
+		<!--内容-->
24
+		<div class="Content">
25
+			<div>
26
+				<div class="navcon_box clearfix navCon" style="height: 560px;">
27
+
28
+					<div class="main-wrap main-body">
29
+						<div class="box-01 red-decoration">
30
+							<div class="box-title">
31
+								<div class="box-title-name">
32
+									<ol class="breadcrumb">
33
+									 	<li><a href="index.html">首页</a></li>
34
+									  	<li class="active">领导信息</li>
35
+									</ol>
36
+								</div>
37
+							</div>
38
+							<ul>
39
+								<li></li>
40
+								<li></li>
41
+								<li></li>
42
+								<li></li>
43
+							</ul>
44
+						</div>
45
+					</div>
46
+				</div>
47
+			</div>
48
+		</div>
49
+		<!--底部开始-->
50
+		<div class="footer">
51
+		</div>
52
+		<div class="footerBot">
53
+        	<script type="text/javascript">document.write(unescape("%3Cspan id='_ideConac' %3E%3C/span%3E%3Cscript src='http://dcs.conac.cn/js/17/264/0000/60935396/CA172640000609353960002.js' type='text/javascript'%3E%3C/script%3E"));</script>
54
+        </div>
55
+		<script id="switchTpl" type="text/html">
56
+			  <!-- 这里的 checked 的状态只是演示 -->
57
+			  <div class="imgs">
58
+			  	<a  href="dongtai-con.html?id={{d.id}}"> {{d.bt}}</a>
59
+			  </div>
60
+			</script>
61
+		<script src="layui/layui.js"></script>
62
+		<!--<script src="js/qrcode.min.js"></script>-->
63
+	    <script src="js/getClient.js"></script>
64
+	    <!--<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js"></script>-->
65
+		<!--<script src="js/newsList.js"></script>-->
66
+	</body>
67
+
68
+</html>
69
+

+ 65 - 0
WebSite/newsList.html

@@ -0,0 +1,65 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<meta http-equiv="x-ua-compatible" content="ie=edge">
7
+		<link rel="shortcut icon" href="img/32.ico" />
8
+		<title>工作动态</title>
9
+		<script src="js/common/huayi.load.js"></script>
10
+		<link rel="stylesheet" href="layui/css/layui.css" />
11
+		<!--[if lt IE 9]>
12
+		  <style>
13
+			table tbody tr{
14
+				border-bottom: 1px solid #e6e6e6;
15
+			}
16
+		</style>
17
+		<![endif]-->
18
+	</head>
19
+
20
+	<body>
21
+		
22
+		<div class="header"></div>
23
+		<!--内容-->
24
+		<div class="Content">
25
+			<div>
26
+				<div class="navcon_box clearfix navCon" style="height: 560px;">
27
+
28
+					<div class="main-wrap main-body">
29
+						<div class="box-01 red-decoration">
30
+							<div class="box-title">
31
+								<div class="box-title-name">
32
+									<ol class="breadcrumb">
33
+									 	<li><a href="index.html">首页</a></li>
34
+									  	<li class="active"></li>
35
+									</ol>
36
+								</div>
37
+							</div>
38
+								<table class="layui-hide" id="list"></table>
39
+							<!--</div>-->
40
+						</div>
41
+					</div>
42
+				</div>
43
+			</div>
44
+		</div>
45
+		<!--底部开始-->
46
+		<div class="footer">
47
+		</div>
48
+		<div class="footerBot">
49
+        	<script type="text/javascript">document.write(unescape("%3Cspan id='_ideConac' %3E%3C/span%3E%3Cscript src='http://dcs.conac.cn/js/17/264/0000/60935396/CA172640000609353960002.js' type='text/javascript'%3E%3C/script%3E"));</script>
50
+        </div>
51
+		<script id="switchTpl" type="text/html">
52
+			  <!-- 这里的 checked 的状态只是演示 -->
53
+			  <div class="imgs">
54
+			  	<a  href="dongtai-con.html?id={{d.id}}"> {{d.bt}}</a>
55
+			  </div>
56
+			</script>
57
+		<script src="layui/layui.js"></script>
58
+		<!--<script src="js/qrcode.min.js"></script>-->
59
+	    <script src="js/getClient.js"></script>
60
+	    <!--<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js"></script>-->
61
+		<script src="js/newsList.js"></script>
62
+	</body>
63
+
64
+</html>
65
+

+ 1 - 1
WebUI/CallCenterWeb.UI/CommonHtml/PrintPreview-1.html

@@ -437,7 +437,7 @@
437 437
 			})
438 438
 
439 439
 			function preview(oper) {
440
-				//debugger;
440
+				debugger;
441 441
 				if(oper < 5) {
442 442
 					bdhtml = window.document.body.innerHTML; //获取当前页的html代码
443 443
 					sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域

+ 2 - 0
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -679,6 +679,7 @@
679 679
 									$list.append($liFile);
680 680
 								}
681 681
 							})
682
+							
682 683
 							layer.photos({
683 684
 							  	photos: '.FJ',
684 685
 							  	anim: 5, //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
@@ -730,6 +731,7 @@
730 731
 							} else {
731 732
 								$('.CLFS').text("当即办理");
732 733
 							}
734
+							
733 735
 							//密级程度
734 736
 							if(Data[0].F_IsProtect == 0) {
735 737
 								$('.MJ').text("普通");

+ 52 - 41
WebUI/CallCenterWeb.UI/WebSite/NewsList.html

@@ -177,7 +177,7 @@
177 177
 
178 178
 					<span>标题:<input type="text" id="Bt" class="inputs" /></span>
179 179
 					<span>
180
-                    栏目类型:
180
+                    	栏目类型:
181 181
                     <select name="" id="lmlx" class="inputs">
182 182
                         <option value="0">全部</option>
183 183
                         <option value="1">工作动态</option>
@@ -186,14 +186,13 @@
186 186
                         <option value="4">政策法规</option>
187 187
                         <option value="5">工作掠影</option>
188 188
                         <option value="6">公告</option>
189
-                        <!--<option value="7">答疑释惑</option>
190
-                        <option value="8">服务承诺</option>
191
-                        <option value="9">效能建设</option>
192
-                        <option value="10">集萃园地</option>>-->
189
+                        <option value="7">政策解读</option>
190
+                        <option value="8">机构职能</option>
191
+                        <option value="9">领导信息</option>
193 192
                     </select>
194 193
                 </span>
195 194
 					<span>
196
-                    图文:
195
+                    		图文:
197 196
                     <select name="" id="istw" class="inputs">
198 197
                         <option value="">全部</option>
199 198
                         <option value="1">是</option>
@@ -246,10 +245,9 @@
246 245
 										<option value="4">政策法规</option>
247 246
 										<option value="5">工作掠影</option>
248 247
 										<option value="6">公告</option>
249
-										<!--<option value="7">答疑释惑</option>
250
-                                    <option value="8">服务承诺</option>
251
-                                    <option value="9">效能建设</option>
252
-                                    <option value="10">集萃园地</option>>-->
248
+										<option value="7">政策解读</option>
249
+				                        <option value="8">机构职能</option>
250
+				                        <option value="9">领导信息</option>
253 251
 									</select>
254 252
 								</td>
255 253
 							</tr>
@@ -260,10 +258,6 @@
260 258
 							<tr>
261 259
 								<th>图片:</th>
262 260
 								<td>
263
-									<!--<span class="tpname"></span>
264
-                                    <input type="button" value="上传图片" class="sctp" />
265
-                                    <input type="file" name="upFile" id="upFile" accept="image/jpeg,image/jpg,image/png" style="display: none;">
266
-                                -->
267 261
 									<div class="uploadTP">
268 262
 										<div class="clearFix">
269 263
 											<div class="crop_left">
@@ -368,11 +362,16 @@
368 362
 				})
369 363
 
370 364
 				$("#lmlxs").change(function() {
365
+					
371 366
 					if($("#lmlxs").val() == '5') {
372 367
 						$(".xw").hide();
368
+					} else if ($("#lmlxs").val() == '9') {
369
+						$(".xw").show();
370
+						 $('.image-crop > img').cropper('setAspectRatio',5/7);
373 371
 					} else {
374 372
 						$(".xw").show();
375 373
 					}
374
+					
376 375
 				})
377 376
 
378 377
 				//编辑器配置
@@ -386,13 +385,6 @@
386 385
 					}); //添加弹出框编辑器
387 386
 				});
388 387
 
389
-				//					//上传图片
390
-				//					$(".sctp").click(function() {
391
-				//						$("#upFile").trigger("click");
392
-				//					})
393
-				//					$("#upFile").change(function() {
394
-				//						uploadtp();
395
-				//					});
396 388
 			});
397 389
 			//右边展示
398 390
 			function initTable() {
@@ -463,18 +455,16 @@
463 455
 						case '6':
464 456
 							val = "公告";
465 457
 							break;
466
-							//case '7':
467
-							//    val = "答疑释惑";
468
-							//    break;
469
-							//case '8':
470
-							//    val = "服务承诺";
471
-							//    break;
472
-							//case '9':
473
-							//    val = "效能建设";
474
-							//    break;
475
-							//case '10':
476
-							//    val = "集萃园地";
477
-							//    break;
458
+						case '7':
459
+							val = "政策解读";
460
+							break;
461
+						case '8':
462
+							val = "机构职能";
463
+							break;
464
+						case '9':
465
+							val = "领导信息";
466
+							break;
467
+							
478 468
 					}
479 469
 					return val;
480 470
 				} else {
@@ -488,17 +478,24 @@
488 478
 					'<a class="xg" onclick="Move(' + row.id + ')"> 删除 </a>' +
489 479
 					'</div>';
490 480
 			}
481
+			
491 482
 			//图片
492
-			function img(val) {
493
-				console.log(val)
494
-				if(val) {
483
+			function img(val,row) {
484
+				
485
+				if (row.bt == "领导信息") {
486
+					return '<div class="imgs" >' +
487
+						'<img src="' + val + '" style="width:50px;height:70px; margin:0 25px"/>' +
488
+						'</div>';
489
+				} else if (val) {
495 490
 					return '<div class="imgs" >' +
496 491
 						'<img src="' + val + '" style="width:100px;height:50px;"/>' +
497 492
 						'</div>';
498 493
 				} else {
499 494
 					return '';
500 495
 				}
496
+				
501 497
 			}
498
+			
502 499
 			//删除工单
503 500
 			function Move(str) {
504 501
 				layer.confirm('确定删除当前记录?', {
@@ -554,6 +551,7 @@
554 551
 					}
555 552
 				});
556 553
 			}
554
+			
557 555
 			//新增编辑新闻
558 556
 			function AddNews() {
559 557
 				if($("#lmlxs").val() == '5') {
@@ -615,33 +613,41 @@
615 613
 			}
616 614
 
617 615
 			function AddNew() {
618
-				if($("#lmlxs").val() == '5') {
616
+				if($("#lmlxs").val() == '5'||$("#lmlxs").val() == '9') {
617
+					
619 618
 					if(!$("#aftImg").val()) {
620 619
 						layer.confirm('请上传图片!', {
621 620
 							btn: ['确定']
622 621
 						});
623 622
 						return;
624 623
 					}
625
-					$('.bt').val("");
626
-					editor.html('');
624
+					
625
+					if ($("#lmlxs").val() == '5') {
626
+						$('.bt').val("");
627
+						editor.html('');
628
+					}
629
+					
627 630
 				} else {
631
+					
628 632
 					if(!$('.bt').val()) {
629 633
 						layer.confirm('请输入标题!', {
630 634
 							btn: ['确定']
631 635
 						});
632 636
 						return;
633 637
 					}
638
+					
634 639
 					if(!editor.html()) {
635 640
 						layer.confirm('请输入内容!', {
636 641
 							btn: ['确定']
637 642
 						});
638 643
 						return;
639 644
 					}
645
+					
640 646
 				}
641 647
 				var iszd = 0;
648
+				
642 649
 				if($('.iszd').is(':checked')) {
643 650
 					iszd = 1;
644
-
645 651
 					if(!$("#aftImg").val()) {
646 652
 						layer.confirm('图文新闻必须上传图片!', {
647 653
 							btn: ['确定']
@@ -649,6 +655,7 @@
649 655
 						return;
650 656
 					}
651 657
 				}
658
+				
652 659
 				$.post(huayi.config.callcenter_url + "Web/AddNews", {
653 660
 					id: $("#Id").val(),
654 661
 					type: $('#lmlxs').val(),
@@ -683,15 +690,19 @@
683 690
 				$(".iszd").prop("checked", false);
684 691
 				editor.html('');
685 692
 			}
693
+			
686 694
 			//图片裁剪
687 695
 			var o = $(".image-crop > img");
696
+			var aspectRatio = 4 / 3;
697
+			
688 698
 			$(o).cropper({
689
-				aspectRatio:  4 / 3,
699
+				aspectRatio:  aspectRatio,
690 700
 				resizable: true,
691 701
 				dragCrop: true,
692 702
 				preview: ".img-preview",
693 703
 				done: function() {}
694 704
 			});
705
+			
695 706
 			var r = $("#inputImage");
696 707
 			if(window.FileReader) {
697 708
 				r.change(function() {

+ 27 - 24
WebUI/CallCenterWeb.UI/login.html

@@ -49,11 +49,6 @@
49 49
 								<p>
50 50
 									<i class="login_icon login_icon_lock "></i>
51 51
 									<input class="zx_psw" type="password" placeholder="请输入您的密码" />
52
-									
53
-								</p>
54
-								<p>
55
-									<i class="login_icon login_icon_hua "></i>
56
-									<input class="mobile" type="number" placeholder="请输入手机号" />
57 52
 								</p>
58 53
 								<p>
59 54
 									<i class="login_icon login_icon_hua "></i>
@@ -75,10 +70,6 @@
75 70
 								</p>
76 71
 								<p>
77 72
 									<i class="login_icon login_icon_hua "></i>
78
-									<input class="mobile_user" type="text" placeholder="请输入手机号" />
79
-								</p>
80
-								<p>
81
-									<i class="login_icon login_icon_hua "></i>
82 73
 									<input class="verification_user" type="text" placeholder="请输入验证码" />
83 74
 									<button class="btnVerifi_user" type="button">获取验证码</button>
84 75
 								</p>
@@ -164,7 +155,6 @@
164 155
 								extensionphone: zx_fj,
165 156
 								LoginTime:currenttime,
166 157
 								password:encrypted.toString(),
167
-								Mobile:$(".mobile").val(),
168 158
 								Code:$(".verification").val()
169 159
 							},
170 160
 							success: function(data) {
@@ -253,11 +243,11 @@
253 243
 							url: huayi.config.callcenter_url + "/Login/login",
254 244
 							dataType: 'json',
255 245
 							async: true,
246
+							
256 247
 							data: {
257 248
 								username: gl_user,
258 249
 								password: encrypted.toString(),
259 250
 								LoginTime:currenttime,
260
-								Mobile:$(".mobile_user").val(),
261 251
 								Code:$(".verification_user").val()
262 252
 							},
263 253
 							success: function(data) {
@@ -282,24 +272,24 @@
282 272
 				})
283 273
 				
284 274
 				$(".btnVerifi").click(function(){
285
-					var myreg = /^[1][3,4,5,7,8,9][0-9]{9}$/;
286
-				    if (!myreg.test($(".mobile").val())) {
287
-				       layer.msg($(".mobile").val())
275
+					
276
+				    if (!$(".zx_user").val()) {
277
+				       layer.msg('请输入账号')
288 278
 				      return false;
289 279
 				    }
290
-				    var mobile = $(".mobile").val();
280
+				    var mobile = $(".zx_user").val();
291 281
 				    sendMsg(mobile);
282
+				    
292 283
 				})
293 284
 				
294 285
 				$(".btnVerifi_user").click(function(){
295
-					var myreg = /^[1][3,4,5,7,8,9][0-9]{9}$/;
296
-					debugger
297
-				    if (!myreg.test($(".mobile_user").val())) {
298
-				       layer.msg($(".mobile_user").val())
286
+					
287
+					if (!$(".gl_user").val()) {
288
+				       layer.msg('请输入账号')
299 289
 				      return false;
300 290
 				    }
301
-				    var mobile = $(".mobile_user").val();
302
-				    sendMsg(mobile)
291
+				    var mobile = $(".gl_user").val();
292
+				    sendMsg(mobile);
303 293
 					
304 294
 				})
305 295
 				
@@ -310,12 +300,18 @@
310 300
 						url:huayi.config.callcenter_url+"Login/SendCode",
311 301
 						async:true,
312 302
 						dataType:'json',
303
+//						beforeSend: function() { //触发ajax请求开始时执行
304
+//							$('.btnVerifi').attr('disabled', 'disabled');  // 禁用按钮
305
+//							$('.btnVerifi_user').attr('disabled', 'disabled');  // 禁用按钮
306
+//						},s
313 307
 						data:{
314
-							mobile:mobile
308
+							usercode:mobile
315 309
 						},
316 310
 						success:function(data){
317 311
 							if (data.state == "success") {
318 312
 								layer.msg('发送成功')
313
+//								$('.btnVerifi').removeAttr('disabled')
314
+//			              		$('.btnVerifi_user').removeAttr('disabled')
319 315
 								verifi();
320 316
 							}
321 317
 						}
@@ -327,17 +323,24 @@
327 323
 		          	var timer = null;
328 324
 		          	$('.btnVerifi').text(time + '秒后重新发送');
329 325
 		          	$('.btnVerifi').attr('disabled', 'disabled');  // 禁用按钮
330
-		          
326
+		          	$('.btnVerifi_user').text(time + '秒后重新发送');
327
+		          	$('.btnVerifi_user').attr('disabled', 'disabled');  // 禁用按钮
331 328
 		          	timer = setInterval(function(){ 
332 329
 			            // 定时器到底了 兄弟们回家啦
333 330
 			            if(time == 1){
331
+			            	
334 332
 			              clearInterval(timer);       
335 333
 			              $('.btnVerifi').text("获取验证码")
334
+			              $('.btnVerifi_user').text('获取验证码')
336 335
 			              $('.btnVerifi').removeAttr('disabled')
337
-			             
336
+			              $('.btnVerifi_user').removeAttr('disabled')
337
+			              
338 338
 			            }else{
339
+			            	
339 340
 			              time--;
340 341
 			              $('.btnVerifi').text(time + '秒后重新发送');
342
+			              $('.btnVerifi_user').text(time+'秒后重新发送');
343
+			              
341 344
 			            }
342 345
 			        }, 1000)
343 346
 							

+ 4 - 64
商丘WebAPP/User-login.html

@@ -26,18 +26,9 @@
26 26
 					<label><span class="mui-icon iconfont icon-suo"></span></label>
27 27
 					<input id="password" type="password" class=" mui-input-password mui-input" placeholder="请输入密码">
28 28
 				</div>
29
-        <div class="mui-input-row">
30
-        	<label><span class="mui-icon iconfont icon-yonghu"></span></label>
31
-        	<input id="mobile" type="number" class="mui-input-clear mui-input" placeholder="请输入手机号">
32
-        </div>
33
-        <div class="mui-input-row">
34
-        	<label><span class="mui-icon iconfont icon-yonghu"></span></label>
35
-        	<input id="mobileCode" type="text" class="mui-input-clear mui-input" placeholder="请输入验证码">
36
-        </div>
29
+       
37 30
 			</form>
38
-      <div class="mui-content-padded">
39
-      	<button id="sendCode" class="mui-btn mui-btn-block mui-btn-primary" style="font-size: 16px;">获取验证码</button>
40
-      </div>
31
+      
41 32
 			<div class="mui-content-padded">
42 33
 				<button id="login" class="mui-btn mui-btn-block mui-btn-primary" style="font-size: 16px;">登录</button>
43 34
 			</div>
@@ -56,79 +47,28 @@
56 47
 			mui.plusReady(function() {
57 48
 				var usercode = localStorage.getItem("user1"); //获取本地存储
58 49
 				var psw1 = localStorage.getItem("psw1"); //获取本地存储
59
-        function fn(){
60
-          var oBtn = document.getElementById('sendCode');
61
-          var time = 60;
62
-          var timer = null;
63
-          oBtn.innerHTML = time + '秒后重新发送';
64
-          oBtn.setAttribute('disabled', 'disabled');  // 禁用按钮
65
-          
66
-          timer = setInterval(function(){ 
67
-            // 定时器到底了 兄弟们回家啦
68
-            if(time == 1){
69
-              clearInterval(timer);       
70
-              oBtn.innerHTML = '获取验证码';  
71
-              oBtn.removeAttribute('disabled'); 
72
-             
73
-            }else{
74
-              time--;
75
-              oBtn.innerHTML = time + '秒后重新发送';
76
-            }
77
-          }, 1000)
78
-        }
79 50
         
80 51
 				if (usercode != null) //如果缓存中有数据,则加载出来 
81 52
 				{
82 53
 					document.getElementById("account").value = usercode;
83 54
 					document.getElementById("password").value = localStorage.getItem("psw1");
84 55
 				}
85
-        document.getElementById("sendCode").addEventListener('tap',function(){
86
-          var mobile = document.getElementById('mobile').value;
87
-          var regular = /^[1][3,4,5,7,8,9][0-9]{9}$/;
88
-          fn();
89
-          return
90
-          if (!regular.test(mobile)) {
91
-            plus.nativeUI.toast("手机号格式不正确")
92
-            return false;
93
-          }
94
-          var data = {
95
-            "mobile":mobile
96
-          }
97
-          mui.ajax(huayi.config.callcenter_url+'/Login/SendCode',{
98
-            data:data,
99
-            dataType:'json',
100
-            type:'post',
101
-            timeout:10000,
102
-            success:function(data){
103
-              if(data.state == "success"){
104
-                plus.nativeUI.toast('发送成功')
105
-                fn();
106
-              }
107
-            }
108
-          })
109
-        })
56
+        
110 57
 				document.getElementById("login").addEventListener('tap', function() {
111 58
 					var usercode = document.getElementById('account').value;
112 59
 					var password = document.getElementById('password').value;
113
-          var mobile = document.getElementById('mobile').value;
114
-          var mobileCode = document.getElementById('mobileCode').value;
115 60
 					var data = {
116 61
 						"usercode": usercode,
117
-						"password": $.md5(password),
118
-            "Mobile":mobile,
119
-            "Code":mobileCode
62
+						"password": $.md5(password)
120 63
 					};
121 64
 					if (!usercode) {
122
-
123 65
 						plus.nativeUI.toast('输入账号');
124 66
 					} else if (!password) {
125 67
 						plus.nativeUI.toast('密码不能为空');
126 68
 					} else {
127 69
 						if (plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE) {
128
-
129 70
 							mui.toast("网络连接中断!");
130 71
 						}
131
-
132 72
 						// 调用ajax  
133 73
 						mui.ajax(huayi.config.callcenter_url + '/APP/Login', {
134 74
 							data: data,

+ 9 - 18
商丘WebAPP/login.html

@@ -29,10 +29,7 @@
29 29
 					<label><span class="mui-icon iconfont icon-suo"></span></label>
30 30
 					<input id="password" type="password" class=" mui-input-password mui-input" placeholder="请输入密码">
31 31
 				</div>
32
-        <div class="mui-input-row">
33
-        	<label><span class="mui-icon iconfont icon-yonghu"></span></label>
34
-        	<input id="mobile" type="text" class="mui-input-clear mui-input" placeholder="请输入手机号">
35
-        </div>
32
+        
36 33
         <div class="mui-input-row">
37 34
         	<label><span class="mui-icon iconfont icon-yonghu"></span></label>
38 35
         	<input id="mobileCode" type="text" class="mui-input-clear mui-input" placeholder="请输入验证码">
@@ -59,7 +56,6 @@
59 56
         
60 57
 				var usercode = localStorage.getItem("user"); //获取本地存储
61 58
 				var psw = localStorage.getItem("psw"); //获取本地存储s
62
-        var regular = /^[1][3,4,5,7,8,9][0-9]{9}$/;
63 59
 				if(usercode != null) //如果缓存中有数据,则加载出来 
64 60
 				{
65 61
 					document.getElementById("account").value = usercode;
@@ -85,17 +81,16 @@
85 81
             }
86 82
           }, 1000)
87 83
         }
84
+        
88 85
         document.getElementById("sendCode").addEventListener('tap',function(){
89
-          var mobile = document.getElementById('mobile').value;
90
-          
91
-          
92
-          
93
-          if (!regular.test(mobile)) {
94
-            plus.nativeUI.toast("手机号格式不正确")
86
+          var username = document.getElementById('account').value;
87
+        
88
+          if (!username) {
89
+            plus.nativeUI.toast("请输入账号")
95 90
             return false;
96 91
           }
97 92
           var data = {
98
-            "mobile":mobile
93
+            "usercode":username
99 94
           }
100 95
           mui.ajax(huayi.config.callcenter_url+'/Login/SendCode',{
101 96
             data:data,
@@ -110,26 +105,22 @@
110 105
             }
111 106
           })
112 107
         })
108
+        
113 109
 				document.getElementById("login").addEventListener('tap', function() {
114 110
 					var username = document.getElementById('account').value;
115 111
 					var password = document.getElementById('password').value;
116
-          var mobile = document.getElementById('mobile').value;
117 112
           var mobileCode = document.getElementById('mobileCode').value;
118 113
 					var data = {
119 114
 						"username": username,
120 115
 						"password": $.md5(password),
121 116
 						"extensionphone": 1,
122
-            "Mobile":mobile,
123 117
 						"Code":mobileCode
124 118
 					};
125 119
           if(!username) {
126 120
 						plus.nativeUI.toast('输入账号');
127 121
 					} else if(!password) {
128 122
 						plus.nativeUI.toast('密码不能为空');
129
-					} else if (!regular.test(mobile)) {
130
-            plus.nativeUI.toast("手机号格式不正确")
131
-            return false;
132
-          } else if(!mobileCode){
123
+					} else if(!mobileCode){
133 124
             plus.nativeUI.toast("请输入验证码")
134 125
             return false;
135 126
           } else {

+ 2 - 2
商丘WebAPP/personal.html

@@ -87,7 +87,7 @@
87 87
 					<!--一级查看-->
88 88
 					<ul class="mui-table-view mui-grid-view mui-grid-9 Common-box Undertake" style="display: none;">
89 89
 						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
90
-							<a href="javascript:;" class="Undertake-list" data-index="0" index="2">
90
+							<a href="javascript:;" class="Undertake-list" data-index="0" index="">
91 91
 								<div class="Icon icon-1"><i class="mui-icon iconfont icon-check1 "></i></div>
92 92
 								<div class="mui-media-body font-weight-bold">待查收</div>
93 93
 							</a>
@@ -314,7 +314,7 @@
314 314
       			'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
315 315
       		},
316 316
       		success: function(data) {
317
-            alert(JSON.stringify(data))
317
+            //alert(JSON.stringify(data))
318 318
             var data = data.data;
319 319
             
320 320
             //alert(data.spllddcl)

+ 1 - 1
商丘WebAPP/workOrder/Work-SecondList.html

@@ -49,7 +49,7 @@
49 49
 					
50 50
 					if (Isdeal == 4) {
51 51
 						$(".Totle-box").text('待办理')
52
-					} else if (Isdeal == 2) {
52
+					} else if (Index == 0) {
53 53
 						$(".Totle-box").text('待查收')
54 54
 					}else if (Index == 2) {
55 55
 						$(".Totle-box").text('退回审核')