From bdff6a3c93b891bb03b1259019001926310aa5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Tue, 4 Apr 2023 09:54:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20Im=20=E4=BF=AE=E5=A4=8D=E5=9C=A8?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=B8=AD=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E5=BC=B9=E5=87=BA=E5=AF=BC=E8=87=B4navbar=E4=B8=8A?= =?UTF-8?q?=E7=A7=BB=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/im/index.vue | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) 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; +}