Browse Source

【物业服务-设置为返回时刷新project详情】 -刘绍文 -2020/05/15

feature/v2.0
liushaowen 5 years ago
parent
commit
de0eddc6d5
  1. 11
      epdc-resident-mp-yushan/pages/property/property.js

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

@ -60,10 +60,7 @@ Page({
}) })
this.initTab(); this.initTab();
}else{ }else{
this.setData({ this.initPropertyInfo(this.data.tabList[this.data.currentTabIndex].id);
refreshFlag:true,
isLoading:false
})
} }
}, },
initTab(){ initTab(){
@ -93,7 +90,8 @@ Page({
api.getPropertyProjectDetail(id).then(res=>{ api.getPropertyProjectDetail(id).then(res=>{
this.setData({ this.setData({
projectInfo:res.data, projectInfo:res.data,
isLoading:false isLoading:false,
refreshFlag:false
}) })
wx.hideLoading({ wx.hideLoading({
complete: (res) => {}, complete: (res) => {},
@ -101,7 +99,8 @@ Page({
}).catch(err=>{ }).catch(err=>{
this.setData({ this.setData({
projectInfo:{}, projectInfo:{},
isLoading:false isLoading:false,
refreshFlag:false
}) })
wx.hideLoading({ wx.hideLoading({
complete: (res) => {}, complete: (res) => {},

Loading…
Cancel
Save