Browse Source

用户实名验证后图标显示

xuchunyang 8 years ago
parent
commit
bd84a6b678
9 changed files with 29 additions and 25 deletions
  1. 1 1
      ekexiu/shareProinfor.html
  2. 1 1
      ekexiu/shareResinfor.html
  3. 1 1
      js/common.js
  4. 8 6
      js/consult.js
  5. 12 10
      js/consultSure.js
  6. 2 2
      js/information.brow.js
  7. 1 1
      js/resourceInfo.js
  8. 2 2
      js/search.js
  9. 1 1
      js/workindex.js

+ 1 - 1
ekexiu/shareProinfor.html

@ -286,7 +286,7 @@
286 286
								nameli.classList.add('authicon');
287 287
								nameli.classList.add('authicon-cu');
288 288
							} else {
289
								if($data.authStatus) {
289
								if($data.authStatus==3) {
290 290
									if($data.authentication == 1) {
291 291
										nameli.classList.add('authicon2');
292 292
										nameli.classList.add('authicon-mana');

+ 1 - 1
ekexiu/shareResinfor.html

@ -208,7 +208,7 @@
208 208
									opromodify.classList.add('authicon-cu');
209 209
									opromodify.style.margin = "5px 0 0 3px";
210 210
								} else {
211
									if(mydata['editProfessor']["authStatus"]) {
211
									if(mydata['editProfessor']["authStatus"]==3) {
212 212
										if(mydata['editProfessor']["authentication"] == 1) {
213 213
											opromodify.classList.add('authicon2');
214 214
											opromodify.classList.add('authicon-mana');

+ 1 - 1
js/common.js

@ -343,7 +343,7 @@ function concultProInfo(professorId){
343 343
					$("#proModify").addClass('authicon authicon-cu');
344 344
											
345 345
				} else {//普通用户
346
					if(myData.authStatus) {//身份已认证
346
					if(myData.authStatus==3) {//身份已认证
347 347
						if(myData.authentication == 1) {//科研工作者
348 348
							
349 349
							$("#proModify").addClass('authicon2 authicon-mana');

+ 8 - 6
js/consult.js

@ -132,12 +132,14 @@ function handleData(data, attrParams, btnCls) {
132 132
			if(data[i]["professor"].authType) { //专家
133 133
				modifyclass = 'authicon authicon-cu';
134 134
			} else { //普通用户
135
				if(data[i]["professor"].authentication == 1) { //科研工作者
136
					modifyclass = "authicon2 authicon-mana";
137
				} else if(data[i]["professor"].authentication == 2) { //企业专家
138
					modifyclass = "authicon2 authicon-staff";
139
				} else { //学生
140
					modifyclass = "authicon2 authicon-stu";
135
				if(data[i]["professor"].authStatus == 3) { 
136
					if(data[i]["professor"].authentication == 1) { //科研工作者
137
						modifyclass = "authicon2 authicon-mana";
138
					} else if(data[i]["professor"].authentication == 2) { //企业专家
139
						modifyclass = "authicon2 authicon-staff";
140
					} else { //学生
141
						modifyclass = "authicon2 authicon-stu";
142
					}
141 143
				}
142 144
			};
143 145

+ 12 - 10
js/consultSure.js

@ -134,16 +134,18 @@ function consufun(id) {
134 134
					$("#usermark").addClass('authicon-cu');
135 135
					$("#usermark").css("margin:-4px 0 0 -2px");
136 136
				} else {
137
					if($info.authentication == 1) {
138
						$("#usermark").addClass('authicon2');
139
						$("#usermark").addClass('authicon-mana');
140
					} else if($info.authentication == 2) {
141
						$("#usermark").addClass('authicon2');
142
						$("#usermark").addClass('authicon-staff');
143
					} else {
144
						$("#usermark").addClass('authicon2');
145
						$("#usermark").addClass('authicon-stu');
146
					}
137
					if($info.authStatus==3) {
138
						if($info.authentication == 1) {
139
							$("#usermark").addClass('authicon2');
140
							$("#usermark").addClass('authicon-mana');
141
						} else if($info.authentication == 2) {
142
							$("#usermark").addClass('authicon2');
143
							$("#usermark").addClass('authicon-staff');
144
						} else {
145
							$("#usermark").addClass('authicon2');
146
							$("#usermark").addClass('authicon-stu');
147
						}
148
					}	
147 149
				}
148 150

149 151
				if($info.title) {

+ 2 - 2
js/information.brow.js

@ -350,7 +350,7 @@ $(function() {
350 350
							if($info[i].professor.authType) {
351 351
								var typeTname = "authicon authicon-cu"
352 352
							} else {
353
								if($info[i].professor.authStatus) {
353
								if($info[i].professor.authStatus==3) {
354 354
									if($info[i].professor.authentication == 1) {
355 355
										var typeTname = "authicon2 authicon-mana";
356 356
									} else if($info[i].professor.authentication == 2) {
@ -465,7 +465,7 @@ $(function() {
465 465
					if($info.authType) {
466 466
						$(".modify").addClass("authicon authicon-cu");
467 467
					} else {
468
						if($info.authStatus) {
468
						if($info.authStatus==3) {
469 469
							if($info.authentication == 1) {
470 470
								$(".modify").addClass("authicon2 authicon-mana").css({
471 471
									"margin-top": "13px"

+ 1 - 1
js/resourceInfo.js

@ -52,7 +52,7 @@ $(document).ready(function() {
52 52
						if($info.editProfessor.authType) {
53 53
							$("#authFlag").addClass("authicon authicon-cu");
54 54
						} else {
55
							if($info.editProfessor.authStatus) {
55
							if($info.editProfessor.authStatus==3) {
56 56
								if($info.editProfessor.authentication == 1) {
57 57
									$("#authFlag").addClass("authicon2 authicon-mana");
58 58
								} else if($info.editProfessor.authentication == 2) {

+ 2 - 2
js/search.js

@ -153,7 +153,7 @@ $(function() {
153 153
								if($data.data.data[i].authType) {
154 154
									$(".modify").eq(i).addClass("authicon authicon-cu");
155 155
								} else {
156
									if($data.data.data[i].authStatus) {
156
									if($data.data.data[i].authStatus==3) {
157 157
										if($data.data.data[i].authentication == 1) {
158 158
											$(".modify").eq(i).addClass("authicon2 authicon-mana");
159 159
											//$(".modify").eq(i).html("<span>科研</span>");										
@ -272,7 +272,7 @@ $(function() {
272 272
							if($da[i].editProfessor.authType) {
273 273
								$add.find(".modicon").addClass("authicon authicon-cu");
274 274
							} else {
275
								if($da[i].editProfessor.authStatus) {
275
								if($da[i].editProfessor.authStatus==3) {
276 276
									if($da[i].editProfessor.authentication == 1) {
277 277
										$add.find(".modicon").addClass("authicon2 authicon-mana");
278 278
										//$add.find(".modicon").html("<span style='top:35%'>科研</span>");										

+ 1 - 1
js/workindex.js

@ -51,7 +51,7 @@ $(function() {
51 51
					if(data.data.authType) {
52 52
						$(".modifyicon").addClass("authicon authicon-cu");
53 53
					} else {
54
						if(data.data.authStatus) {
54
						if(data.data.authStatus==3) {
55 55
							if(data.data.authentication == 1) {
56 56
								$(".modifyicon").addClass("authicon2 authicon-mana");
57 57
								//$(".modifyicon").html("<span style='top:12px'>科研</span>");