Browse Source

人房提示信息

lisu
mk 1 year ago
parent
commit
bb30ee02b7
  1. 8
      pages/resiAndHouse/resiAndHouse.js
  2. 7
      pages/resiAndHouse/resiAndHouse.wxml
  3. 8
      pages/resiAndHouse/resiAndHouse.wxss

8
pages/resiAndHouse/resiAndHouse.js

@ -504,6 +504,11 @@ Page({
} }
}, },
toAddResi(){
wx.navigateTo({
url: `/subpages/addResi/pages/addResi/addResi`,
})
},
getTableFwData: async function () { getTableFwData: async function () {
this.setData({ this.setData({
loadFwMoreVisible: true, loadFwMoreVisible: true,
@ -526,6 +531,7 @@ Page({
fwTypes: arr fwTypes: arr
}) })
}) })
await houseSearch({ ...this.data.params1, searchKey: this.data.keyWord }).then(res => { await houseSearch({ ...this.data.params1, searchKey: this.data.keyWord }).then(res => {
const { code, data } = res; const { code, data } = res;
if (code == 0) { if (code == 0) {
@ -535,7 +541,7 @@ Page({
}) })
if (this.data.tableFwData.length == 0) { if (this.data.tableFwData.length == 0) {
this.setData({ this.setData({
loadFwMoreVisible: false, loadFwMoreVisible: true,
loadFwMoreType: 'none', loadFwMoreType: 'none',
nodatafw: true nodatafw: true
}) })

7
pages/resiAndHouse/resiAndHouse.wxml

@ -84,11 +84,14 @@
<text lines="1" class="text_31">{{item.agencyName || ''}} {{item.homeName || ''}}</text> <text lines="1" class="text_31">{{item.agencyName || ''}} {{item.homeName || ''}}</text>
</view> </view>
</view> </view>
<load-more loadVisible="{{loadMoreVisible}}" loadType="{{loadMoreType}}"></load-more> <!-- <load-more loadVisible="{{loadMoreVisible}}" loadType="{{loadMoreType}}"></load-more> -->
<no-data isShow="{{nodata}}" wx:if="{{nodata}}"></no-data> <!-- <no-data isShow="{{nodata}}" wx:if="{{nodata}}"></no-data> -->
<view class="loadVisible">{{loadMoreType == 'more'?'加载中...':'如果找不到该居民的信息,您也可以先'}}<text wx:if="{{loadMoreType == 'none'}}" style="color: #3A80E7;" bind:tap="toAddResi">新增居民</text></view>
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<view class="group_2" wx:if="{{selectVale === 'house'}}"> <view class="group_2" wx:if="{{selectVale === 'house'}}">
<view class="section_2"> <view class="section_2">
<view class="box_16"> <view class="box_16">

8
pages/resiAndHouse/resiAndHouse.wxss

@ -1395,7 +1395,13 @@ page {
.scroll_fw { .scroll_fw {
height: calc(100vh - 750rpx); height: calc(100vh - 750rpx);
} }
.loadVisible{
color: #c1c1c1;
font-size: 24rpx;
width: 100%;
text-align: center;
margin-top: 20rpx;
}
.form_item_fw { .form_item_fw {
width: 100%; width: 100%;
display: flex; display: flex;

Loading…
Cancel
Save