Merge pull request '回复ok' (#127) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/127
This commit is contained in:
commit
975c4f2ab6
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user