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

View File

@ -1,5 +1,5 @@
<template>
<view class="content">
<view class="content" :style="{'padding-bottom': bottomVal }">
<!-- <view class="title">
<image src="../../static/huijiantou.png" @click="back"></image>
{{currentItem.senderName}}
@ -7,7 +7,7 @@
<!-- 聊天渲染列表 -->
<!-- scroll-y scroll-into-view="placeholder" scroll-top="500" scroll-with-animation -->
<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">
{{title}}
</view>
@ -42,8 +42,9 @@
<!-- <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"
v-model="formData.content" :hold-keyboard="true" :confirm-type="'send'" :adjust-position="false"
placeholder-style="color:#DDDDDD;" :cursor-spacing="10" @confirm='sendconfirm' /> </view>
v-model="formData.content" :hold-keyboard="true" :confirm-type="'send'" :confirm-hold="true"
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> -->
<!-- 发送消息按钮 -->
@ -156,6 +157,7 @@
],
scrollTop: 999999,
inputboxtop: undefined,
bottomVal: 0,
};
},
onReady() { //
@ -179,6 +181,15 @@
// })
},
methods: {
inputBindFocus(e) {
this.bottomVal = e.detail.height + 'px'
// input bottom
// !!! px !!! px
},
inputBindBlur() {
this.bottomVal = 0
// input input bottom 0
},
getPageHistory() {
let obj = {
consultationId: this.currentItem.id,