wangchuanjin 9 years ago
parent
commit
3cc0b49870

+ 1 - 2
core/src/web/staticres/css/mobile/incmobile.css

@@ -246,9 +246,8 @@ span#camera {
 	text-align:center;
 }
 .index-header{
-	height:185px;
 	width:100%;
-	padding:25px 0px 30px 15px !important;
+	padding:25px 0px 15px 15px !important;
 	text-align:left;
 	background:#16A086;
 }

+ 1 - 1
core/src/web/staticres/js/relation.js

@@ -835,7 +835,7 @@ Relation.prototype.makeTextBg = function(){
 			
 		text.each(function() {
             var box = this.getBBox();
-			box.x = 0;
+			//box.x = 0;
             if (first || box.x < bounds.x1) {
                 bounds.x1 = box.x;
             }

+ 9 - 1
core/src/web/templates/enterprise/detail.html

@@ -15,7 +15,15 @@
 	<!--企业名片-->
 	<div class="b-com-head">
 		<div class="ent-logo" id="entLogo">
-			<img src="{{if .T.res.s_avatar}}{{Msg "seo" "cdn"}}{{.T.res.s_avatar}}{{else}}null{{end}}" onerror="this.src='{{Msg "seo" "cdn"}}/images/ent-logo.png'">
+			<script type="text/javascript">
+				var src = {{.T.res.s_avatar}};
+				if(src == ""){
+					src = null;
+				}else if(!src.startWith("http://")){
+					src = {{Msg "seo" "cdn"}}+src;
+				}
+				document.write('<img src="'+src+'" onerror="this.src=\'{{Msg "seo" "cdn"}}/images/ent-logo.png\'">');
+			</script>
 			{{if eq .T.editFlag 2}}
 			<div id="uploadLogo" class="ent-uploadLogo">
 				上传企业LOGO

+ 9 - 1
core/src/web/templates/member/incmobile/detailindex.html

@@ -98,7 +98,15 @@
 	<div id="header">
 	
 		<div class="col-xs-12 index-header" style="text-align:center;">
-			<img src="{{if .T.res.s_avatar}}{{Msg "seo" "cdn"}}{{.T.res.s_avatar}}{{else}}null{{end}}" onerror="this.src='{{Msg "seo" "cdn"}}/images/ent-logo.png'" height=85 width=85>
+			<script type="text/javascript">
+				var src = {{.T.res.s_avatar}};
+				if(src == ""){
+					src = null;
+				}else if(!src.startWith("http://")){
+					src = {{Msg "seo" "cdn"}}+src;
+				}
+				document.write('<img src="'+src+'" onerror="this.src=\'{{Msg "seo" "cdn"}}/images/ent-logo.png\'" height="85" width="85">');
+			</script>
 			<div class="col-xs-12 title"> 
 				{{if .T.res.EntName}}{{.T.res.EntName}}{{end}}
 			</div > 

+ 9 - 1
core/src/web/templates/search/enterpriseList.html

@@ -48,7 +48,15 @@
 				{{range $k,$v:=.T.data}}
 					<div class="borderB">
 						<div class="qfw-entcontent-padding">
-							<img src="{{if index $v "s_avatar"}}{{Msg "seo" "cdn"}}{{index $v "s_avatar"}}{{else}}null{{end}}" onerror="this.src='/images/ent-logo.png'">
+							<script type="text/javascript">
+								var src = {{index $v "s_avatar"}};
+								if(src == ""){
+									src = null;
+								}else if(!src.startWith("http://")){
+									src = {{Msg "seo" "cdn"}}+src;
+								}
+								document.write('<img src="'+src+'" onerror="this.src=\'{{Msg "seo" "cdn"}}/images/ent-logo.png\'">');
+							</script>
 							<div>
 								<div class="lineb " >
 									<a target="_blank" href="/enterprise/{{index $v "_id"}}.html"><b>