修改弹窗逻辑

This commit is contained in:
NSArray
2026-03-13 17:20:45 +08:00
parent 1bfe617cab
commit 6f9f903ca1
2 changed files with 16 additions and 4 deletions
@@ -218,9 +218,9 @@
- (void)addGesture {
// UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(close)];
// tap.cancelsTouchesInView = NO;
// [self addGestureRecognizer:tap];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(close)];
tap.cancelsTouchesInView = YES;
[self addGestureRecognizer:tap];
}
- (void)close {
@@ -365,6 +365,13 @@ weekLabel;
- (void)moreClick {
if (![HQCommonUtils isLogin]) {
KPostNotification(KNotificationLoginStateChange, @NO);
return;
}
if (self.watchModel.hasWatch == true) {
if (self.watchMoreBlock) {
self.watchMoreBlock();
@@ -494,8 +501,13 @@ weekLabel;
_devView.hidden = isFirst;
if (isFirst) {
// 切换回第一个 Tab,重新根据数据状态显示 emptyView
BOOL isEmpty = (_dataList.count == 0);
_emptyView.hidden = !isEmpty;
[self p_restartAutoScroll];
} else {
// 切换到其他 Tab,隐藏 emptyView
_emptyView.hidden = YES;
[self p_stopAutoScroll];
}