Browse Source

修改工作台权限问题

xuchunyang 8 years ago
parent
commit
2dd5ed00c4
4 changed files with 19 additions and 6 deletions
  1. 1 1
      articalInfo.html
  2. 0 1
      css/workspace.css
  3. 16 1
      js/workindex.js
  4. 2 3
      workindex.html

+ 1 - 1
articalInfo.html

@ -201,7 +201,7 @@
201 201
	function makeCode() {
202 202
		var hurl = window.location.host;
203 203
		var articleId = GetQueryString("articleId");
204
		var elurl = hurl + "/ekexiu/shareArticalinfor.html?articleId=" + articleId;
204
		var elurl = "https://" + hurl + "/ekexiu/shareArticalinfor.html?articleId=" + articleId;
205 205
		qrcode.makeCode(elurl);
206 206
	}
207 207
	makeCode();

+ 0 - 1
css/workspace.css

@ -85,7 +85,6 @@
85 85
.workcountnum{ font-size:18px;line-height:30px; margin:6px; font-style: italic; color: #ff9900; }
86 86
87 87
.worksubblock{ width:50%; padding:0 10px;position: relative;}
88
.worksubblock:nth-child(1){ border-right:1px solid #d6d6d6;}
89 88
.worktit{ width:100%;border-bottom:1px solid #d6d6d6; padding:4px 0; font-size:16px; }
90 89
.leftwb{ width:30%; margin:auto; text-align:center;}
91 90
.wbcon{ padding:20px 0; overflow:hidden;}

+ 16 - 1
js/workindex.js

@ -841,11 +841,26 @@ $(function(){
841 841
	//最新回复中的发送
842 842
	$("#myFlatSendReplyBtn").bind("click",newReplySendFn);
843 843
	//点击最新咨询查看全部
844
	$("#lookAllConsult,#lookMyConsult").click(function(){
844
	$("#lookAllConsult").click(function(){
845 845
		$("#consultbtn").addClass('subcolor');
846 846
		lookall = 1;
847 847
		clickConsultBtn(lookall);
848 848
	});
849
	
850
	if(ifuser.authType2==0){
851
		$("#lookMyConsult").click(function(){
852
			$("#consultbtn").addClass('subcolor');
853
			lookall = 2;
854
			clickConsultBtn(lookall);
855
		});
856
	}else{
857
		$("#lookMyConsult").click(function(){
858
			$("#consultbtn").addClass('subcolor');
859
			lookall = 1;
860
			clickConsultBtn(lookall);
861
		});
862
	}
863
	
849 864
	//点击最新回复查看全部
850 865
	$("#lookAllReply").click(function(){
851 866
		$("#consultbtn").addClass('subcolor');

+ 2 - 3
workindex.html

@ -22,8 +22,8 @@
22 22
                    </div>
23 23
                    
24 24
                </div>
25
                <div class="worksubblock floatL">
26
                    <div class="workcountup nohide" style="display: none;">
25
                <div class="worksubblock floatL" style="border-left:1px solid #d6d6d6;">
26
                    <div class="workcountup ">
27 27
                        <div class="workcount" style="height: 50%;">
28 28
                            <p><span class="workcountnum" id="unreadConsult"></span>条未读的咨询消息</p>
29 29
                            <a class="worklinkbtn" id="lookMyConsult">>>查看我的咨询</a>
@ -155,7 +155,6 @@
155 155
	//判断用户类型显示用户权限
156 156
	if(ifuser.authType2==0){
157 157
		$("#repalyf").addClass("repalyf");
158
		$("#lookMyAttention").css("border","none");
159 158
	}else{
160 159
		$("#newsciresourcebtn,#newslist,.nohide").show();
161 160
	}