创建完成后刷新首页列表
This commit is contained in:
parent
6cc320f389
commit
d6526fde86
@ -633,7 +633,7 @@ Page({
|
||||
successHint: '项目创建流程圆满完成,系统正在生成配套材料,请您耐心等候。'
|
||||
})
|
||||
setTimeout(() => {
|
||||
wx.navigateBack()
|
||||
_self.refreshIndexPage()
|
||||
}, 1500);
|
||||
}, err => {
|
||||
wx.hideLoading()
|
||||
@ -672,5 +672,16 @@ Page({
|
||||
showCommendProject: false,
|
||||
isShowContact: false
|
||||
})
|
||||
},
|
||||
//刷新首页
|
||||
refreshIndexPage() {
|
||||
let pages = getCurrentPages();
|
||||
let beforePage = pages[pages.length - 3];
|
||||
if (beforePage.data.indexPage && beforePage.data.indexPage) {
|
||||
beforePage.setData({
|
||||
needRefresh: true
|
||||
})
|
||||
}
|
||||
wx.navigateBack()
|
||||
}
|
||||
})
|
@ -18,6 +18,8 @@ const screenWidth = screenInfo.screenWidth
|
||||
const windowHeight = screenInfo.windowHeight - navBarHeight - statusBarHeight; //可用内容高度
|
||||
Page({
|
||||
data: {
|
||||
indexPage: true,
|
||||
needRefresh: false, //是否需要刷新
|
||||
imgAssets: app.globalData.imgAssetsUrl,
|
||||
localAssets: app.globalData.localAssets,
|
||||
appTitle: app.globalData.appTitle,
|
||||
@ -180,6 +182,12 @@ Page({
|
||||
tabList
|
||||
});
|
||||
this.getMsgNotice()
|
||||
if (this.data.needRefresh) {
|
||||
this.setData({
|
||||
needRefresh: false
|
||||
})
|
||||
this.doRefreshList()
|
||||
}
|
||||
},
|
||||
//计算剩余高度
|
||||
countViewHeight() {
|
||||
|
Loading…
Reference in New Issue
Block a user