This commit is contained in:
2023-11-14 13:59:24 +08:00
parent d5cfda1b1d
commit f3611db63b

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="content"> <view class="content" :style="{'padding-bottom': bottomVal }">
<!-- <view class="title"> <!-- <view class="title">
<image src="../../static/huijiantou.png" @click="back"></image> <image src="../../static/huijiantou.png" @click="back"></image>
{{currentItem.senderName}} {{currentItem.senderName}}
@ -7,7 +7,7 @@
<!-- 聊天渲染列表 --> <!-- 聊天渲染列表 -->
<!-- scroll-y scroll-into-view="placeholder" scroll-top="500" scroll-with-animation --> <!-- scroll-y scroll-into-view="placeholder" scroll-top="500" scroll-with-animation -->
<u-navbar :is-back="false" :background="background" class="u-navbar"> <u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/fanhui.png" mode="" @tap="goprevious"></image> <image src="@/static/pagesB/fanhui.png" mode="" @tap="goprevious"></image>
<view class="navbartitle" @tap="goprevious"> <view class="navbartitle" @tap="goprevious">
{{title}} {{title}}
</view> </view>
@ -42,8 +42,9 @@
<!-- <image class="icon_img" :src="require('@/static/ico/often.png')" @tap="oftenx"></image> --> <!-- <image class="icon_img" :src="require('@/static/ico/often.png')" @tap="oftenx"></image> -->
<!-- 输入框 --> <!-- 输入框 -->
<view class="input-box-flex-grow"> <input type="text" class="contenxxt" id="input" <view class="input-box-flex-grow"> <input type="text" class="contenxxt" id="input"
v-model="formData.content" :hold-keyboard="true" :confirm-type="'send'" :adjust-position="false" v-model="formData.content" :hold-keyboard="true" :confirm-type="'send'" :confirm-hold="true"
placeholder-style="color:#DDDDDD;" :cursor-spacing="10" @confirm='sendconfirm' /> </view> placeholder-style="color:#DDDDDD;" :cursor-spacing="10" @confirm='sendconfirm'
@focus="inputBindFocus" @blur="inputBindBlur" /> </view>
<!-- 选择表情包 --> <!-- 选择表情包 -->
<!-- <image class=" icon_btn_add" :src="require('@/static/ico/emoji.png')" @tap="exprec"></image> --> <!-- <image class=" icon_btn_add" :src="require('@/static/ico/emoji.png')" @tap="exprec"></image> -->
<!-- 发送消息按钮 --> <!-- 发送消息按钮 -->
@ -156,6 +157,7 @@
], ],
scrollTop: 999999, scrollTop: 999999,
inputboxtop: undefined, inputboxtop: undefined,
bottomVal: 0,
}; };
}, },
onReady() { // onReady() { //
@ -179,6 +181,15 @@
// }) // })
}, },
methods: { methods: {
inputBindFocus(e) {
this.bottomVal = e.detail.height + 'px'
// input bottom
// !!! px !!! px
},
inputBindBlur() {
this.bottomVal = 0
// input input bottom 0
},
getPageHistory() { getPageHistory() {
let obj = { let obj = {
consultationId: this.currentItem.id, consultationId: this.currentItem.id,