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
	function makeCode() {
201
	function makeCode() {
202
		var hurl = window.location.host;
202
		var hurl = window.location.host;
203
		var articleId = GetQueryString("articleId");
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
		qrcode.makeCode(elurl);
205
		qrcode.makeCode(elurl);
206
	}
206
	}
207
	makeCode();
207
	makeCode();

+ 0 - 1
css/workspace.css

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

+ 16 - 1
js/workindex.js

841
	//最新回复中的发送
841
	//最新回复中的发送
842
	$("#myFlatSendReplyBtn").bind("click",newReplySendFn);
842
	$("#myFlatSendReplyBtn").bind("click",newReplySendFn);
843
	//点击最新咨询查看全部
843
	//点击最新咨询查看全部
844
	$("#lookAllConsult,#lookMyConsult").click(function(){
844
	$("#lookAllConsult").click(function(){
845
		$("#consultbtn").addClass('subcolor');
845
		$("#consultbtn").addClass('subcolor');
846
		lookall = 1;
846
		lookall = 1;
847
		clickConsultBtn(lookall);
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
	$("#lookAllReply").click(function(){
865
	$("#lookAllReply").click(function(){
851
		$("#consultbtn").addClass('subcolor');
866
		$("#consultbtn").addClass('subcolor');

+ 2 - 3
workindex.html

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