zhengkaixin 4 years ago
parent
commit
cfb0e8a89e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/query/index.vue

+ 3 - 3
pages/query/index.vue

@@ -23,7 +23,7 @@
 				<view class="search-record" v-for="item,index in record" :key="index" @click="key=item,submit()">{{item}}</view>
 			 
 			</view>
-			<view class="search-result" v-show="result.length" v-for="item,index in result" :key="index" @click="gotoLine(item)">
+			<view class="search-result" v-show="ing&&result.length" v-for="item,index in result" :key="index" @click="gotoLine(item)">
 				<u-icon name="bus" custom-prefix="custom-icon" size="30" color="#888888"></u-icon>
 				<u-icon name="zhanpai1" v-if="false" custom-prefix="custom-icon" size="30" color="#888888"></u-icon>
 				
@@ -31,8 +31,8 @@
 					<p>{{item.name1}}</p><span>{{key}}</span><p>{{item.name2}}</p>
 				</view>
 			</view>
-			<view v-show="result.length&&result.length==recordsTotal" style="text-align:center;margin-top: 10px;">没有更多记录了</view>
-			<view v-show="result.length&&result.length<recordsTotal" style="text-align:center;margin-top: 10px;">只展示20条数据</view>
+			<view v-show="ing&&result.length&&result.length==recordsTotal" style="text-align:center;margin-top: 10px;">没有更多记录了</view>
+			<view v-show="ing&&result.length&&result.length<recordsTotal" style="text-align:center;margin-top: 10px;">只展示20条数据</view>
 			
 			<view  v-show="ing&&result.length==0" style="text-align:center;margin-top: 80px;" >
 				<img src="static/img/blankpage.png" style="width: 50%;" alt="" >