|
@@ -17,7 +17,7 @@ Page({
|
|
|
comment: ''
|
|
|
},
|
|
|
booLock: false,
|
|
|
- inputPosition: 'fixed'
|
|
|
+ inputBoxStyle: 'bottom:0;'
|
|
|
},
|
|
|
...pages.methods,
|
|
|
/**
|
|
@@ -96,10 +96,13 @@ Page({
|
|
|
imageUrl: video_cover_url
|
|
|
}
|
|
|
},
|
|
|
- handleFocus() {
|
|
|
- const sys = wx.getSystemInfoSync()
|
|
|
+ handleFocus(event) {
|
|
|
+ const height = event.detail.height
|
|
|
+ this.setData({ inputBoxStyle: `bottom:${height}px;` })
|
|
|
+ },
|
|
|
+ handleBlur() {
|
|
|
+ this.setData({ inputBoxStyle: `bottom:0;` })
|
|
|
},
|
|
|
- handleBlur() {},
|
|
|
setComment(event) {
|
|
|
const { value } = event.detail
|
|
|
|