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
		<div class="workcon">
26
		<div class="workcon">
27
			<div class="workconitem consublock">
27
			<div class="workconitem consublock">
28
				<div class="workcontit">
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
					<a class="worksamlltit worksamlltit3" href="myConsult.html">我的咨询</a>
30
					<a class="worksamlltit worksamlltit3" href="myConsult.html">我的咨询</a>
31
				</div>
31
				</div>
32
				<div class="worksubcon">
32
				<div class="worksubcon">

+ 3 - 9
js/common.js

511
	if(ifuser.authType2 == 0) {
511
	if(ifuser.authType2 == 0) {
512
		$("#repalyf").addClass("repalyf");
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
/*多行文本框样式(带有限制数字)模拟focus效果*/
519
/*多行文本框样式(带有限制数字)模拟focus效果*/
526
$(".msgContbox textarea").focus(function() {
520
$(".msgContbox textarea").focus(function() {

+ 4 - 4
js/dialogs.js

19

19

20
//返回按钮
20
//返回按钮
21
$("#backBtn").on("click", function() {
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
		window.location.href = "consult.html";
25
		window.location.href = "consult.html";
26
	}
26
//	}
27
})
27
})
28

28

29
//列表最后回复
29
//列表最后回复

+ 4 - 4
js/workindex.js

29
29
30
	/*点击未读咨询消息查看*/
30
	/*点击未读咨询消息查看*/
31
	$("#lookMyConsult").on("click", function() {
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
			window.location.href = "consult.html";
35
			window.location.href = "consult.html";
36
		}
36
//		}
37
	})
37
	})
38
	
38
	
39
	/*点击未读咨询消息查看*/
39
	/*点击未读咨询消息查看*/

+ 1 - 1
myConsult.html

27
		<div class="workcon">
27
		<div class="workcon">
28
			<div class="workconitem consublock">
28
			<div class="workconitem consublock">
29
				<div class="workcontit">
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
					<a class="worksamlltit worksamlltit3 worksamlltitnow" href="myConsult.html">我的咨询</a>
31
					<a class="worksamlltit worksamlltit3 worksamlltitnow" href="myConsult.html">我的咨询</a>
32
				</div>
32
				</div>
33
				<div class="worksubcon">
33
				<div class="worksubcon">