Browse Source

1.咨询职称,职位,机构显示细节
2.意见反馈和投诉举报,字数限制Bug

dell 8 years ago
parent
commit
37b1359ec4

+ 6 - 1
app/html/claims.html

@ -11,16 +11,21 @@
11 11
			.mui-input-row .content {
12 12
				min-height: 150px;
13 13
				font-size: 14px;
14
				border-bottom:none;
14 15
			}
16
			/*提交按钮*/
15 17
			.mui-content-padded .claims {
16 18
				padding: 5px 0;
19
				margin-top: 20px;
17 20
			}
18 21
			.text {
19 22
				position: relative;
23
				border-bottom:1px solid rgba(0,0,0,.2);
24
				background:#fff;
20 25
			}
21 26
			#count {
22 27
				position: absolute;
23
				bottom: 23px;
28
				bottom: 0;
24 29
				right: 10px;
25 30
			}
26 31
		</style>

+ 6 - 2
app/html/feedback.html

@ -10,16 +10,21 @@
10 10
			.mui-input-row .content {
11 11
				min-height: 150px;
12 12
				font-size: 14px;
13
				border-bottom:none;
13 14
			}
15
			/*提交按钮*/
14 16
			.mui-content-padded .tijiao {
15 17
				padding: 5px 0;
18
				margin-top: 20px;
16 19
			}
17 20
			.text {
18 21
				position: relative;
22
				border-bottom:1px solid rgba(0,0,0,.2);
23
				background:#fff;
19 24
			}
20 25
			#count {
21 26
				position: absolute;
22
				bottom: 23px;
27
				bottom: 0;
23 28
				right: 10px;
24 29
			}
25 30
			
@ -37,7 +42,6 @@
37 42
			</div>
38 43
			<div class="mui-content-padded">
39 44
				<button type="submit" class="mui-btn mui-btn-danger mui-btn-block tijiao">提交反馈</button>
40
				
41 45
			</div>
42 46
			
43 47
		</div>

+ 50 - 0
app/html/kefuhelp.html

@ -0,0 +1,50 @@
1
<!doctype html>
2
<html>
3
4
	<head>
5
		<meta charset="UTF-8">
6
		<title></title>
7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/app.css" rel="stylesheet" />
10
	</head>
11
	<body>
12
		<header class="mui-bar mui-bar-nav toptitbox">
13
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></a>
14
		    <h1 class="mui-title toptit">客服帮助</h1>
15
		</header>
16
		<div class="mui-content">
17
			
18
		    <div class="mui-input-group marginbox setblock">
19
				<ul class="mui-table-view">
20
					
21
				    <li class="mui-table-view-cell">
22
				        <a class="mui-navigate-right" id="feedBack">
23
				        	<span class="mui-pull-left">意见反馈</span>
24
				        </a>
25
				    </li>
26
				    <li class="mui-table-view-cell">
27
				        <a class="mui-navigate-right" id="claims">
28
				        	<span class="mui-pull-left">投诉举报</span>
29
				        </a>
30
				    </li>
31
				    <!--<li class="mui-table-view-cell">
32
				        <a class="mui-navigate-right" id="FAQ">
33
				        	<span class="mui-pull-left">常见问题</span>
34
				        </a>
35
				    </li>-->
36
				    <li class="mui-table-view-cell">
37
				        <a class="mui-navigate-right" id="contactService">
38
				        	<span class="mui-pull-left">联系客服</span>
39
				        </a>
40
				    </li>
41
				</ul>
42
		    </div>
43
		</div>
44
		<script src="../js/public/mui.min.js"></script>
45
		<script src="../js/public/base.js"></script>
46
		<script src="../js/kefuhelp.js"></script>
47
		
48
	</body>
49
50
</html>

+ 39 - 0
app/html/nologin_consult.html

@ -0,0 +1,39 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
    <meta charset="utf-8">
5
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
6
    <title></title>
7
    <style type="text/css">
8
    	/*控制未读消息*/
9
    	.displayNone {
10
    		display: none;
11
    	}
12
    	.displayBlock {
13
    		display: block;
14
    	}
15
    </style>
16
    <link href="../css/mui.min.css" rel="stylesheet"/>
17
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css"/>
18
    <link href="../css/app.css" rel="stylesheet"/>
19
 
20
</head>
21
<body>
22
23
	<!-- 主页面标题 -->
24
	<header class="mui-bar mui-bar-nav toptitbox">
25
	    <h1 class="mui-title toptit">咨询</h1>
26
	</header>
27
    <!-- 主页面内容容器 -->
28
    <div class="mui-content">
29
    	
30
        
31
		
32
    </div>
33
	
34
	<script src="../js/public/mui.min.js"></script>
35
	<script src="../js/public/base.js"></script>
36
	<script src="../js/nologin_consult.js"></script>
37
	
38
</body>
39
</html>

+ 6 - 20
app/html/setup.html

@ -47,6 +47,11 @@
47 47
				        <a class="mui-navigate-right" id="security">
48 48
				        	<span class="mui-pull-left">账号与安全</span>
49 49
				        </a>
50
				    </li>
51
				     <li class="mui-table-view-cell">
52
				        <a class="mui-navigate-right" id="kefu">
53
				        	<span class="mui-pull-left">客服帮助</span>
54
				        </a>
50 55
				    </li>
51 56
				    <li class="mui-table-view-cell">
52 57
				        <a class="mui-navigate-right" id="about">
@ -58,26 +63,7 @@
58 63
				        	<span class="mui-pull-left">用户协议</span>
59 64
				        </a>
60 65
				    </li>
61
				    <li class="mui-table-view-cell">
62
				        <a class="mui-navigate-right" id="feedBack">
63
				        	<span class="mui-pull-left">意见反馈</span>
64
				        </a>
65
				    </li>
66
				    <li class="mui-table-view-cell">
67
				        <a class="mui-navigate-right" id="claims">
68
				        	<span class="mui-pull-left">投诉举报</span>
69
				        </a>
70
				    </li>
71
				    <li class="mui-table-view-cell">
72
				        <a class="mui-navigate-right" id="FAQ">
73
				        	<span class="mui-pull-left">常见问题</span>
74
				        </a>
75
				    </li>
76
				    <li class="mui-table-view-cell">
77
				        <a class="mui-navigate-right" id="contactService">
78
				        	<span class="mui-pull-left">联系客服</span>
79
				        </a>
80
				    </li>
66
				    
81 67
				</ul>
82 68
		    </div>
83 69
		    <div class="mui-input-group exitbox">

+ 38 - 14
app/js/consult.js

@ -202,7 +202,7 @@ function initdata() {
202 202
                    plus.nativeUI.closeWaiting();//关闭等待框
203 203
                }else {
204 204
                	plus.nativeUI.closeWaiting();//关闭等待框
205
                	plus.nativeUI.toast("您目前没有咨询", toastStyle);
205
                	/*plus.nativeUI.toast("您目前没有咨询");*/
206 206
					mui('#zixunpullrefresh').pullRefresh().disablePullupToRefresh(); 
207 207
                }
208 208
            },
@ -342,7 +342,7 @@ function eachData(userid,datalist) {
342 342
		}else{
343 343
			title = "回复:" + item["consultTitle"];
344 344
		}
345
		
345
//		console.log(title)
346 346
    	//咨询类型和状态
347 347
		if(item['consultantId'] != userid){//收到咨询
348 348
			if(item["consultStatus"] == 0){
@ -370,14 +370,11 @@ function eachData(userid,datalist) {
370 370
		if(item["professor"] == undefined){
371 371
			return ;
372 372
		}
373
		/*(item["professor"]["title"])?  zhicehng = item["professor"]["title"]: zhicehng = '';
374
		(item["professor"]["office"])?   zhiwei = ','+item["professor"]["office"]: zhiwei  = '';
375
		(item["professor"]["orgName"])?   orgName = ','+item["professor"]["orgName"]: orgName  = '';
376
		(item["professor"]["address"])?  address = ' | '+ item["professor"]["address"] :address = '' ;*/
373
		
377 374
		(item["professor"]["authentication"] == true)? proModify = 'authicon' : proModify = 'unauthicon';
378 375
		(item["professor"]["hasHeadImage"] == 0) ? photoUrl = "../images/default-photo.jpg":photoUrl = baseUrl + "/images/head/" + item["professor"].id + "_m.jpg";
379 376
		
380
		if(item["professor"]["title"] == undefined || item["professor"]["title"] == null || item["professor"]["title"] == ''){
377
		/*if(item["professor"]["title"] == undefined || item["professor"]["title"] == null || item["professor"]["title"] == ''){
381 378
			zhicehng = '';
382 379
		}else {
383 380
			zhicehng = item["professor"]["title"];
@ -386,7 +383,7 @@ function eachData(userid,datalist) {
386 383
			zhiwei = '';
387 384
		}else {
388 385
			if(zhicehng != ''){
389
				zhiwei = ','+item["professor"]["office"];
386
				zhiwei = ', '+item["professor"]["office"];
390 387
			}else{
391 388
				zhiwei = item["professor"]["office"];
392 389
			}
@ -395,7 +392,7 @@ function eachData(userid,datalist) {
395 392
			orgName = '';
396 393
		}else {
397 394
			if(zhicehng != '' || zhiwei != ''){
398
				orgName = ','+item["professor"]["orgName"];
395
				orgName = ', '+item["professor"]["orgName"];
399 396
			}else {
400 397
				orgName = item["professor"]["orgName"];
401 398
			}
@ -408,7 +405,7 @@ function eachData(userid,datalist) {
408 405
			}else {
409 406
				address = item["professor"]["address"];
410 407
			}
411
		}
408
		}*/
412 409
		
413 410
		
414 411
		
@ -432,12 +429,39 @@ function eachData(userid,datalist) {
432 429
		//未读消息
433 430
		unreadCount = unreadConsultFn(userid,item["consultId"],index).unreadCount;
434 431
		unreadStyle = unreadConsultFn(userid,item["consultId"],index).style;
435
/*    	console.log(unreadStyle)*/
436 432
    	
437 433
        var li = document.createElement('li');
438 434
        li.className = 'mui-table-view-cell mui-media'; 
439
440
        li.innerHTML = '<div class="coutopicbox">'
435
        
436
        var str = '';
437
       	str += '<div class="coutopicbox"><span class="coutheme mui-ellipsis mui-pull-left">'+title+'</span>'
438
       				+ '<div class="coustatus mui-pull-right"><span class="aimlabel">'+consultType+'</span>'
439
            		+ '<span class="'+statusStyle+' status" consultId="'+item["consultId"]+'">'+status+'</span></div></div>'
440
            		+ '<a class="proinfor itemBtn" consultId="'+item["consultId"]+'" consultantId="'+item["consultantId"]+'" >'
441
					+ '<span class="mui-badge mui-badge-danger readstate '+unreadStyle+'" consultId="'+item["consultId"]+'">'+unreadCount+'</span>'
442
	        		+ '<img class="mui-media-object mui-pull-left headimg headRadius" src="'+photoUrl+'">'
443
            		+ '<div class="mui-media-body">'
444
            		+ '<span class="listtit">'+item["professor"]["name"]+'<em class="mui-icon iconfont icon-vip '+proModify+'"></em><span class="thistime">'+lastReplyTime+'</span></span>';
445
        str += '<p class="listtit2">';
446
        if(item["professor"]["title"]){
447
        	str += '<span>'+item["professor"]["title"]+'</span>, ';
448
        };
449
        if(item["professor"]["office"]){
450
        	str += '<span>'+item["professor"]["office"]+'</span>, ';
451
        };
452
        if(item["professor"]["orgName"]){
453
        	str += '<span>'+item["professor"]["orgName"]+'</span>';
454
        };
455
        if(item["professor"]["address"]){
456
        	str += '<span>  | '+item["professor"]["address"]+'</span>';
457
        };
458
        
459
        str +='</p><p class="listtit3 onlyone">'+lastReplyCon+'</p></div></a>';
460
        
461
		li.innerHTML = str;
462
		
463
		
464
        /*li.innerHTML = '<div class="coutopicbox">'
441 465
            		+ '<span class="coutheme mui-ellipsis mui-pull-left">'+title+'</span>'
442 466
            		+ '<div class="coustatus mui-pull-right"><span class="aimlabel">'+consultType+'</span>'
443 467
            		+ '<span class="'+statusStyle+' status" consultId="'+item["consultId"]+'">'+status+'</span></div></div>'
@ -448,7 +472,7 @@ function eachData(userid,datalist) {
448 472
            		+ '<span class="listtit">'+item["professor"]["name"]+'<em class="mui-icon iconfont icon-vip '+proModify+'"></em><span class="thistime">'+lastReplyTime+'</span></span>'	
449 473
            		+ '<p class="listtit2"><span>'+zhicehng+'</span><span>'+zhiwei+'</span><span>'+orgName+'</span><span>'+address+'</span></p>'
450 474
            		+ '<p class="listtit3 onlyone">'+lastReplyCon+'</p>'
451
            		+ '</div></a>';
475
            		+ '</div></a>';*/
452 476
            		
453 477
        table.appendChild(li,table.firstChild);
454 478
    });

+ 68 - 0
app/js/kefuhelp.js

@ -0,0 +1,68 @@
1
mui.ready(function() {
2
	var feedBack = document.getElementById("feedBack");
3
	var claims = document.getElementById("claims");
4
//	var FAQ = document.getElementById("FAQ");
5
	var contactService = document.getElementById("contactService");
6
	
7
	
8
	/*意见反馈*/
9
	feedBack.addEventListener('tap',function(){
10
		var userid = plus.storage.getItem('userid');
11
		console.log(userid);
12
		mui.openWindow({
13
			url: '../html/feedback.html',
14
			id: '../html/feedback.html',
15
			show: {
16
				aniShow: "slide-in-right"
17
			},
18
			extras:{userId:userid}
19
		});
20
		
21
	});
22
	
23
	/*投诉举报*/
24
	claims.addEventListener('tap',function(){
25
		var userid = plus.storage.getItem('userid');
26
		console.log(userid);
27
		mui.openWindow({
28
			url: '../html/claims.html',
29
			id: '../html/claims.html',
30
			show: {
31
				aniShow: "slide-in-right"
32
			},
33
			extras:{userId:userid}
34
		});
35
		
36
	});
37
	
38
	/*常见问题*/
39
	/*FAQ.addEventListener('tap',function(){
40
		var userid = plus.storage.getItem('userid');
41
		console.log(userid);
42
		mui.openWindow({
43
			url: '../html/faq.html',
44
			id: '../html/faq.html',
45
			show: {
46
				aniShow: "slide-in-right"
47
			},
48
			extras:{userId:userid}
49
		});
50
		
51
	});*/
52
	
53
	/*联系客服*/
54
	contactService.addEventListener('tap',function(){
55
		var userid = plus.storage.getItem('userid');
56
		console.log(userid);
57
		mui.openWindow({
58
			url: '../html/contactservice.html',
59
			id: '../html/contactservice.html',
60
			show: {
61
				aniShow: "slide-in-right"
62
			},
63
			extras:{userId:userid}
64
		});
65
		
66
	});
67
	
68
});

+ 7 - 0
app/js/nologin_consult.js

@ -0,0 +1,7 @@
1
mui.plusReady(function() {
2
	
3
	var userid = plus.storage.getItem('userid'); 
4
	
5
	
6
	
7
});

+ 6 - 55
app/js/setup.js

@ -6,10 +6,7 @@ mui.ready(function() {
6 6
	var security = document.getElementById("security");
7 7
	var userAgreement = document.getElementById("userAgreement");
8 8
	var about = document.getElementById("about");
9
	var feedBack = document.getElementById("feedBack");
10
	var claims = document.getElementById("claims");
11
	var FAQ = document.getElementById("FAQ");
12
	var contactService = document.getElementById("contactService");
9
	var kefu = document.getElementById("kefu");
13 10
	
14 11
	/*账户与安全*/
15 12
	security.addEventListener('tap',function(){
@ -59,64 +56,18 @@ mui.ready(function() {
59 56
		});
60 57
	});
61 58
	
62
	/*意见反馈*/
63
	feedBack.addEventListener('tap',function(){
64
		var userid = plus.storage.getItem('userid');
65
		console.log(userid);
59
	/*客服帮助*/
60
	kefu.addEventListener('tap',function(){
66 61
		mui.openWindow({
67
			url: '../html/feedback.html',
68
			id: '../html/feedback.html',
62
			url: '../html/kefuhelp.html',
63
			id: '../html/kefuhelp.html',
69 64
			show: {
70 65
				aniShow: "slide-in-right"
71
			},
72
			extras:{userId:userid}
73
		});
74
		
75
	});
76
	
77
	/*投诉举报*/
78
	claims.addEventListener('tap',function(){
79
		var userid = plus.storage.getItem('userid');
80
		console.log(userid);
81
		mui.openWindow({
82
			url: '../html/claims.html',
83
			id: '../html/claims.html',
84
			show: {
85
				aniShow: "slide-in-right"
86
			},
87
			extras:{userId:userid}
66
			}
88 67
		});
89 68
		
90 69
	});
91 70
	
92
	/*常见问题*/
93
	FAQ.addEventListener('tap',function(){
94
		var userid = plus.storage.getItem('userid');
95
		console.log(userid);
96
		mui.openWindow({
97
			url: '../html/faq.html',
98
			id: '../html/faq.html',
99
			show: {
100
				aniShow: "slide-in-right"
101
			},
102
			extras:{userId:userid}
103
		});
104
		
105
	});
106 71
	
107
	/*联系客服*/
108
	contactService.addEventListener('tap',function(){
109
		var userid = plus.storage.getItem('userid');
110
		console.log(userid);
111
		mui.openWindow({
112
			url: '../html/contactservice.html',
113
			id: '../html/contactservice.html',
114
			show: {
115
				aniShow: "slide-in-right"
116
			},
117
			extras:{userId:userid}
118
		});
119
		
120
	});
121 72
	
122 73
});