guhongwei 4 years ago
parent
commit
83e634063e
2 changed files with 6 additions and 6 deletions
  1. 1 1
      src/layout/market/context.vue
  2. 5 5
      src/layout/market/parts/chat.vue

+ 1 - 1
src/layout/market/context.vue

@@ -472,7 +472,7 @@ p {
   padding: 15px 20px;
   color: #606266;
   font-size: 14px;
-  height: 660px;
+  height: 460px;
   word-break: break-all;
 }
 .newpa {

+ 5 - 5
src/layout/market/parts/chat.vue

@@ -17,9 +17,9 @@
           </template>
         </template>
       </el-col>
-      <el-col :span="24" style="text-align:right">
-        <el-button type="primary" size="mini" @click="sendMessage" style="margin-bottom:10px">发送</el-button>
-        <wang-editor v-model="content" ref="editor"></wang-editor>
+      <el-col :span="24" style="text-align:center">
+        <el-input v-model="content" type="textarea"></el-input>
+        <el-button type="primary" size="mini" @click="sendMessage" style="margin-top:10px">发送</el-button>
       </el-col>
     </el-row>
   </div>
@@ -34,7 +34,7 @@ export default {
   props: {
     room: { type: Object },
   },
-  components: { wangEditor },
+  components: {},
   data: () => {
     return {
       content: '',
@@ -62,7 +62,7 @@ export default {
         obj.receiver_id = fres === 'buyer_id' ? this.room['seller_id'] : this.room['buyer_id'];
         obj.receiver_name = fres === 'buyer_id' ? this.room['seller_name'] : this.room['buyer_name'];
         let res = await this.create(obj);
-        this.$refs.editor.setContent();
+        // this.$refs.editor.setContent();
         this.$set(this, `content`, '');
         this.$forceUpdate();
         if (this.$checkRes(res, null, res.errmsg || '发言失败')) {