|
@@ -278,12 +278,20 @@
|
|
|
|
|
|
|
|
<div class="row center allAlignment chattingBox">
|
|
<div class="row center allAlignment chattingBox">
|
|
|
<div style="height:44px;width:300px;">
|
|
<div style="height:44px;width:300px;">
|
|
|
- <textarea name="" id="" v-model="information" cols="30" rows="1"
|
|
|
|
|
- placeholder="请输入你的问题:"></textarea>
|
|
|
|
|
|
|
+ <textarea name=""
|
|
|
|
|
+ id=""
|
|
|
|
|
+ v-model="information"
|
|
|
|
|
+ cols="30"
|
|
|
|
|
+ rows="1"
|
|
|
|
|
+ placeholder="请输入你的问题:"
|
|
|
|
|
+ @keyup.enter.exact="listenEnter"
|
|
|
|
|
+ @keyup.ctrl.enter="lineFeed()"
|
|
|
|
|
+ >
|
|
|
|
|
+ </textarea>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<!-- 准备修改 -->
|
|
<!-- 准备修改 -->
|
|
|
- <div @click="sendCol?(!closeByServer||artAndLeave==0||artAndLeave==100?sendInfo():''):''"
|
|
|
|
|
|
|
+ <div @click="sendCol?(!closeByServer||artAndLeave==0||artAndLeave==100?sendInfo():''):''"
|
|
|
class="sendOut pointer"
|
|
class="sendOut pointer"
|
|
|
:class="sendCol?(!closeByServer||artAndLeave==0||artAndLeave==100?'sendCol':'netSendCol'):'netSendCol'">
|
|
:class="sendCol?(!closeByServer||artAndLeave==0||artAndLeave==100?'sendCol':'netSendCol'):'netSendCol'">
|
|
|
<span class="">发送</span>
|
|
<span class="">发送</span>
|
|
@@ -463,6 +471,14 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 回车提交
|
|
|
|
|
+ listenEnter(){
|
|
|
|
|
+ this.sendInfo();
|
|
|
|
|
+ },
|
|
|
|
|
+ // ctrl+center 换行
|
|
|
|
|
+ lineFeed(){
|
|
|
|
|
+ this.information = this.information + '\n'
|
|
|
|
|
+ },
|
|
|
// 切换留言板返回
|
|
// 切换留言板返回
|
|
|
back(){
|
|
back(){
|
|
|
this.$emit('value',100)
|
|
this.$emit('value',100)
|