Browse Source

去掉咨询身份判断

luyanan 7 years ago
parent
commit
1a59ff2eaa
5 changed files with 13 additions and 19 deletions
  1. 1 1
      consult.html
  2. 3 9
      js/common.js
  3. 4 4
      js/dialogs.js
  4. 4 4
      js/workindex.js
  5. 1 1
      myConsult.html

+ 1 - 1
consult.html

@ -26,7 +26,7 @@
26 26
		<div class="workcon">
27 27
			<div class="workconitem consublock">
28 28
				<div class="workcontit">
29
					<a class="worksamlltit worksamlltit3 worksamlltitnow nohide" href="consult.html" style="display: none;">收到咨询</a>
29
					<a class="worksamlltit worksamlltit3 worksamlltitnow" href="consult.html">收到咨询</a>
30 30
					<a class="worksamlltit worksamlltit3" href="myConsult.html">我的咨询</a>
31 31
				</div>
32 32
				<div class="worksubcon">

+ 3 - 9
js/common.js

@ -511,16 +511,10 @@ if($.cookie('userName') && $.cookie('userName') != "null" && $.cookie('userName'
511 511
	if(ifuser.authType2 == 0) {
512 512
		$("#repalyf").addClass("repalyf");
513 513
		/*点击未读咨询消息查看*/
514
		$("#gozixu").on("click", function() {
515
			window.location.href = "myConsult.html";
516
		})
517
	} else {
518
		$(".nohide").show();
519
		/*点击未读咨询消息查看*/
520
		$("#gozixu").on("click", function() {
521
			window.location.href = "consult.html";
522
		})
523 514
	}
515
	$("#gozixu").on("click", function() {
516
		window.location.href = "myConsult.html";
517
	})
524 518
}
525 519
/*多行文本框样式(带有限制数字)模拟focus效果*/
526 520
$(".msgContbox textarea").focus(function() {

+ 4 - 4
js/dialogs.js

@ -19,11 +19,11 @@ var pageNo, isbind, status, timeType, sortType;
19 19

20 20
//返回按钮
21 21
$("#backBtn").on("click", function() {
22
	if(attrParams == 'consultId') {
23
		window.location.href = "myConsult.html";
24
	} else {
22
//	'if(attrParams == 'consultId') {
23
//		window.location.href = "myConsult.html";
24
//	} else {'
25 25
		window.location.href = "consult.html";
26
	}
26
//	}
27 27
})
28 28

29 29
//列表最后回复

+ 4 - 4
js/workindex.js

@ -29,11 +29,11 @@ $(function() {
29 29
30 30
	/*点击未读咨询消息查看*/
31 31
	$("#lookMyConsult").on("click", function() {
32
		if(ifuser.authType2 == 0) {
33
			window.location.href = "myConsult.html";
34
		} else {
32
//		if(ifuser.authType2 == 0) {
33
//			window.location.href = "myConsult.html";
34
//		} else {
35 35
			window.location.href = "consult.html";
36
		}
36
//		}
37 37
	})
38 38
	
39 39
	/*点击未读咨询消息查看*/

+ 1 - 1
myConsult.html

@ -27,7 +27,7 @@
27 27
		<div class="workcon">
28 28
			<div class="workconitem consublock">
29 29
				<div class="workcontit">
30
				<a class="worksamlltit worksamlltit3 nohide" href="consult.html" style="display: none;">收到咨询</a>
30
				<a class="worksamlltit worksamlltit3" href="consult.html">收到咨询</a>
31 31
					<a class="worksamlltit worksamlltit3 worksamlltitnow" href="myConsult.html">我的咨询</a>
32 32
				</div>
33 33
				<div class="worksubcon">