修复
This commit is contained in:
parent
5a7f0527b0
commit
ad9707ddbe
@ -42,6 +42,7 @@
|
||||
:date="i.created_at"
|
||||
:memberid="i.memberid"
|
||||
:replyid="i.commentid"
|
||||
:info="i"
|
||||
@replying="replytow"
|
||||
@reload="refresh"
|
||||
></ReviewItemtwo>
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user