Merge remote-tracking branch 'origin/master'
# Conflicts: # features/register/src/main/ets/view/PerfectUserDataComp.ets
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BasicConstant, authStore } from '@itcast/basic'
|
||||
import { BasicConstant, authStore,DefaultHintProWindows } from '@itcast/basic'
|
||||
import { commentModel } from '../model/VideoCommentModel'
|
||||
import { CommentChildView } from '../components/CommentChildView'
|
||||
import { router,promptAction } from '@kit.ArkUI';
|
||||
@@ -13,6 +13,31 @@ export struct VideoDetailsComment {
|
||||
@Prop model:commentModel;
|
||||
@Prop videoCommentUuid:string;
|
||||
@State isShowMoreComment:boolean = false;
|
||||
private hintWindowDialog!: CustomDialogController;
|
||||
|
||||
aboutToAppear(): void {
|
||||
this.hintPopWindowDialog();
|
||||
}
|
||||
|
||||
private hintPopWindowDialog() {
|
||||
this.hintWindowDialog = new CustomDialogController({
|
||||
builder:DefaultHintProWindows({
|
||||
controller:this.hintWindowDialog,
|
||||
message:'确定要删除评论?',
|
||||
cancleTitleColor: '#666666',
|
||||
confirmTitleColor: $r('app.color.main_color'),
|
||||
selectedButton: (index:number)=>{
|
||||
if (index === 1) {
|
||||
this.deleteComment();
|
||||
}
|
||||
this.hintWindowDialog.close();
|
||||
}
|
||||
}),
|
||||
alignment: DialogAlignment.Center,
|
||||
cornerRadius:24,
|
||||
backgroundColor: ('rgba(0,0,0,0.5)'),
|
||||
})
|
||||
}
|
||||
|
||||
deleteComment() {
|
||||
const updateDataUrl:string = BasicConstant.deleteComment;
|
||||
@@ -56,14 +81,7 @@ export struct VideoDetailsComment {
|
||||
Image($r('app.media.video_comment_delete'))
|
||||
.width(20).height(20).margin({right:15})
|
||||
.onClick(()=>{
|
||||
promptAction.showDialog({ title: '温馨提示', message: '确定要删除评论?',
|
||||
buttons: [{ text: '取消', color: '#666666' }, { text: '确定', color: $r('app.color.main_color') }],
|
||||
})
|
||||
.then(data => {
|
||||
if (data.index == 1) {
|
||||
this.deleteComment();
|
||||
}
|
||||
})
|
||||
this.hintWindowDialog.open()
|
||||
})
|
||||
} else {
|
||||
Text('回复')
|
||||
|
||||
Reference in New Issue
Block a user