Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b89de40f
由
cgx
编写于
2022-10-26 16:53:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
细节优化
1 个父辈
174f7448
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
5 行删除
DreamSleep/DreamSleep/Class/CommunityModule/MessageCenter/View/MessageOfficialNotiCell.m
DreamSleep/DreamSleep/Class/HomeModule/Home/View/HomeHeaderView.m
DreamSleep/DreamSleep/Class/CommunityModule/MessageCenter/View/MessageOfficialNotiCell.m
查看文件 @
b89de40
...
...
@@ -56,7 +56,7 @@
self
.
titleLab
.
text
=
officialModel
.
title
;
self
.
mesCountLab
.
hidden
=
!
officialModel
.
messageCount
;
self
.
mesCountLab
.
text
=
[
NSString
stringWithFormat
:
@"%d"
,
officialModel
.
messageCount
];
self
.
detailLab
.
text
=
self
.
mesCountLab
.
hidden
==
NO
?
officialModel
.
detail
:
@"暂无"
;
self
.
detailLab
.
text
=
self
.
mesCountLab
.
hidden
==
NO
?
officialModel
.
detail
:
@"暂无
通知
"
;
}
#pragma mark - lazy
...
...
DreamSleep/DreamSleep/Class/HomeModule/Home/View/HomeHeaderView.m
查看文件 @
b89de40
...
...
@@ -192,9 +192,7 @@
-
(
void
)
scrollViewDidEndDragging
:
(
UIScrollView
*
)
scrollView
willDecelerate
:
(
BOOL
)
decelerate
{
if
(
scrollView
.
contentOffset
.
x
>=
30
)
{
if
([
LoginUtils
getUserLoginData
])
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
0
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
self
.
ds_viewController
.
navigationController
pushViewController
:[
SleepStoryController
new
]
animated
:
YES
];
});
[
self
.
ds_viewController
.
navigationController
pushViewController
:[
SleepStoryController
new
]
animated
:
YES
];
}
else
{
// 跳转到登录页面
[
LoginUtils
jumpToLoginControllerWithTarget
:
self
.
ds_viewController
];
...
...
@@ -275,11 +273,15 @@
topView
.
dk_backgroundColorPicker
=
DKColorPickerWithColors
(
ColorFromHex
(
0xFFF3E1
),
ColorFromHex
(
0xAEA9A6
),
DSWhite
);
[
tmpView
addSubview
:
topView
];
self
.
topView
=
topView
;
UITapGestureRecognizer
*
tapGr1
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
playAction
)];
[
topView
addGestureRecognizer
:
tapGr1
];
UIView
*
bottomView
=
[
UIView
new
];
bottomView
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
CornerViewBG
);
[
tmpView
addSubview
:
bottomView
];
self
.
bottomView
=
bottomView
;
UITapGestureRecognizer
*
tapGr2
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
playAction
)];
[
bottomView
addGestureRecognizer
:
tapGr2
];
self
.
audioIV
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
defaultPlaceholderWithSize
:
CGSizeMake
(
76
,
90
)]];
[
self
.
audioIV
cornerRadius
:
12
];
...
...
@@ -304,7 +306,7 @@
self
.
playBtn
=
[
UIButton
btnWithTitle
:
@"播放"
font
:
BoldFont
(
16
)];
self
.
playBtn
.
size
=
(
CGSizeMake
(
64
,
34
));
[
self
.
playBtn
addTarget
:
self
action
:
@selector
(
playAction
)
forControlEvents
:
UIControlEventTouchUpInside
]
;
self
.
playBtn
.
userInteractionEnabled
=
NO
;
[
self
.
playBtn
dk_setTitleColorPicker
:
DKColorPickerWithKey
(
Sub_Navi_TITLE
)
forState
:
UIControlStateNormal
];
[
self
.
playBtn
cornerRadius
:
17
];
CGPoint
start
=
CGPointMake
(
0
,
0
.
5
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论