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"
|
:date="i.created_at"
|
||||||
:memberid="i.memberid"
|
:memberid="i.memberid"
|
||||||
:replyid="i.commentid"
|
:replyid="i.commentid"
|
||||||
@replying="reply"
|
@replying="replytow"
|
||||||
@reload="refresh"
|
@reload="refresh"
|
||||||
></ReviewItemtwo>
|
></ReviewItemtwo>
|
||||||
</div>
|
</div>
|
||||||
@ -207,7 +207,12 @@ export default defineComponent({
|
|||||||
|
|
||||||
function reply(e?: string){
|
function reply(e?: string){
|
||||||
console.log(155)
|
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){
|
async function findall(e: number){
|
||||||
console.log("all")
|
console.log("all")
|
||||||
@ -252,7 +257,8 @@ export default defineComponent({
|
|||||||
lan,
|
lan,
|
||||||
del,
|
del,
|
||||||
iszk,
|
iszk,
|
||||||
reload
|
reload,
|
||||||
|
replytow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -11,12 +11,15 @@
|
|||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="date">{{date}}</div>
|
<div class="date">{{date}}</div>
|
||||||
<div class="operate">
|
<div class="operate">
|
||||||
<!-- <div class="reply" @click="reply(username)">
|
|
||||||
回复
|
|
||||||
</div> -->
|
|
||||||
<div class="del" @click="del(replyid)">
|
<div class="del" @click="del(replyid)">
|
||||||
{{lan.$t('shanchu')}}
|
{{lan.$t('shanchu')}}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="reply" @click="reply(username)">
|
||||||
|
{{lan.$t('huifu')}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -91,7 +94,8 @@
|
|||||||
}
|
}
|
||||||
.del{
|
.del{
|
||||||
color:#D12C2D!important;
|
color:#D12C2D!important;
|
||||||
margin-left: 28px;
|
font-size: 10px;
|
||||||
|
margin-right: 28px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -144,11 +144,13 @@ export default defineComponent({
|
|||||||
teacherid?: number;
|
teacherid?: number;
|
||||||
score?: number;
|
score?: number;
|
||||||
content?: string;
|
content?: string;
|
||||||
|
replyid?: number;
|
||||||
}
|
}
|
||||||
function send(){
|
function send(){
|
||||||
const data = ref<SendData>({})
|
const data = ref<SendData>({})
|
||||||
data.value.type=3;
|
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.teacherid=uinfo.value.memberid
|
||||||
// data.value.score=uinfo.value.score
|
// data.value.score=uinfo.value.score
|
||||||
data.value.content=commentval.value
|
data.value.content=commentval.value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user