Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7f49ef22
由
cgx
编写于
2022-06-27 10:50:40 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复定时"取消设置";优化舒眠课时显示、呼吸法导航栏文案及位置
1 个父辈
75598e95
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
29 行增加
和
12 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep/Class/HomeModule/BreathingMethod/BreatheController.m
DreamSleep/DreamSleep/Class/HomeModule/Course/View/MusicPlayerView.m
DreamSleep/DreamSleep/Class/HomeModule/Home/View/DsMiddleView.m
DreamSleep/DreamSleep/Class/HomeModule/Home/View/SafeHelperCollectionViewCell.m
DreamSleep/DreamSleep/Class/HomeModule/Home/View/TimingView.h
DreamSleep/DreamSleep/Class/HomeModule/Home/View/TimingView.m
DreamSleep/DreamSleep/Class/HomeModule/WhiteNoise/View/NoisePlayBar.m
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
7f49ef2
...
...
@@ -2288,7 +2288,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION =
2
;
CURRENT_PROJECT_VERSION =
3
;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
...
...
@@ -2364,7 +2364,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/DreamSleep.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
2
;
CURRENT_PROJECT_VERSION =
3
;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
...
...
@@ -2500,7 +2500,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepBeta.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
2
;
CURRENT_PROJECT_VERSION =
3
;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
...
...
DreamSleep/DreamSleep/Class/HomeModule/BreathingMethod/BreatheController.m
查看文件 @
7f49ef2
...
...
@@ -147,7 +147,7 @@
make
.
topMargin
.
equalTo
(
self
.
breathTextView
.
mas_bottom
).
offset
(
41
);
}];
[
self
.
zoomView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
center
.
equalTo
(
self
.
view
);
make
.
center
Y
.
equalTo
(
self
.
view
).
offset
(
-
(
kTopHeight
(
0
)
/
2
.
0
)
);
make
.
leftMargin
.
equalTo
(
self
.
view
).
offset
(
90
);
make
.
rightMargin
.
equalTo
(
self
.
view
).
offset
(
-
90
);
make
.
height
.
equalTo
(
@300
);
...
...
DreamSleep/DreamSleep/Class/HomeModule/Course/View/MusicPlayerView.m
查看文件 @
7f49ef2
...
...
@@ -400,6 +400,9 @@
weakSelf
.
countTime
=
60
*
[
minuteDatas
[
index
]
intValue
];
weakSelf
.
totalTime
=
60
*
[
minuteDatas
[
index
]
intValue
];
[
weakSelf
.
timer
setFireDate
:[
NSDate
date
]];
}
cancel
:
^
{
[
weakSelf
.
timer
setFireDate
:[
NSDate
distantFuture
]];
[
weakSelf
.
timeCloseBtn
setTitle
:
@""
forState
:
UIControlStateNormal
];
}];
}
return
_timingView
;
...
...
DreamSleep/DreamSleep/Class/HomeModule/Home/View/DsMiddleView.m
查看文件 @
7f49ef2
...
...
@@ -179,7 +179,7 @@
}
else
{
BreatheController
*
breatheVC
=
[[
BreatheController
alloc
]
init
];
breatheVC
.
style
=
sender
.
tag
==
1
?
LottieStyleBalance
:
LottieStyleComfortable
;
breatheVC
.
title
=
sender
.
tag
==
1
?
@"
均衡呼吸法"
:
@"舒睡4-7-8呼吸法
"
;
breatheVC
.
title
=
sender
.
tag
==
1
?
@"
高效均衡呼吸法"
:
@"海军快速入眠特训
"
;
[
self
.
ds_viewController
.
navigationController
pushViewController
:
breatheVC
animated
:
YES
];
}
...
...
DreamSleep/DreamSleep/Class/HomeModule/Home/View/SafeHelperCollectionViewCell.m
查看文件 @
7f49ef2
...
...
@@ -39,7 +39,7 @@
self
.
courseIcon
.
hidden
=
NO
;
self
.
courseLab
.
hidden
=
NO
;
self
.
courseLab
.
text
=
[
NSString
stringWithFormat
:
@"%d"
,
model
.
count
];
self
.
courseLab
.
text
=
[
NSString
stringWithFormat
:
@"%d
课时
"
,
model
.
count
];
[
self
.
courseLab
sizeToFit
];
[
self
.
courseIcon
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
...
DreamSleep/DreamSleep/Class/HomeModule/Home/View/TimingView.h
查看文件 @
7f49ef2
...
...
@@ -10,13 +10,16 @@
NS_ASSUME_NONNULL_BEGIN
typedef
void
(
^
TimingBlock
)(
NSInteger
index
,
NSArray
*
minuteDatas
);
typedef
void
(
^
CancelBlock
)(
void
);
/// 首页和音频播放界面定时弹框
@interface
TimingView
:
UIView
/// 确定block
@property
(
nonatomic
,
copy
)
TimingBlock
timingBlock
;
/// 取消block
@property
(
nonatomic
,
copy
)
CancelBlock
cancelBlock
;
-
(
instancetype
)
initWithSureBlock
:(
TimingBlock
)
b
lock
;
-
(
instancetype
)
initWithSureBlock
:(
TimingBlock
)
timingBlock
cancel
:(
CancelBlock
)
cancelB
lock
;
/// 显示定时器
-
(
void
)
display
;
...
...
DreamSleep/DreamSleep/Class/HomeModule/Home/View/TimingView.m
查看文件 @
7f49ef2
...
...
@@ -24,11 +24,12 @@
@implementation
TimingView
-
(
instancetype
)
initWithSureBlock
:(
TimingBlock
)
b
lock
{
-
(
instancetype
)
initWithSureBlock
:(
TimingBlock
)
timingBlock
cancel
:(
CancelBlock
)
cancelB
lock
{
if
(
self
=
[
super
initWithFrame
:[
UIScreen
mainScreen
].
bounds
])
{
_currentTimeIndex
=
0
;
_timingBlock
=
block
;
_timingBlock
=
timingBlock
;
_cancelBlock
=
cancelBlock
;
self
.
dk_backgroundColorPicker
=
DKColorPickerWithColors
(
ColorFromHex
(
0x6F7587
),
DSClearColor
,
DSWhite
);
self
.
backgroundColor
=
[
self
.
backgroundColor
colorWithAlphaComponent
:
0
.
6
];
...
...
@@ -114,6 +115,13 @@
}
}
-
(
void
)
cancelAction
{
[
self
dismissTimingView
];
if
(
self
.
cancelBlock
)
{
self
.
cancelBlock
();
}
}
#pragma mark - UIPickerViewDataSource && UIPickerViewDelegate
-
(
NSInteger
)
numberOfComponentsInPickerView
:
(
UIPickerView
*
)
pickerView
{
return
1
;
...
...
@@ -194,7 +202,7 @@
if
(
!
_cancelBtn
)
{
_cancelBtn
=
[
UIButton
dkBtnTitle
:
@"取消设置"
font
:
SysFont
(
15
)];
[
_cancelBtn
dk_setTitleColorPicker
:
DKColorPickerWithKey
(
TEXT
)
forState
:
UIControlStateNormal
];
[
_cancelBtn
addTarget
:
self
action
:
@selector
(
dismissTimingView
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_cancelBtn
addTarget
:
self
action
:
@selector
(
cancelAction
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
return
_cancelBtn
;
}
...
...
DreamSleep/DreamSleep/Class/HomeModule/WhiteNoise/View/NoisePlayBar.m
查看文件 @
7f49ef2
...
...
@@ -172,6 +172,9 @@
weakSelf
.
countTime
=
60
*
[
minuteDatas
[
index
]
intValue
];
weakSelf
.
totalTime
=
60
*
[
minuteDatas
[
index
]
intValue
];
[
weakSelf
.
timer
setFireDate
:[
NSDate
date
]];
}
cancel
:
^
{
[
weakSelf
.
timer
setFireDate
:[
NSDate
distantFuture
]];
weakSelf
.
timeLab
.
text
=
@""
;
}];
}
return
_timingView
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论