瀏覽代碼

企业社区服务列表

wangchuanjin 9 年之前
父節點
當前提交
0222cdd59b

+ 8 - 0
core/src/web/staticres/css/entcommunity.css

@@ -552,6 +552,14 @@ a:focus, a:hover{
 .ent-table td.ent-servicepaging{
 	padding-bottom: 0px !important;
 }
+.ent-serviceintroduction{
+	height: 60px;
+	overflow: hidden;
+	text-overflow: ellipsis;
+	word-wrap: break-word;
+	word-break: break-all;
+	white-space: normal !important;
+}
 /**************变更信息**********************/
 .ent-alterinfo li{
 	width: 100%;

+ 8 - 2
core/src/web/staticres/js/entportrait.js

@@ -139,7 +139,7 @@ function ServiceList(){
 				}
 				var flag = typeof(r[i].s_isshow) != "undefined" && r[i].s_isshow != null && r[i].s_isshow.indexOf("3")>-1;
 				html += '<tr>'
-						+'<td rowspan="2" width="120"><img src="'+(r[i].s_images==""?"null":r[i].s_images)+'" onerror="this.src=\'/images/services/default.png\'"></td>'
+						+'<td rowspan="2" width="130"><img src="'+(r[i].s_images==""?"null":r[i].s_images)+'" onerror="this.src=\'/images/services/default.png\'"></td>'
 						+'<td class="b-com-name">';
 				if(flag){
 					html += '<a href="/market/detail/'+r[i]._id+'.html">';
@@ -156,11 +156,17 @@ function ServiceList(){
 					html += '<td>&nbsp;</td><td>&nbsp;</td>';
 				}
 				html += '</tr><tr>'
-					+'<td>'+r[i].s_introduction+'</td>'
+					+'<td colspan="3"><div class="ent-serviceintroduction"><div>'+r[i].s_introduction+'</div></div></td>'
 					+'</tr>';
 			}
 			$("#serviceListPaging").parent().prevAll().remove();
 			$("#serviceListPaging").parent().before(html);
+			$(".ent-serviceintroduction").each(function(){
+				console.info($(this).height() +"------"+ $(this).children("div").height());
+				if($(this).height() < $(this).children("div").height()){
+					$(this).parent().append("......");
+				}
+			});
 		});
 	});
 }

+ 2 - 2
core/src/web/staticres/wxent/qfw-frontenterprise.js

@@ -310,7 +310,7 @@ if(!$gs){
 if($relationlen>0 ){
   //try{
 	var zoomlevel=1;
-	var w = parseInt($("#gx").css("width").replace("px","")) - 80;
+	var w = parseInt($("#gx").css("width").replace("px","")) - 20;
 	$("#infovis").css("width",w+"px");
 	var h = $("#infovis").height();
 	if($(".controlls").length>0){
@@ -999,7 +999,7 @@ var drag = force.drag()
 	//重绘
 	function redraw(){
 		if(force!=undefined){
-			var w = parseInt($("#gx").css("width").replace("px","")) - 80;
+			var w = parseInt($("#gx").css("width").replace("px","")) - 20;
 			var h = parseInt($("#gx").css("height").replace("px",""))-10;
 			d3.select("svg").attr("width", w).attr("height", h);
 			force.size([w,h]).resume();

二進制
core/src/web/staticres/wxswordfish/images/index.png


+ 1 - 1
core/src/web/templates/common/head.html

@@ -12,7 +12,7 @@
 		       	<ul class="text-center" id="head-navbar-ul">
 			        <li><img src="/images/nav-fwsc.png" class="visible-xs-inline"><a href="/market/0/list.html">服务市场</a></li>
 					<li class="hidden-xs"><img src="/images/nav-jy.png" class="visible-xs-inline"><a href="/front/swordfish">剑鱼</a></li>
-		            <li><img src="/images/nav-qysq.png" class="visible-xs-inline"><a href="/wx/search/enterprise/ent.html">企业社区</a></li>
+		            <li><img src="/images/nav-qysq.png" class="visible-xs-inline"><a href="/search/enterprise/ent.html">企业社区</a></li>
 		            <li><img src="/images/nav-zcfg.png" class="visible-xs-inline"><a href="/front/content_zcfg_list.html">政策法规</a></li>
 		            <li><img src="/images/nav-xwzx.png" class="visible-xs-inline"><a href="/front/content_qykb_list.html">新闻资讯</a></li>
 					<li class="hidden-xs"><img src="/images/nav-wgw.png" class="visible-xs-inline"><a href="/front/wsite.html">微官网</a></li>