diff --git a/pages/mine/im/index.vue b/pages/mine/im/index.vue index cf3cb12..af920ac 100644 --- a/pages/mine/im/index.vue +++ b/pages/mine/im/index.vue @@ -133,7 +133,7 @@ + :style="{ position:'fixed' , bottom:(inputHeight+66)+'px' , width: '100%' }"> @@ -177,27 +177,16 @@ - + - 发送 - - - - - 问题反馈 - - - - 人工客服 - - @@ -331,6 +320,7 @@ export default { resolve: {}, goodListData: {}, count: 0, //判断socket断开连接请求次数 + inputHeight:0, } }, // watch: { @@ -349,6 +339,14 @@ export default { // } // }, methods: { + eventHandle(){ + this.inputHeight = 0 + }, + inputBindFocus(e){ + if (e.detail.height) { + this.inputHeight = e.detail.height //这个高度就是软键盘的高度 + } + }, sendMessage () { if (this.msg == "") { return 0; @@ -897,6 +895,15 @@ export default { .order-item{ margin: 10rpx 0 } + + +uni-page-head { + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 9999; +}