Merge pull request '回复ok' (#127) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/127
This commit is contained in:
luyuan 2020-11-12 15:17:55 +08:00
commit 975c4f2ab6
3 changed files with 20 additions and 8 deletions

View File

@ -42,7 +42,7 @@
:date="i.created_at"
:memberid="i.memberid"
:replyid="i.commentid"
@replying="reply"
@replying="replytow"
@reload="refresh"
></ReviewItemtwo>
</div>
@ -207,7 +207,12 @@ export default defineComponent({
function reply(e?: string){
console.log(155)
context.emit("replying",{name: e,replyid: prop.replyid,score: prop.score})
context.emit("replying",{name: e,cid: prop.replyid,score: prop.score})
}
function replytow(e: any){
console.log(1556)
e.cid = prop.replyid
context.emit("replying", e)
}
async function findall(e: number){
console.log("all")
@ -252,7 +257,8 @@ export default defineComponent({
lan,
del,
iszk,
reload
reload,
replytow
}
}
})

View File

@ -11,12 +11,15 @@
<div class="bottom">
<div class="date">{{date}}</div>
<div class="operate">
<!-- <div class="reply" @click="reply(username)">
回复
</div> -->
<div class="del" @click="del(replyid)">
{{lan.$t('shanchu')}}
</div>
<div class="reply" @click="reply(username)">
{{lan.$t('huifu')}}
</div>
</div>
</div>
@ -91,7 +94,8 @@
}
.del{
color:#D12C2D!important;
margin-left: 28px;
font-size: 10px;
margin-right: 28px;
}
}
}

View File

@ -144,11 +144,13 @@ export default defineComponent({
teacherid?: number;
score?: number;
content?: string;
replyid?: number;
}
function send(){
const data = ref<SendData>({})
data.value.type=3;
data.value.cid=uinfo.value.replyid
data.value.cid=uinfo.value.cid
data.value.replyid = uinfo.value.replyid
// data.value.teacherid=uinfo.value.memberid
// data.value.score=uinfo.value.score
data.value.content=commentval.value