From 271ca6cb0ee2ff0a789bf74d1821e7891a7043bb Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Tue, 30 Aug 2022 21:57:42 +0800
Subject: [PATCH] 自定义表情组件

---
 src/components/mini/box13-reply.vue |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/components/mini/box13-reply.vue b/src/components/mini/box13-reply.vue
index 7809b0b..4f08471 100644
--- a/src/components/mini/box13-reply.vue
+++ b/src/components/mini/box13-reply.vue
@@ -31,9 +31,10 @@
 				<span v-html="parseContent(msgInfo.userComment).replace(/\n/g, '<br>')"></span>
 			</div>
 		</div>
-		<a-comment>
+		<a-comment style="min-height: 320px;">
 			<div slot="content">
-				<MyOwO :content.sync="form.visitorContent" :replyHolder="replyHolder"></MyOwO>
+				<MyTextarea :content.sync="form.visitorContent" :replyHolder="replyHolder"></MyTextarea>
+
 				<div>
 					<a-button html-type="submit" type="primary" @click="send()" v-if="!showReplyMsgInfo"
 						:disabled="isSending || $attrs.isAllowedComment==0">
@@ -66,12 +67,12 @@
 	} from '../../api/blogArticleComment.js'
 	import md5 from 'js-md5';
 
-	import MyOwO from '../common/OwO.vue'
+	import MyTextarea from '../common/MyTextarea.vue'
 	import myConstant from "../../config/myConstant.js"
 
 	export default {
 		components: {
-			MyOwO
+			MyTextarea
 		},
 		props: {
 			parseContent: {
@@ -80,9 +81,6 @@
 			}
 		},
 		methods: {
-			// getTargetArea() {
-			// 	return this.$refs.targetArea;
-			// },
 			getMsgInfo(param) {
 				this.msgInfo = param;
 				this.showReplyMsgInfo = true;
@@ -118,6 +116,13 @@
 				if (this.form.nickName == 'inleft' || this.form.nickName == '笔墨' || this.form.nickName == '阿墨') {
 					if (this.form.authCode == null || this.form.authCode == "") {
 						this.$message.info("此名称在这里使用需要正确的授权码..")
+						return
+					}
+				}
+
+				if (this.form.eMail == 'inleft@qq.com') {
+					if (this.form.authCode == null || this.form.authCode == "") {
+						this.$message.info("此邮箱在这里使用需要正确的授权码..")
 						return
 					}
 				}
@@ -237,7 +242,7 @@
 					"eMail": [{
 						trigger: 'blur',
 						pattern: /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,
-						message: '你这邮箱有问题??'
+						message: '这邮箱格式?没见过呀..'
 					}, {
 						trigger: 'blur',
 						max: 50,

--
Gitblit v1.9.1