wangkaiyue 5 жил өмнө
parent
commit
2c07421b1a

+ 11 - 0
matchSearch/src/page/css/index.css

@@ -56,3 +56,14 @@ body,html{
 .btns .cancel{
 	background-color: #9e9e9e6e;
 }
+
+.empty{
+	width: 200px;
+    margin: 0 auto;
+    line-height: 50px;
+    height: 50px;
+    background-color: #fff;
+    text-align: center;
+    font-size: 18px;
+    border-radius: 6px;
+}

+ 3 - 0
matchSearch/src/page/index.html

@@ -84,6 +84,9 @@
 				</table>
 			</div>
 
+      <div class="empty" style="display:none">
+        没有匹配上此条信息
+      </div>
 
 			<div id="login" class="panel panel-default" style="display:none">
 				<button type="button" class="close cancel" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>

+ 5 - 0
matchSearch/src/page/js/index.js

@@ -101,6 +101,11 @@ function doSearch() {
 				$("#noMatch").show();
 				$("#noMatch tbody").html(notMatchHtml);
 			}
+			if(r.match.length == 0&&r.notMatch.length==0){
+				$(".empty").show();
+			}else{
+				$(".empty").hide();
+			}
 		} else {
 			tipMsg(r.err)
 		}