Commit b77cb32760de2e315d6b8a757f21932c0d8b5e97

Authored by vking
1 parent 3148453c

周到安排

... ... @@ -35,6 +35,9 @@ Page({
this.arrangeDesk(desk)
})
},
onUnload(){
PubSub.off('arrangeDesk')
},
onShow: function () {
this.notice = this.selectComponent('#notice');
gl.getHasEditorFlag().then(() => {
... ...
... ... @@ -37,7 +37,9 @@ Page({
});
})
},
onUnload(){
PubSub.off('fulshReseveList')
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ... @@ -125,9 +127,11 @@ Page({
pageScrollToTop: function () {
wx.createSelectorQuery().select('.pages').boundingClientRect(function (rect) {
// 使页面滚动到底部
wx.pageScrollTo({
scrollTop: rect.top
})
if(rect.top){
wx.pageScrollTo({
scrollTop: rect.top
})
}
}).exec()
},
})
\ No newline at end of file
... ...