Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
186fb7b0
authored
Mar 22, 2026
by
suolong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下礼物互动删除添加确定提示
parent
ba85dfc7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Controller/cell/FUSLiveGiftInteractSettingItemCell.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Controller/cell/FUSLiveGiftInteractSettingItemCell.m
View file @
186fb7b0
#import "FUSLiveGiftInteractSettingItemCell.h"
#import "FUSLiveGiftInteractSettingItemCell.h"
#import "FUSLiveGiftInteractSettingItemModel.h"
#import "FUSLiveGiftInteractSettingItemModel.h"
#import <FUSFoundation/FUSAlertView.h>
@interface
FUSLiveGiftInteractSettingItemCell
()
@interface
FUSLiveGiftInteractSettingItemCell
()
...
@@ -143,9 +144,27 @@
...
@@ -143,9 +144,27 @@
}
}
-
(
void
)
onClickDelete
{
-
(
void
)
onClickDelete
{
if
(
self
.
deleteHandler
&&
self
.
itemIndex
!
=
NSNotFound
)
{
if
(
!
self
.
deleteHandler
||
self
.
itemIndex
=
=
NSNotFound
)
{
self
.
deleteHandler
(
self
.
itemIndex
)
;
return
;
}
}
__weak
typeof
(
self
)
weakSelf
=
self
;
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"确认删除该礼物互动吗?"
]
message
:
nil
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"删除"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
!=
1
)
{
return
;
}
__strong
typeof
(
weakSelf
)
strongSelf
=
weakSelf
;
if
(
!
strongSelf
)
{
return
;
}
if
(
strongSelf
.
deleteHandler
&&
strongSelf
.
itemIndex
!=
NSNotFound
)
{
strongSelf
.
deleteHandler
(
strongSelf
.
itemIndex
);
}
}];
}
}
@end
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment