miaofuhao il y a 6 ans
Parent
commit
b9824ab539

+ 27 - 1
WeChat/content/company.html

@@ -69,7 +69,21 @@
69 69
 						<span class="text_posi">当前</span>
70 70
 					</li>
71 71
 				</ul>-->
72
-				<ul class="mui-table-view mui-table-view-chevron" style="margin-top: 50px;">
72
+				<ul class="mui-table-view mui-table-view-chevron" style="margin-top: 15px;">
73
+					<li class="mui-table-view-cell mui-media">
74
+						<a class="mui-navigate-right noticeList">
75
+							<div class="mui-media-body">
76
+								<h5 class="text_h_3">公告列表</h5>
77
+							</div>
78
+						</a>
79
+					</li>
80
+					<li class="mui-table-view-cell mui-media">
81
+						<a class="mui-navigate-right orderList">
82
+							<div class="mui-media-body">
83
+								<h5 class="text_h_3">工单列表</h5>
84
+							</div>
85
+						</a>
86
+					</li>
73 87
 					<li class="mui-table-view-cell mui-media">
74 88
 						<a class="mui-navigate-right invoiceList">
75 89
 							<div class="mui-media-body">
@@ -116,10 +130,22 @@
116 130
 			})
117 131
 
118 132
 		})
133
+//		工单列表
134
+		$(".noticeList").click(function() {
135
+			//点击图片后发送跳转到指定页面的事件。
136
+			window.location.href = "noticeList.html?turn="+turn;
137
+		})
138
+//		工单列表
139
+		$(".orderList").click(function() {
140
+			//点击图片后发送跳转到指定页面的事件。
141
+			window.location.href = "orderList.html?turn="+turn;
142
+		})
143
+//		服务记录
119 144
 		$(".invoiceList").click(function() {
120 145
 			//点击图片后发送跳转到指定页面的事件。
121 146
 			window.location.href = "invoiceList.html?turn="+turn;
122 147
 		})
148
+//		修改密码
123 149
 		$(".editBtn").click(function() {
124 150
 			//点击图片后发送跳转到指定页面的事件。
125 151
 			window.location.href = "edit.html";

+ 14 - 3
WeChat/content/js/company.js

@@ -1,6 +1,19 @@
1 1
 mui.init({})
2 2
 var openid = helper.cookies.get("openid");
3
-Ajax();
3
+var typeUser = helper.cookies.get("typeUser");
4
+$(function(){
5
+	if (typeUser==1) {
6
+		$("#companyLogo").attr("src","../img/headPhoto.png"); //公司logo
7
+		$("#companyName").text("郑州三元财务"); //公司名称
8
+		$("#customerCode").text(""); //公司编号
9
+		$("#companyAddress").text(""); //公司地址
10
+		$("#cycleTime").text(""); //代理费到期日期
11
+		$("#feeExpires").text(""); //代理费到期日期
12
+		$("#chargeType").text(""); //收费标准
13
+	} else if(typeUser==5){
14
+		Ajax();
15
+	}
16
+})
4 17
 function Ajax() {
5 18
 	//$(".order").remove();
6 19
 	$.ajax({
@@ -20,13 +33,11 @@ function Ajax() {
20 33
 				part="../img/headPhoto.png";
21 34
 			} else{
22 35
 				part=result.F_CompanyLogo;
23
-				
24 36
 			}
25 37
 			$("#companyLogo").attr("src",part); //公司logo
26 38
 			$("#companyName").text(result.F_CompanyName); //公司名称
27 39
 			$("#customerCode").text(result.F_CustomerCode); //公司编号
28 40
 			$("#companyAddress").text(result.F_CompanyAddress); //公司地址
29
-			
30 41
 			if (result.F_CycleStart) {
31 42
 				$("#cycleTime").text(result.F_CycleStart+"-"+result.F_CycleEnd); //服务周期
32 43
 			}else{

+ 45 - 0
WeChat/content/js/noticeDetail.js

@@ -0,0 +1,45 @@
1
+mui.init({})
2
+var id = helper.request.queryString("id");
3
+var state = helper.request.queryString("type");
4
+var openid = helper.cookies.get("openid");
5
+var turn=1;
6
+if (!openid) {
7
+	var openid = helper.request.queryString("openid");
8
+}
9
+function formatterDealDetail(val, row) {
10
+	return str;
11
+}
12
+$(function () {
13
+	Ajax();
14
+	
15
+	//返回列表
16
+	$('.return').on('tap', function() {
17
+		window.location.href = "noticeList.html?Itype=" + state+'&turn='+turn;
18
+	});
19
+})
20
+function Ajax() {
21
+	$.ajax({
22
+		url: huayi.config.callcenter_url + '/WxLogin/GetNoticeInfo',
23
+		data: {
24
+			noticeid: id, //工单编号
25
+			openid: openid, //微信openid,
26
+			//openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE',
27
+		},
28
+		async: true,
29
+		dataType: 'json',
30
+		type: 'get', //HTTP请求类型
31
+		success: function(data) {
32
+			if(data.state.toLowerCase() == "success") {
33
+				var result = data.data
34
+				$("#workOrderID").text(result.WorkOrderID); //工单编号
35
+				$("#noticeTime").text(result.F_CreateOn); //公告时间
36
+				$("#noticeTit").text(result.F_Title); //公告标题
37
+				$("#noticeCon").text(result.F_Content); //公告内容
38
+				
39
+			}
40
+		},
41
+		error: function(xhr, type, errorThrown) {
42
+			//异常处理;
43
+		}
44
+	})
45
+}

+ 56 - 0
WeChat/content/js/noticeList.js

@@ -0,0 +1,56 @@
1
+mui.init({})
2
+var state=1;
3
+var openid = helper.cookies.get("openid");
4
+var Itype = helper.request.queryString("Itype");
5
+var turn = helper.request.queryString("turn");
6
+
7
+$(function () {
8
+	if (turn) {
9
+		$(".mui-nav").show();
10
+	}else{
11
+		$("#OA_task").css("margin-top","0px");
12
+	}
13
+	Ajax();
14
+})
15
+function Ajax() {
16
+	//$(".order").remove();
17
+	$.ajax({
18
+		url: huayi.config.callcenter_url + 'WxLogin/GetNoticeList',
19
+		data: {
20
+			openid: openid, //微信openid,
21
+			//openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE',
22
+		},
23
+		async: true,
24
+		dataType: 'json',
25
+		type: 'get', //HTTP请求类型
26
+		success: function(data) {
27
+			if(data.rows && data.rows.length > 0) {
28
+				$(".noinfor").text("");
29
+				$("#OA_task").empty();
30
+				$(data.rows).each(function(i, n) {
31
+					
32
+					$('<li class="mui-table-view-cell order" data-index="' + n.F_NoticeId + '">' +
33
+						'<div class="mui-table">' +
34
+						'<div class="mui-table-cell mui-col-xs-10">' +
35
+						'<h4 class="mui-ellipsis">' + n.F_Title +
36
+						'</h4><h5>' + n.F_CreateOn +
37
+						'</h5></div>'+
38
+						'<div class="mui-table-cell mui-col-xs-2 mui-text-right">'+
39
+						'<span class="mui-h5">'+
40
+						'</span></div></div></li>').appendTo('#OA_task');
41
+				});
42
+				//工单跳转
43
+				$('.order').on('tap', function() {
44
+					var index = $(this).attr('data-index');
45
+					window.location.href = "noticeDetail.html?id=" + index+'&type='+state;
46
+				});
47
+			} else {
48
+				$(".noinfor").text("暂无信息");
49
+			}
50
+		},
51
+		error: function(xhr, type, errorThrown) {
52
+			//异常处理;
53
+		}
54
+	})
55
+
56
+}

+ 8 - 5
WeChat/content/js/orderDetail.js

@@ -2,6 +2,10 @@ mui.init({})
2 2
 var id = helper.request.queryString("id");
3 3
 var state = helper.request.queryString("type");
4 4
 var openid = helper.cookies.get("openid");
5
+var turn=1;
6
+if (!openid) {
7
+	var openid = helper.request.queryString("openid");
8
+}
5 9
 function formatterDealDetail(val, row) {
6 10
 	return str;
7 11
 }
@@ -15,16 +19,15 @@ $(function () {
15 19
 		$(".dispose3").show();
16 20
 	}
17 21
 	//返回列表
18
-	$('.return').on('tap', function() {
22
+	$('.return').on('tap', function() {   
19 23
 		if (state==1) {
20
-			window.location.href = "orderList.html?Itype=" + state;
24
+			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
21 25
 		}if (state==2) {
22
-			window.location.href = "orderList.html?Itype=" + state;
26
+			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
23 27
 		} else if (state==3){
24
-			window.location.href = "orderList.html?Itype=" + state;
28
+			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
25 29
 		}
26 30
 		//window.location.href = "client_index.html?Itype=" + itype;
27
-
28 31
 	});
29 32
 })
30 33
 //接单

+ 27 - 4
WeChat/content/js/orderList.js

@@ -1,8 +1,20 @@
1 1
 mui.init({})
2 2
 var state=1;
3 3
 var openid = helper.cookies.get("openid");
4
+//var openid = 'oXF5e1mWpX5DajW5_yjNLPKb8ThE';
4 5
 var Itype = helper.request.queryString("Itype");
6
+var turn = helper.request.queryString("turn");
7
+
5 8
 $(function () {
9
+	
10
+	if (turn) {
11
+		$(".mui-nav").show();
12
+		$(".cont-margin").css("margin-top","50px");
13
+		$("#OA_task").css("margin-top","90px");
14
+	}else{
15
+		$("#OA_task").css("margin-top","0px");
16
+		$(".cont-margin").css("margin-top","50px");
17
+	}
6 18
 	if (Itype=="1") {
7 19
 		$(".titdyna li").removeClass("tab_color");
8 20
 		$(".titdyna li:eq(0)").addClass("tab_color");
@@ -49,10 +61,15 @@ $(".titdyna ul li").click(function () {
49 61
 					}else if(n.State==2){
50 62
 						stateText="已完成"
51 63
 					}
64
+					if (n.TypeClassName=="") {
65
+						titleText=n.GDLXName;
66
+					}else{
67
+						titleText=n.TypeClassName;
68
+					}
52 69
 					$('<li class="mui-table-view-cell order" data-index="' + n.WorkOrderID + '">' +
53 70
 						'<div class="mui-table">' +
54 71
 						'<div class="mui-table-cell mui-col-xs-10">' +
55
-						'<h4 class="mui-ellipsis">' + n.Customer +
72
+						'<h4 class="mui-ellipsis">' + titleText +
56 73
 						'</h4><h5>' + n.CreateTime +
57 74
 						'</h5></div>'+
58 75
 						'<div class="mui-table-cell mui-col-xs-2 mui-text-right">'+
@@ -91,7 +108,8 @@ function Ajax() {
91 108
 				$(".noinfor").text("");
92 109
 				$("#OA_task").empty();
93 110
 				$(data.rows).each(function(i, n) {
94
-					var stateText
111
+					var stateText;
112
+					var titleText;
95 113
 					if (n.State==0) {
96 114
 						stateText="待指派"
97 115
 					}else if (n.State==1) {
@@ -99,10 +117,16 @@ function Ajax() {
99 117
 					}else if(n.State==2){
100 118
 						stateText="已完成"
101 119
 					}
120
+					if (n.TypeClassName=="") {
121
+						titleText=n.GDLXName;
122
+					}else{
123
+						
124
+						titleText=n.TypeClassName;
125
+					}
102 126
 					$('<li class="mui-table-view-cell order" data-index="' + n.WorkOrderID + '">' +
103 127
 						'<div class="mui-table">' +
104 128
 						'<div class="mui-table-cell mui-col-xs-10">' +
105
-						'<h4 class="mui-ellipsis">' + n.TypeClassName +
129
+						'<h4 class="mui-ellipsis">' + titleText +
106 130
 						'</h4><h5>' + n.CreateTime +
107 131
 						'</h5></div>'+
108 132
 						'<div class="mui-table-cell mui-col-xs-2 mui-text-right">'+
@@ -112,7 +136,6 @@ function Ajax() {
112 136
 				//工单跳转
113 137
 				$('.order').on('tap', function() {
114 138
 					var index = $(this).attr('data-index');
115
-					
116 139
 					window.location.href = "orderDetail.html?id=" + index+'&type='+state;
117 140
 				});
118 141
 			} else {

+ 66 - 0
WeChat/content/noticeDetail.html

@@ -0,0 +1,66 @@
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 href="../css/mui.css" rel="stylesheet" />
10
+		<link href="../css/mui.picker.css" rel="stylesheet" />
11
+		<link href="../css/mui.poppicker.css" rel="stylesheet" />
12
+		<link href="../css/iconfont.css" rel="stylesheet" />
13
+		<link href="css/serveDetail.css" rel="stylesheet" />
14
+	</head>
15
+	<style>
16
+		.mui-nav{
17
+			border-bottom: 1px solid #DDDDDD;
18
+		}
19
+		.content {
20
+            font-size: 14px;
21
+            line-height: 25px;
22
+            margin: 20px 0;
23
+            text-align: justify;
24
+            color: #636262;
25
+            padding: 0 15px;
26
+        }
27
+        .mui-content{
28
+        	margin-top: 64px;
29
+        	background: #FFFFFF;
30
+        }
31
+        #noticeTit{
32
+        	width: 80%;
33
+        	margin: 0 auto;
34
+        }
35
+        #noticeCon{
36
+        	text-indent: 2em;
37
+        	margin-top: 10px;
38
+        }
39
+        #noticeTime{
40
+        	margin-top: 8px;
41
+        }
42
+	</style>
43
+	<body style="background: #FFFFFF;">
44
+		<div class="mui-nav">
45
+			<a class="mui-icon mui-icon-arrowleft return"></a>
46
+			公告详情
47
+		</div>
48
+		<div class="mui-content" style="">
49
+			<h4 style="text-align: center;" id="noticeTit">公告标题</h4>
50
+			<p style="text-align: center; margin-bottom: 0px;" id="noticeTime">时间</p>
51
+			<div class="content" style="margin-top: 0px;">
52
+				
53
+				<p id="noticeCon">4、微信公众号:微信搜索"虞城县12345政府服务热线”</p>
54
+			</div>
55
+			
56
+		</div>
57
+		<script src="../js/mui.min.js?"></script>
58
+		<script src="../js/mui.picker.js"></script>
59
+		<script src="../js/mui.poppicker.js"></script>
60
+		<script src="../js/jquery.min.js"></script>
61
+		<script src="../Script/Common/huayi.config.js"></script>
62
+		<script src="../Script/Common/huayi.http.js"></script>
63
+		<script src="js/noticeDetail.js"></script>
64
+	</body>
65
+
66
+</html>

+ 71 - 0
WeChat/content/noticeList.html

@@ -0,0 +1,71 @@
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.css">
10
+		<link rel="stylesheet" href="../css/iconfont.css" />
11
+		<link rel="stylesheet" href="css/serve.css" />
12
+		<style>
13
+			/*头部*/
14
+
15
+			/*动态*/
16
+			.titdyna{
17
+				position: fixed;
18
+				width: 100%;
19
+				top: 0px;
20
+				background: #FFFFFF;
21
+			}
22
+			.titdyna ul{
23
+				padding: 0;
24
+				margin: 0;
25
+				overflow: hidden;
26
+			}
27
+			.titdyna ul li{
28
+				display: block;
29
+				width: 33%;
30
+				float: left;
31
+				text-align: center;
32
+				height: 38px;
33
+				line-height: 38px;
34
+				color: #929292;
35
+			}
36
+			.tab_color{color: #2cc6a7 !important;}
37
+			#OA_task{
38
+				margin-top: 46px;
39
+			}
40
+			
41
+		</style>
42
+	</head>
43
+	<body>
44
+		<!--页面主内容区开始-->
45
+		<div class="mui-nav">
46
+			<a class="mui-icon mui-icon-arrowleft" href="company.html"></a>
47
+			公告列表
48
+		</div>
49
+		<div class="mui-content">
50
+ 		    <ul id="OA_task" class="mui-table-view mui-table-view-striped mui-table-view-condensed">
51
+		        <!--<li class="mui-table-view-cell">
52
+		            <div class="mui-table">
53
+		                <div class="mui-table-cell mui-col-xs-10">
54
+		                    <h4 class="mui-ellipsis">大厅扣款</h4>
55
+		                    <h5>2018-01-07  10:40</h5>
56
+		                </div>
57
+		                <div class="mui-table-cell mui-col-xs-2 mui-text-right">
58
+		                    <span class="mui-h5">已完成</span>
59
+		                </div>
60
+		            </div>
61
+		        </li>-->
62
+		    </ul>
63
+		    <div class="noinfor" style="text-align: center; font-size: 16px;">
64
+		</div>
65
+	</body>
66
+	<script src="../js/mui.min.js"></script>
67
+	<script src="../js/jquery.min.js"></script>
68
+	<script src="../js/huayi.http.js"></script>
69
+	<script src="../Script/Common/huayi.config.js"></script>
70
+	<script src="js/noticeList.js"></script>
71
+</html>

+ 8 - 2
WeChat/content/orderList.html

@@ -37,13 +37,19 @@
37 37
 			#OA_task{
38 38
 				margin-top: 46px;
39 39
 			}
40
-			
40
+			.cont-margin{
41
+				margin-top: 46px;
42
+			}
41 43
 		</style>
42 44
 	</head>
43 45
 	<body>
44 46
 		<!--页面主内容区开始-->
47
+		<div class="mui-nav">
48
+			<a class="mui-icon mui-icon-arrowleft" href="company.html"></a>
49
+			工单列表
50
+		</div>
45 51
 		<div class="mui-content">
46
-			<div class="titdyna">
52
+			<div class="titdyna cont-margin">
47 53
 				<ul>
48 54
 					<li class="tab_color" data-index="1">
49 55
 						待接单