This commit is contained in:
zmr900709
2020-08-20 14:23:21 +08:00
parent 30539ddf64
commit c81ee7e961
10 changed files with 50 additions and 20 deletions

View File

@@ -81,7 +81,7 @@
padding: 39rpx 0 30rpx;
}
.content{
width:630rpx;
width:94%;
padding: 30rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;

View File

@@ -1,5 +1,5 @@
<template>
<view>
<view id="viewes" :style="{height : height + 'px'}">
<!-- 公告咨询 -->
<notice :list="list"></notice>
</view>
@@ -15,6 +15,13 @@
},
onLoad() {
this.informationList();
var _that = this
uni.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
_that.height = res.windowHeight
}
});
},
methods: {
titletext() {},
@@ -36,7 +43,9 @@
page {
background-color: #ECECEC;
}
#viewes{
background: #ECECEC;
}
.sousuo {
height: 113rpx;
border: 1px #f00 solid;

View File

@@ -59,7 +59,7 @@
<div :class="[audio.visible ? 'record-icon record-open':'record-icon']" @click="switchAudioKeyboard"></div>
<div class="record-input" @longpress="onRecordStart" @touchend="onRecordEnd" v-if="audio.visible" >{{audio.recording ? '松开发送' : '按住录音'}}</div>
<div class="message-input" v-else>
<input type="text" placeholder="发送消息" v-model="content">
<input type="text" placeholder="发送消息" v-model="content" @click="bindtapInput">
</div>
<div class="file-icon img-video" @click="sendImage"></div>
<div class="file-icon" @click="sendVideo"></div>
@@ -84,6 +84,7 @@
return {
//聊天文本框
content: '',
bottom : '',
friend: null,
currentUser: null,
//已经接收到的消息
@@ -154,6 +155,11 @@
this.imService.resetFriendUnReadMessage(this.friend);
},
methods: {
bindtapInput(){
console.log("222")
var _that = this;
_that.bottom = 14
},
initialListeners () {
//传入监听器,收到一条私聊消息总是滚到到页面底部
this.imService.onNewPrivateMessageReceive = (friendId, message)=> {