This commit is contained in:
luyuan 2020-11-12 15:32:33 +08:00
parent 5a7f0527b0
commit ad9707ddbe
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 17 additions and 4 deletions

View File

@ -42,6 +42,7 @@
:date="i.created_at"
:memberid="i.memberid"
:replyid="i.commentid"
:info="i"
@replying="replytow"
@reload="refresh"
></ReviewItemtwo>

View File

@ -5,8 +5,7 @@
<div class="name myname" v-if="parseInt(memberid)==myid">{{username}}</div>
<div class="name" v-else>{{username}}</div>
</div>
<div class="cont">
{{content}}
<div class="cont" v-html="inhtml()">
</div>
<div class="bottom">
<div class="date">{{date}}</div>
@ -72,7 +71,9 @@
margin-left: 67px;
font-size: 11px;
line-height: 1.2;
::v-deep(span){
color: #2581D0;
}
}
.bottom{
display: flex;
@ -109,6 +110,9 @@ import { defineComponent, ref } from 'vue';
export default defineComponent({
props: {
info:{
type: Object
},
photo: {
type: String
},
@ -150,11 +154,19 @@ export default defineComponent({
console.log(res)
}
function inhtml(){
if(prop.info){
return prop.content + (prop.info.replyid != 0 ? '//<span>' + prop.info.with + '</span>' + prop.info.replyContent : '')
}
// {{content}}{{info.replyid != 0 ? '//' + info.with + info.replyContent : ''}}
}
return {
reply,
myid,
del,
lan
lan,
inhtml
}
}
})