李广朋 9 năm trước cách đây
mục cha
commit
8b08919c40

+ 3 - 2
core/src/qfw/search/wxsearchservice.go

@@ -108,8 +108,9 @@ func wxsearhWebContentent(querymap map[string]string, n *Wxsearch, reqType strin
 	if currentPage < 1 {
 		currentPage = 1
 	}
-	if currentPage > 20 {
-		currentPage = 20
+	if currentPage > 1 {
+		tmp := make([]map[string]interface{}, 0)
+		return &tmp
 	}
 	queryStr := querymap["query"]
 	fmt.Println("检索条件:", queryStr)

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

@@ -42,6 +42,7 @@ ul{
 .m-searchbar .immediately div{
 	height:30px;
 	line-height:30px ;
+	overflow:hidden !important;
 }
 .m-searchbar .immediately div:hover{
 	cursor:pointer;

BIN
core/src/web/staticres/images/mobile/unauth.png


+ 6 - 0
core/src/web/staticres/js/entcommunity.js

@@ -26,6 +26,12 @@ mCommunity.prototype={
 				$("#immediately").show();
 			}
 		});
+		document.getElementById("query").addEventListener("input", function(){
+			imFind($("#query"));
+			if($("#immediately").children().length>0){
+				$("#immediately").show();
+			}
+		}, false); 
 		$("#query").blur(function(){
 			//$("#immediately").hide();
 		});

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

@@ -75,6 +75,7 @@
  <body>
 <div class="modal-backdrop fade in" style="display:none;"></div>
 	<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>
 			<div class="col-xs-12 title"> 
@@ -247,7 +248,9 @@
 			$("#header").hide();
 			$("#"+node.attr("data-id")).show();
 			if (node.attr("data-id")=="c_relation" && $("svg").length==0){
-				initRelation();
+				{{if session "identWay"}}
+					initRelation();
+				{{end}}
 			}
 		}else{
 			$("#header").show();

+ 7 - 0
core/src/web/templates/member/incmobile/index.html

@@ -72,6 +72,7 @@ if(typeof(signature) != "undefined" && signature != null && signature.length ==
 			    line-height: 30px;
 			    color: #000;
 			    text-align: center;
+				overflow: hidden;
 		}
 	</style>
 	</head>
@@ -174,6 +175,12 @@ $(function(){
 				$("#immediately").show();
 			}
 		});
+		 document.getElementById("query").addEventListener("input", function(){
+			imFind($("#query"));
+			if($("#immediately").children().length>0){
+				$("#immediately").show();
+			}
+		}, false);  
 });
 </script>
 

+ 6 - 14
core/src/web/templates/member/incmobile/relation.html

@@ -4,23 +4,15 @@
 </div>
 		<div class="entrelation" id="entrelation">
 			<div id="entrelation-infovis"></div>
-			<div id="entrelation-limit" class="hide entrelation-limit">
-				<div id="entrelation-nologin" class="hide text-center">
-					<img src="{{Msg "seo" "cdn"}}/images/findnull.png" class="b-findnull">
-					<h5>扫码登录认证后,即可查看企业股东信息,投资关系,公司关系脉络图等内容</h5>
-					<button class="btn btn-primary" onclick="loginModalShow();">扫码登录</button>
-				</div>
-				<div id="entrelation-noauthe" class="hide text-center">
-					<img src="{{Msg "seo" "cdn"}}/images/findnull.png" class="b-findnull">
-					<h5>认证后即可查看企业股东信息,投资关系,公司关系脉络图等内容</h5>
-					<a href="/member/accountset/index" class="btn btn-primary">认证</a>
-				</div>
-				<div class="dashed padding-0"></div>
-				<img src="{{Msg "seo" "cdn"}}/images/entcommunity/relation.png">
+			{{if session "identWay"}}
+			
+			{{else}}
+			<div id="entrelation-limit" class="entrelation-limit">
+					<img src="/images/mobile/unauth.png" width=100% style="margin-top:20px;" />
 			</div>
+			{{end}}
 			<div id="entrelation-findnull" class="ent-findnull hide">
 				<img src="{{Msg "seo" "cdn"}}/images/findnull.png" class="b-findnull">
 				<h4>抱歉,未找到相关数据!</h4>
 			</div>
 		</div>
-