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