|
@@ -3,8 +3,9 @@
|
|
|
<view class="submit">
|
|
|
<view class="submit-chat">
|
|
|
<!-- 文本框 -->
|
|
|
- <textarea disable-default-padding="true" auto-height="true" fixed="true" class="btn" @input="inputs"
|
|
|
- @focus="focus" v-model="msg"></textarea>
|
|
|
+ <textarea cursor-spacing='20' class="chat-send btn" :show-confirm-bar="false"
|
|
|
+ disable-default-padding="true" auto-height="true" @input="inputs" @focus="focus"
|
|
|
+ v-model="msg"></textarea>
|
|
|
<view class="bt-img" @tap="more">
|
|
|
<text class="iconfont icon-gengduoneirong"></text>
|
|
|
</view>
|
|
@@ -44,10 +45,6 @@
|
|
|
// 0为表情和文字
|
|
|
this.send(this.msg, '0')
|
|
|
}
|
|
|
- // if (chat.length > 1) {
|
|
|
- // // 0为表情和文字
|
|
|
- // this.send(this.msg, '0')
|
|
|
- // }
|
|
|
},
|
|
|
// 输入框聚焦
|
|
|
focus() {
|
|
@@ -121,17 +118,23 @@
|
|
|
}
|
|
|
|
|
|
.btn {
|
|
|
+ flex: auto;
|
|
|
background-color: #fff;
|
|
|
border-radius: 10rpx;
|
|
|
padding: 20rpx;
|
|
|
+ max-height: 160rpx;
|
|
|
margin: 0 10rpx;
|
|
|
}
|
|
|
|
|
|
+ .chat-send {
|
|
|
+ line-height: 44rpx;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.more {
|
|
|
width: 100%;
|
|
|
- height: 436rpx;
|
|
|
+ height: 450rpx;
|
|
|
background: rgba(236, 237, 238, 1);
|
|
|
box-shadow: 0px 11rpx 0px 0px rgba(0, 0, 0, 0.1);
|
|
|
bottom: env(safe-area-inset-bottom);
|