|
@@ -3,7 +3,7 @@
|
|
|
<view class="search">
|
|
|
<u-search placeholder="输入关键字查询工会" v-model="keyword" :action-style="actionStyle" @custom="searchQrg" @search="searchQrg"></u-search>
|
|
|
</view>
|
|
|
- <view class="searchList">
|
|
|
+ <view class="searchList" v-if="orgResult.length > 0">
|
|
|
<list>
|
|
|
<cell v-for="(item, index) in orgResult" :key="item.id">
|
|
|
<view class="searchList-item">
|
|
@@ -13,6 +13,10 @@
|
|
|
</list>
|
|
|
<u-divider color="#B6BDC3" style="margin-top:20px;">已经到底了</u-divider>
|
|
|
</view>
|
|
|
+ <view class="jpDefault" v-else>
|
|
|
+ <u-image width="179px" height="126px" src="/static/img/default1.png"></u-image>
|
|
|
+ <p>没有匹配的搜索结果</p>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -74,14 +78,8 @@
|
|
|
orgName: this.keyword
|
|
|
}).then((response) => {
|
|
|
var jsonData = response.data.data;
|
|
|
- if(jsonData.length == 0) {
|
|
|
- uni.redirectTo({
|
|
|
- url: '/pages/login/searchNone'
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.orgResult = jsonData;
|
|
|
- uni.hideLoading()
|
|
|
- }
|
|
|
+ this.orgResult = jsonData;
|
|
|
+ uni.hideLoading();
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
uni.showToast({
|
|
@@ -109,4 +107,16 @@
|
|
|
padding: 15px 0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .jpDefault{
|
|
|
+ padding-top:150px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ p{
|
|
|
+ color: #A69F9F;
|
|
|
+ font-size: 16px;
|
|
|
+ margin-top: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|