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