1.微信的输入框
2.app正常情况下的input样式(定位)
未激活的input
激活的input
3.解决第一个问题(页面顶起)
设置属性
:adjust-position="false" ,但是键盘被挡住了,接下来解决input高度
<input style=""
type="text" :focus="CommentShowFcous" @blur="ShiJiao" @focus="JuJiao"
v-model="CommentValue" :adjust-position="false" />
4.解决第二个问题,输入框高度(被挡住)
首先设置@keyboardheightchange="InputHeight" 监听函数,这个函数可以获取软键盘的高度,
获取到后,我们在底部添加一个view,用来动态,在底部添加一个占位高度
<input style="" @keyboardheightchange="InputHeight"
type="text" :focus="CommentShowFcous" @blur="ShiJiao" @focus="JuJiao"
v-model="CommentValue" :adjust-position="false" />
在键盘的下面写一个动态高度撑大
<view class="" style="background-color: #f2f2f2" :style="{'height':HEIGHT+'px'}"></view>