| | |
| | | <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"> |
| | |
| | | } 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: { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | // getTargetArea() { |
| | | // return this.$refs.targetArea; |
| | | // }, |
| | | getMsgInfo(param) { |
| | | this.msgInfo = param; |
| | | this.showReplyMsgInfo = true; |
| | |
| | | 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 |
| | | } |
| | | } |
| | |
| | | "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, |