浏览代码

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

luyanan 7 年之前
父节点
当前提交
4914a3db57
共有 6 个文件被更改,包括 20 次插入9 次删除
  1. 3 3
      app/css/app.css
  2. 3 2
      app/html/userInforShow.html
  3. 3 0
      app/js/cmpInforShow.js
  4. 1 1
      app/js/searchListNew2.js
  5. 5 3
      app/js/userInforShow.js
  6. 5 0
      app/js/userInforUpdate.js

+ 3 - 3
app/css/app.css

@ -985,7 +985,7 @@ footer.chatFooter .mui-icon-paperplane {font-size: 16px;word-break: keep-all;lin
985 985
.searchTab .madiaHead.paperHead{background-image: url(../images/default-paper.jpg);}
986 986
.searchTab .madiaHead.patentHead{background-image: url(../images/default-patent.jpg);}
987 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 989
.searchTab .madiaInfo{padding-left:62px; width: 100%;}
990 990
.searchTab .madiaInfo.OmadiaInfo{padding-left: 102px;}
991 991
.searchTab .flexCenter.OflexCenter{min-height:54px;}
@ -1168,10 +1168,10 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
1168 1168
.showCardI{overflow:hidden;background: url(../images/personal_img_bg_nor@3x.png) center 0 no-repeat;background-size:100% 130px;}
1169 1169
.cardTop{position:relative;text-align:center;min-height:140px;margin:15px 15px 6px;padding:40px 40px 20px;
1170 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 1172
.cardImg.userCard{background-image:url(../images/default-photo.jpg);border-radius: 50%;}
1173 1173
.cardImg.cmpCard{border-radius:4px;}
1174
.cardImg.cmpCard .boxBlock{width: 60px;height: 60px;}
1174
.cardImg.cmpCard .boxBlock{width: 80px;height: 80px;}
1175 1175
.cardInfo{margin-top:82px;}
1176 1176
.cardInfo .h1Font{font-size:16px;}
1177 1177
.cardInfo .h2Font{font-size:14px;color: #666;}

+ 3 - 2
app/html/userInforShow.html

@ -39,11 +39,12 @@
39 39
			<div class="showCardI">
40 40
				<div class="cardTop">
41 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 43
					</div>
44 44
					<div class="cardInfo">
45 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 48
						<p class="h3Font" id="address"></p>
48 49
					</div>		
49 50
				</div>

+ 3 - 0
app/js/cmpInforShow.js

@ -106,6 +106,9 @@ mui.ready(function() {
106 106
						/*企业简介*/
107 107
						if($data.descp) {
108 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 114
						var proOther = "";

+ 1 - 1
app/js/searchListNew2.js

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

+ 5 - 3
app/js/userInforShow.js

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

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

+ 5 - 0
app/js/userInforUpdate.js

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