...
|
...
|
@@ -82,7 +82,7 @@ |
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 底部输入栏 -->
|
|
|
<view class="input-box" :class="popupLayerClass" @touchmove.stop.prevent="discard">
|
|
|
<view class="input-box" :style="{bottom: keyboardHeight+'rpx'}" :class="popupLayerClass" @touchmove.stop.prevent="discard">
|
|
|
<!-- H5下不能录音,输入栏布局改动一下 -->
|
|
|
<!-- #ifndef H5 -->
|
|
|
<!-- <view class="voice">
|
...
|
...
|
@@ -101,9 +101,9 @@ |
|
|
<view class="box">
|
|
|
<textarea auto-height="true" v-model="textMsg" @focus="textareaFocus" />
|
|
|
</view>
|
|
|
<!-- <view class="em" @tap="chooseEmoji">
|
|
|
<view class="em" @tap="chooseEmoji">
|
|
|
<view class="icon biaoqing"></view>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- #ifndef H5 -->
|
...
|
...
|
@@ -152,6 +152,7 @@ |
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
keyboardHeight:-2,
|
|
|
//TIM变量
|
|
|
conversationActive:null,
|
|
|
toUserId:'',
|
...
|
...
|
@@ -228,6 +229,15 @@ |
|
|
},
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
//监听键盘高度变化
|
|
|
uni.onKeyboardHeightChange(res => {
|
|
|
console.log('键盘高度变化了',res.height)
|
|
|
if(res.height == 0){
|
|
|
this.keyboardHeight = -2
|
|
|
}else{
|
|
|
this.keyboardHeight = 20
|
|
|
}
|
|
|
})
|
|
|
if(!this.isLogin){
|
|
|
this.loginTim()
|
|
|
}else{
|
...
|
...
|
|