Browse Source

工作台专家标识

jack 8 years ago
parent
commit
feb1bb4ef8

+ 1 - 1
src/main/webapp/css/workspace.css

@ -144,7 +144,7 @@
144 144
	text-overflow:ellipsis;
145 145
}
146 146
147
.modifyicon{width:16px; margin-left:6px;margin-top: 6px;}
147
.modifyicon{ margin-left:6px;margin-top: 6px;}
148 148
.workitimg{ width:120px; height:120px; }
149 149
.messagebox{position:relative;}
150 150
.msgprompt{position:absolute; top:26px; left:-14px; padding:0 10px;text-align:center;  border-radius:14px; background:#ff6432; color:#fff;}

+ 16 - 7
src/main/webapp/js/workindex.js

@ -13,13 +13,22 @@ $(function(){
13 13
			{					
14 14
			$("#nameS").text(data.data.name);
15 15
			$("#allConsultCount").text(data.data.consultCount);
16
			if(data.data.authentication){
17
				$(".modifyicon")[0].src="/images/onauth.png"
18
			}
19
			else{
20
				$(".modifyicon")[0].src="/images/icon-unauth.png";
21
				
22
			}
16
			if(data.data.authType) {
17
         		$(".modifyicon").addClass("authicon authicon-cu");								
18
				} else {
19
					if(data.data.authStatus) {
20
						if(data.data.authentication == 1) {
21
							$(".modifyicon").addClass("authicon2 authicon-mana");
22
							$(".modifyicon").html("<span style='top:12px'>科研</span>");										
23
						} else if(data.data.authentication == 2) {
24
							$(".modifyicon").addClass("authicon2 authicon-staff");
25
							$(".modifyicon").html("<span style='top:12px'>企业</span>");										
26
						} else {
27
							$(".modifyicon").addClass("authicon2 authicon-stu");
28
							$(".modifyicon").html("<span style='top:12px'>学生</span>");										
29
						}
30
					}
31
				}
23 32
			if(data.data.office) {
24 33
				$("#office").text(data.data.office+",");
25 34
			}

+ 1 - 1
src/main/webapp/workindex.html

@ -15,7 +15,7 @@
15 15
                        <!-- <p class="workstat">合作<br><span>12</span>次</p> -->
16 16
                    </div>
17 17
                    <div class="workinfor floatL">
18
                        <h4><a  class="named" id="nameS"></a><img class="modifyicon" src="" width="30"></h4>
18
                        <h4><a  class="named" id="nameS"></a><a class="modifyicon"></a></h4>
19 19
                        <h5><span id="office"></span><span id="title"></span></h5>
20 20
                        <h6><span id="department"></span><span id="organization"></span></h6>
21 21
                        <h6><span id="address"></span></h6>