Browse Source

【物业服务-缺省时显示bug修复】 -刘绍文 -2020/05/15

feature/v2.0
liushaowen 5 years ago
parent
commit
7dec22bd82
  1. 16
      epdc-resident-mp-yushan/pages/property/property.js
  2. 6
      epdc-resident-mp-yushan/pages/property/property.wxml

16
epdc-resident-mp-yushan/pages/property/property.js

@ -24,7 +24,8 @@ Page({
if(this.data.refreshFlag){
this.setData({
tabList:[],
projectInfo:{}
projectInfo:{},
isLoading:true
})
}
},
@ -54,10 +55,14 @@ Page({
*/
onShow: function () {
if(this.data.refreshFlag){
this.setData({
isLoading:true
})
this.initTab();
}else{
this.setData({
refreshFlag:true
refreshFlag:true,
isLoading:false
})
}
},
@ -69,10 +74,15 @@ Page({
});
if(this.data.tabList.length>0){
this.initPropertyInfo(this.data.tabList[0].id);
}else{
this.setData({
isLoading:false
})
}
}).catch(err=>{
this.setData({
tabList:[]
tabList:[],
isLoading:false
})
});
},

6
epdc-resident-mp-yushan/pages/property/property.wxml

@ -108,9 +108,9 @@
<!--加载更多提示-->
<!-- <load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more> -->
</view>
<view wx:else class="nothing-to-show">
<image src="../../images/property/nothing.png" class="nothing-img"></image>
<view style="color: #BCBCBC;">管理员暂未添加物业项目信息~</view>
<view wx:if="{{tabList.length == 0 && isLoading == false}}" class="nothing-to-show">
<image src="../../images/property/nothing.png" class="nothing-img"></image>
<view style="color: #BCBCBC;">管理员暂未添加物业项目信息~</view>
</view>
<complete-info-dialog completeInfoDialogVisible="{{completeInfoDialogVisible}}"></complete-info-dialog>

Loading…
Cancel
Save