Browse Source

修改用户和企业的头像以及机构显示

luyanan 7 years ago
parent
commit
4914a3db57

+ 3 - 3
app/css/app.css

985
.searchTab .madiaHead.paperHead{background-image: url(../images/default-paper.jpg);}
985
.searchTab .madiaHead.paperHead{background-image: url(../images/default-paper.jpg);}
986
.searchTab .madiaHead.patentHead{background-image: url(../images/default-patent.jpg);}
986
.searchTab .madiaHead.patentHead{background-image: url(../images/default-patent.jpg);}
987
.searchTab .madiaHead.companyHead{background:#fff;}
987
.searchTab .madiaHead.companyHead{background:#fff;}
988
.searchTab .madiaHead.companyHead .boxBlock{width: 90px;height:60px;}
988
.searchTab .madiaHead.companyHead .boxBlock{width:88px;height:58px;}
989
.searchTab .madiaInfo{padding-left:62px; width: 100%;}
989
.searchTab .madiaInfo{padding-left:62px; width: 100%;}
990
.searchTab .madiaInfo.OmadiaInfo{padding-left: 102px;}
990
.searchTab .madiaInfo.OmadiaInfo{padding-left: 102px;}
991
.searchTab .flexCenter.OflexCenter{min-height:54px;}
991
.searchTab .flexCenter.OflexCenter{min-height:54px;}
1168
.showCardI{overflow:hidden;background: url(../images/personal_img_bg_nor@3x.png) center 0 no-repeat;background-size:100% 130px;}
1168
.showCardI{overflow:hidden;background: url(../images/personal_img_bg_nor@3x.png) center 0 no-repeat;background-size:100% 130px;}
1169
.cardTop{position:relative;text-align:center;min-height:140px;margin:15px 15px 6px;padding:40px 40px 20px;
1169
.cardTop{position:relative;text-align:center;min-height:140px;margin:15px 15px 6px;padding:40px 40px 20px;
1170
		background: rgba(256,256,256,.6);background: linear-gradient( rgba(256,256,256,.6), rgba(256,256,256,.9));border-radius:6px;box-shadow: 0px 2px 4px 1px rgba(0,0,0,.1);}
1170
		background: rgba(256,256,256,.6);background: linear-gradient( rgba(256,256,256,.6), rgba(256,256,256,.9));border-radius:6px;box-shadow: 0px 2px 4px 1px rgba(0,0,0,.1);}
1171
.cardImg{position: absolute;left:50%;margin-left: -31px;width: 60px;height: 60px;overflow: hidden;background-size: cover;/*border:1px solid #E5E5E5;*/background-color: #fff;}
1171
.cardImg{position: absolute;margin-top:-15px;left:50%;margin-left: -40px;width:80px;height: 80px;overflow: hidden;background-size: cover;/*border:1px solid #E5E5E5;*/background-color: #fff;}
1172
.cardImg.userCard{background-image:url(../images/default-photo.jpg);border-radius: 50%;}
1172
.cardImg.userCard{background-image:url(../images/default-photo.jpg);border-radius: 50%;}
1173
.cardImg.cmpCard{border-radius:4px;}
1173
.cardImg.cmpCard{border-radius:4px;}
1174
.cardImg.cmpCard .boxBlock{width: 60px;height: 60px;}
1174
.cardImg.cmpCard .boxBlock{width: 80px;height: 80px;}
1175
.cardInfo{margin-top:82px;}
1175
.cardInfo{margin-top:82px;}
1176
.cardInfo .h1Font{font-size:16px;}
1176
.cardInfo .h1Font{font-size:16px;}
1177
.cardInfo .h2Font{font-size:14px;color: #666;}
1177
.cardInfo .h2Font{font-size:14px;color: #666;}

+ 3 - 2
app/html/userInforShow.html

39
			<div class="showCardI">
39
			<div class="showCardI">
40
				<div class="cardTop">
40
				<div class="cardTop">
41
					<div class="cardImg userCard">
41
					<div class="cardImg userCard">
42
						<img class="headimg headRadius" src="../images/default-photo.jpg" data-preview-src data-preview-group="1" style="width:60px;height:60px;border-radius:50%;"/>
42
						<img class="headimg headRadius" src="../images/default-photo.jpg" data-preview-src data-preview-group="1" style="width:80px;height:80px;border-radius:50%;"/>
43
					</div>
43
					</div>
44
					<div class="cardInfo">
44
					<div class="cardInfo">
45
						<p><span class="h1Font" id="professor"></span><em class="authicon " title="科袖认证专家" id="nameLi"></em></p>
45
						<p><span class="h1Font" id="professor"></span><em class="authicon " title="科袖认证专家" id="nameLi"></em></p>
46
						<p class="mui-ellipsis h2Font" id="tMess"></p>
46
						<p class="h2Font" id="tMess"></p>
47
						<p class="h2Font" id="tMess2"></p>
47
						<p class="h3Font" id="address"></p>
48
						<p class="h3Font" id="address"></p>
48
					</div>		
49
					</div>		
49
				</div>
50
				</div>

+ 3 - 0
app/js/cmpInforShow.js

106
						/*企业简介*/
106
						/*企业简介*/
107
						if($data.descp) {
107
						if($data.descp) {
108
							document.getElementById("breifinfo").innerText = $data.descp;
108
							document.getElementById("breifinfo").innerText = $data.descp;
109
						}else{
110
							document.getElementById("breifinfo").parentNode.style.display = "none";
111
							document.getElementById("goCmpBrief").style.borderBottomColor="transparent";
109
						}
112
						}
110
						/*应用行业*/
113
						/*应用行业*/
111
						var proOther = "";
114
						var proOther = "";

+ 1 - 1
app/js/searchListNew2.js

547
					li.setAttribute("data-id", $data[i].id);
547
					li.setAttribute("data-id", $data[i].id);
548
					li.className = "mui-table-view-cell";
548
					li.className = "mui-table-view-cell";
549
					li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
549
					li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
550
						'<div class="madiaHead paper Head"></div>' +
550
						'<div class="madiaHead paperHead"></div>' +
551
						'<div class="madiaInfo OmadiaInfo">' +
551
						'<div class="madiaInfo OmadiaInfo">' +
552
						'<p class="mui-ellipsis h1Font">' + $data[i].name + '</p>' +
552
						'<p class="mui-ellipsis h1Font">' + $data[i].name + '</p>' +
553
						'<p class="mui-ellipsis h2Font">' + $data[i].authors.substring(0, $data[i].authors.length - 1) + '</p>' +
553
						'<p class="mui-ellipsis h2Font">' + $data[i].authors.substring(0, $data[i].authors.length - 1) + '</p>' +

+ 5 - 3
app/js/userInforShow.js

97
					document.getElementById("descp").innerHTML = $data.descp;
97
					document.getElementById("descp").innerHTML = $data.descp;
98
				} else {
98
				} else {
99
					document.getElementById("descp").parentNode.style.display = "none";
99
					document.getElementById("descp").parentNode.style.display = "none";
100
					document.getElementById("detailProfessor").style.borderBottomColor="transparent";
100
				}
101
				}
101
				if($data.hasHeadImage) {
102
				if($data.hasHeadImage) {
102
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
103
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
116
				if($data.department) {
117
				if($data.department) {
117
					arr.push($data.department);
118
					arr.push($data.department);
118
				}
119
				}
119
				if($data.orgName) {
120
					arr.push($data.orgName);
121
				}
120
				
122
				if(arr.length) {
121
				if(arr.length) {
123
					document.getElementById("tMess").innerHTML = arr.join(",")
122
					document.getElementById("tMess").innerHTML = arr.join(",")
124
				}
123
				}
124
				if($data.orgName) {
125
					document.getElementById("tMess2").innerHTML = $data.orgName;
126
				}
125

127

126
				if($data.address) {
128
				if($data.address) {
127
					document.getElementById("address").innerHTML = '<em class="mui-icon iconfontnew icon-address"></em> ' + $data.address;
129
					document.getElementById("address").innerHTML = '<em class="mui-icon iconfontnew icon-address"></em> ' + $data.address;

+ 5 - 0
app/js/userInforUpdate.js

169
						}else{
169
						}else{
170
							document.getElementById('projectExperience').innerHTML="";
170
							document.getElementById('projectExperience').innerHTML="";
171
							document.getElementById('projectExperience').parentNode.style.display="none";
171
							document.getElementById('projectExperience').parentNode.style.display="none";
172
							document.getElementById('oproject').style.borderBottomColor="transparent";
172
						}
173
						}
173
						//工作经历
174
						//工作经历
174
						if($data.jobs.length) {
175
						if($data.jobs.length) {
180
						}else{
181
						}else{
181
							document.getElementById('soJob').innerHTML="";
182
							document.getElementById('soJob').innerHTML="";
182
							document.getElementById('soJob').parentNode.style.display="none";
183
							document.getElementById('soJob').parentNode.style.display="none";
184
							document.getElementById('oJob1').style.borderBottomColor="transparent";
183
						}
185
						}
184
						//荣誉奖项
186
						//荣誉奖项
185
						if($data.honors.length) {
187
						if($data.honors.length) {
191
						}else{
193
						}else{
192
							document.getElementById('honor').innerHTML="";
194
							document.getElementById('honor').innerHTML="";
193
							document.getElementById('honor').parentNode.style.display="none";
195
							document.getElementById('honor').parentNode.style.display="none";
196
							document.getElementById('ohonor').style.borderBottomColor="transparent";
194
						}
197
						}
195
						//教育背景
198
						//教育背景
196
						if($data.edus.length) {
199
						if($data.edus.length) {
202
						}else{
205
						}else{
203
							document.getElementById('education').innerHTML="";
206
							document.getElementById('education').innerHTML="";
204
							document.getElementById('education').parentNode.style.display="none";
207
							document.getElementById('education').parentNode.style.display="none";
208
							document.getElementById('oeduction').style.borderBottomColor="transparent";
209
							
205
						}
210
						}
206
					}
211
					}
207
				},
212
				},