Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit bfc2f088
由
cgx
编写于
2022-06-11 15:59:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复H5页面添加蒙版颜色值显示错误问题
1 个父辈
ac367900
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
22 行增加
和
18 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep/Basement/Category/UIView+Extras.m
DreamSleep/DreamSleep/Basement/H5/DsMaskView.m
DreamSleep/DreamSleep/Class/AISleepModule/Controller/AISleepCoachController.m
DreamSleep/DreamSleep/Class/HomeModule/Course/View/AudioDetailHeaderView.m
DreamSleep/DreamSleep/Class/Start/Root/BaseNaviController.m
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
bfc2f08
...
...
@@ -2186,7 +2186,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION =
6
;
CURRENT_PROJECT_VERSION =
7
;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = "";
...
...
@@ -2216,6 +2216,7 @@
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
...
...
@@ -2256,7 +2257,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/DreamSleep.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
6
;
CURRENT_PROJECT_VERSION =
7
;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
...
...
@@ -2285,6 +2286,7 @@
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
...
...
@@ -2387,7 +2389,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepBeta.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
6
;
CURRENT_PROJECT_VERSION =
7
;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
...
...
@@ -2416,6 +2418,7 @@
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
...
...
DreamSleep/DreamSleep/Basement/Category/UIView+Extras.m
查看文件 @
bfc2f08
...
...
@@ -116,8 +116,7 @@
-
(
void
)
addMaskWithType
:
(
MaskType
)
type
cornerRadius
:
(
CGFloat
)
cornerRadius
{
UIView
*
maskView
=
[[
UIView
alloc
]
initWithFrame
:
self
.
bounds
];
maskView
.
backgroundColor
=
DSBlack
;
maskView
.
alpha
=
.
3
;
maskView
.
backgroundColor
=
ColorFromHexA
(
0x161e38
,
.
35
);
[
self
addSubview
:
maskView
];
UIRectCorner
rectCorner
=
UIRectCornerAllCorners
;
...
...
@@ -135,8 +134,7 @@
[
self
removeMask
];
UIView
*
maskView
=
[[
UIView
alloc
]
initWithFrame
:
self
.
bounds
];
maskView
.
backgroundColor
=
ColorFromHex
(
0x6B7485
);
maskView
.
alpha
=
.
5
;
maskView
.
backgroundColor
=
ColorFromHexA
(
0x161e38
,
.
35
);
maskView
.
tag
=
999
;
maskView
.
userInteractionEnabled
=
NO
;
[
self
addSubview
:
maskView
];
...
...
DreamSleep/DreamSleep/Basement/H5/DsMaskView.m
查看文件 @
bfc2f08
...
...
@@ -11,8 +11,7 @@
-
(
instancetype
)
initWithSuperView
:(
UIView
*
)
superView
{
if
(
self
=
[
super
init
])
{
self
.
backgroundColor
=
ColorFromHex
(
0x6B7485
);
self
.
alpha
=
.
5
;
self
.
backgroundColor
=
ColorFromHexA
(
0x161e38
,
.
35
);
self
.
userInteractionEnabled
=
NO
;
UIView
*
view
=
superView
?
superView
:
DSKeyWindow
;
...
...
DreamSleep/DreamSleep/Class/AISleepModule/Controller/AISleepCoachController.m
查看文件 @
bfc2f08
...
...
@@ -12,12 +12,14 @@
#import "SomeProxy.h"
#import "ThreeMinuteController.h"
#import "UserRequestModel.h"
#import "DsMaskView.h"
@interface
AISleepCoachController
()
<
WKNavigationDelegate
,
WKScriptMessageHandler
,
DsWebControllerDelegate
,
RelaxTrainControllerDelegate
>
@property
(
strong
,
nonatomic
)
WKWebView
*
aiWebView
;
@property
(
strong
,
nonatomic
)
NSMutableURLRequest
*
request
;
@property
(
strong
,
nonatomic
)
UIProgressView
*
progressView
;
@property
(
strong
,
nonatomic
)
ExceptionDefaultView
*
exceptionView
;
@property
(
nonatomic
,
strong
)
DsMaskView
*
dsMaskView
;
@end
@implementation
AISleepCoachController
...
...
@@ -44,12 +46,7 @@
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
// 夜间模式
if
([
self
.
dk_manager
.
themeVersion
isEqualToString
:
DKThemeVersionNight
])
{
[
self
.
aiWebView
addMask
];
}
else
{
[
self
.
aiWebView
removeMask
];
}
[
self
.
dsMaskView
display
];
}
#pragma mark - 登录成功后刷新
...
...
@@ -236,6 +233,13 @@
return
_exceptionView
;
}
-
(
DsMaskView
*
)
dsMaskView
{
if
(
!
_dsMaskView
)
{
_dsMaskView
=
[[
DsMaskView
alloc
]
initWithSuperView
:
self
.
view
];
}
return
_dsMaskView
;
}
#pragma mark - 关闭侧滑
-
(
BOOL
)
enableInteractivePopGestureRecognizer
{
return
NO
;
...
...
DreamSleep/DreamSleep/Class/HomeModule/Course/View/AudioDetailHeaderView.m
查看文件 @
bfc2f08
...
...
@@ -85,7 +85,7 @@
// 添加遮罩
if
([
self
.
dk_manager
.
themeVersion
isEqualToString
:
DKThemeVersionNight
])
{
[
self
.
bgIV
addMaskWithType
:
MaskTypeCornerBottom
cornerRadius
:
22
.
0
];
[
self
.
audioIV
addMaskWithType
:
MaskTypeAllCorner
cornerRadius
:
1
5
.
5
];
[
self
.
audioIV
addMaskWithType
:
MaskTypeAllCorner
cornerRadius
:
1
2
.
0
];
}
[
self
.
bgIV
setCornerRadiusRect
:(
UIRectCornerBottomLeft
|
UIRectCornerBottomRight
)
cornerRadius
:
22
.
0
];
}
else
{
...
...
@@ -108,7 +108,7 @@
-
(
UIImageView
*
)
audioIV
{
if
(
!
_audioIV
)
{
_audioIV
=
[
UIImageView
new
];
[
_audioIV
cornerRadius
:
1
5
.
5
];
[
_audioIV
cornerRadius
:
1
2
.
0
];
}
return
_audioIV
;
}
...
...
DreamSleep/DreamSleep/Class/Start/Root/BaseNaviController.m
查看文件 @
bfc2f08
...
...
@@ -35,7 +35,7 @@
UIColor
*
bgColor
=
BrandColor
;
UIColor
*
barTintColor
=
BrandColor
;
if
(
style
==
NaviStyleLight
)
{
titleColor
=
ColorFromHex
(
0x333333
)
;
titleColor
=
MainTextColor
;
bgColor
=
DSWhite
;
barTintColor
=
DSWhite
;
}
else
if
(
style
==
NaviStyleDark
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论