inleft
2022-02-25 2f9d3c2392db9094af5ac6ea50b017140421f059
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<template>
    <div>
        <div class="visitInfo">
            <a-form-model ref="myForm" layout="inline" :model="form" :label-col="labelCol" :wrapper-col="wrapperCol">
                <a-form-model-item label="昵称">
                    <a-input v-model="form.secret" placeholder="需填..">
                    </a-input>
                </a-form-model-item>
                <a-form-model-item label="邮箱">
                    <a-input v-model="form.secret" placeholder="..仅后台可见">
                    </a-input>
                </a-form-model-item>
                <a-form-model-item label="主页">
                    <a-input v-model="form.secret" placeholder="http:// or https://">
                    </a-input>
                </a-form-model-item>
 
            </a-form-model>
 
        </div>
        <div class="replyMsgInfo" v-if="showReplyMsgInfo">
            <div>{{msgInfo.useName}}</div>
            <div>{{msgInfo.userComment}}</div>
        </div>
        <a-comment>
            <div slot="content">
                <a-form-item>
                    <a-textarea :rows="4" :value="value" />
                </a-form-item>
                <div>
                    <a-button html-type="submit" type="primary" v-if="!showReplyMsgInfo">
                        高低整两句
                    </a-button>
                    <a-button html-type="submit" type="primary" v-else>
                        回复Ta
                    </a-button>
                </div>
 
                <div>
                    <a-checkbox style="margin-left: 8px;" v-if="!showReplyMsgInfo">
                        悄悄回复<span class="myTip">(仅登录后可查看)</span>
                    </a-checkbox>
                    <a-checkbox>
                        接收邮件回复通知
                    </a-checkbox>
                </div>
            </div>
        </a-comment>
    </div>
</template>
 
<script>
    export default {
        methods: {
            getMsgInfo(param) {
                this.msgInfo = param;
                this.showReplyMsgInfo = true;
            }
        },
        data() {
            return {
                msgInfo: {
                    useName: "",
                    userComment: "",
                },
                showReplyMsgInfo: false,
                labelCol: {
                    span: 6,
                    offset: 0,
                },
                wrapperCol: {
                    span: 15,
                    offset: 0
                },
                form: {
                    secret: ""
                },
                value: "",
            }
        }
    }
</script>
 
<style lang="less">
    .replyMsgInfo {
        padding: 10px 20px 0px;
    }
</style>