|
...
|
...
|
@@ -9,6 +9,7 @@ const _u = { |
|
|
|
}
|
|
|
|
let dur=['morning','noon','night','midnight']
|
|
|
|
Page({
|
|
|
|
paddingBottom:0,
|
|
|
|
user: _u,
|
|
|
|
/**
|
|
|
|
* 页面的初始数据
|
|
...
|
...
|
@@ -206,4 +207,21 @@ Page({ |
|
|
|
cardEvent(e){
|
|
|
|
this.editorReserve()
|
|
|
|
},
|
|
|
|
keyboardheightchange(e){
|
|
|
|
console.log(e);
|
|
|
|
this.setData({
|
|
|
|
paddingBottom:e.detail.height?(parseInt(e.detail.height)+100):0
|
|
|
|
})
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.pageScrollToBottom()
|
|
|
|
},0)
|
|
|
|
},
|
|
|
|
pageScrollToBottom: function () {
|
|
|
|
wx.createSelectorQuery().select('.pages').boundingClientRect(function (rect) {
|
|
|
|
// 使页面滚动到底部
|
|
|
|
wx.pageScrollTo({
|
|
|
|
scrollTop: rect.bottom
|
|
|
|
})
|
|
|
|
}).exec()
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|