Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
c38b34f0
Commit
c38b34f0
authored
Apr 16, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
1c81bb11
' into xiezhaolin
parents
33875590
1c81bb11
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
96 additions
and
46 deletions
+96
-46
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-8
Applegate(JPush).swift
galaxy/galaxy/Applegate(JPush).swift
+5
-2
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+24
-16
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+9
-3
YHStartPageViewController.swift
...lasses/Modules/Home(首页)/C/YHStartPageViewController.swift
+2
-1
YHHomeBannerCollectionViewCell.swift
...s/Modules/Home(首页)/V/YHHomeBannerCollectionViewCell.swift
+3
-1
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+3
-1
YHSearchInfoCell.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
+2
-4
YHScorePersonInfoCell.swift
...Service(服务中心)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
+3
-1
YHImageViewController.swift
...的信息流程)/WorkExperience(工作经验)/C/YHImageViewController.swift
+2
-1
YHServiceBannerView.swift
...ules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
+3
-1
YHPhoneLoginViewController.swift
...sses/Modules/Login(登录)/C/YHPhoneLoginViewController.swift
+5
-5
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+1
-1
YHMyLikeViewController.swift
...y/Classes/Modules/Mine(我的)/C/YHMyLikeViewController.swift
+1
-1
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-0
Contents.json
...sets.xcassets/global_default_image.imageset/Contents.json
+22
-0
Mask group@2x.png
....xcassets/global_default_image.imageset/Mask group@2x.png
+0
-0
Mask group@3x.png
....xcassets/global_default_image.imageset/Mask group@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
c38b34f0
...
@@ -2240,9 +2240,9 @@
...
@@ -2240,9 +2240,9 @@
A5ACE95C2B457133002C94D2
/* C */
=
{
A5ACE95C2B457133002C94D2
/* C */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
044413F62BC2786200784A14
/* YHHomeWebViewController.swift */
,
A53D381F2BC243F1006AE6F7
/* YHStartPageViewController.swift */
,
A5173D672BC399B9007D4E74
/* YHHomePageViewController.swift */
,
A5173D672BC399B9007D4E74
/* YHHomePageViewController.swift */
,
A53D381F2BC243F1006AE6F7
/* YHStartPageViewController.swift */
,
044413F62BC2786200784A14
/* YHHomeWebViewController.swift */
,
044E1E802BC3BBC200A3B4AF
/* YHSearchInfomationVC.swift */
,
044E1E802BC3BBC200A3B4AF
/* YHSearchInfomationVC.swift */
,
A5A4FD622BC79901001EF9F7
/* YHConfigManager.swift */
,
A5A4FD622BC79901001EF9F7
/* YHConfigManager.swift */
,
048B2A472BC7CE4800A93BF0
/* YHFourKingViewController.swift */
,
048B2A472BC7CE4800A93BF0
/* YHFourKingViewController.swift */
,
...
@@ -2972,7 +2972,7 @@
...
@@ -2972,7 +2972,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
1
0
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -2992,7 +2992,7 @@
...
@@ -2992,7 +2992,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
0.2.
10
;
MARKETING_VERSION
=
0.2.
9
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -3173,7 +3173,7 @@
...
@@ -3173,7 +3173,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
1
0
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -3193,7 +3193,7 @@
...
@@ -3193,7 +3193,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
0.2.
10
;
MARKETING_VERSION
=
0.2.
9
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -3215,7 +3215,7 @@
...
@@ -3215,7 +3215,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
1
0
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -3235,7 +3235,7 @@
...
@@ -3235,7 +3235,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
0.2.
10
;
MARKETING_VERSION
=
0.2.
9
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
...
galaxy/galaxy/Applegate(JPush).swift
View file @
c38b34f0
...
@@ -52,13 +52,16 @@ extension AppDelegate: JPUSHRegisterDelegate {
...
@@ -52,13 +52,16 @@ extension AppDelegate: JPUSHRegisterDelegate {
func
application
(
_
application
:
UIApplication
,
didReceiveRemoteNotification
userInfo
:
[
AnyHashable
:
Any
],
fetchCompletionHandler
completionHandler
:
@escaping
(
UIBackgroundFetchResult
)
->
Void
)
{
func
application
(
_
application
:
UIApplication
,
didReceiveRemoteNotification
userInfo
:
[
AnyHashable
:
Any
],
fetchCompletionHandler
completionHandler
:
@escaping
(
UIBackgroundFetchResult
)
->
Void
)
{
JPUSHService
.
handleRemoteNotification
(
userInfo
)
JPUSHService
.
handleRemoteNotification
(
userInfo
)
completionHandler
(
UIBackgroundFetchResult
.
newData
)
completionHandler
(
UIBackgroundFetchResult
.
newData
)
// 转换到消息tab
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didSwithToMsgTabNotification
,
object
:
nil
)
}
}
//后台进前台
//后台进前台
func
applicationDidEnterBackground
(
_
application
:
UIApplication
)
{
func
applicationDidEnterBackground
(
_
application
:
UIApplication
)
{
//销毁通知红点
//销毁通知红点
UIApplication
.
shared
.
applicationIconBadgeNumber
=
0
//
UIApplication.shared.applicationIconBadgeNumber = 0
JPUSHService
.
setBadge
(
0
)
//
JPUSHService.setBadge(0)
UNUserNotificationCenter
.
current
()
.
removeAllPendingNotificationRequests
()
UNUserNotificationCenter
.
current
()
.
removeAllPendingNotificationRequests
()
}
}
...
...
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
c38b34f0
...
@@ -26,6 +26,7 @@ class YHTabBarViewController: ESTabBarController {
...
@@ -26,6 +26,7 @@ class YHTabBarViewController: ESTabBarController {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearAllUnreadMsg
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearAllUnreadMsg
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
switchToMsgTab
)
,
name
:
YhConstant
.
YhNotification
.
didSwithToMsgTabNotification
,
object
:
nil
)
}
}
}
}
...
@@ -48,6 +49,22 @@ extension YHTabBarViewController {
...
@@ -48,6 +49,22 @@ extension YHTabBarViewController {
printLog
(
"登出成功"
)
printLog
(
"登出成功"
)
}
}
// 转换到消息tab
@objc
func
switchToMsgTab
()
{
DispatchQueue
.
main
.
async
{
self
.
selectedIndex
=
2
}
}
@objc
func
clearAllUnreadMsg
()
{
DispatchQueue
.
main
.
async
{
if
let
vcs
=
self
.
viewControllers
,
let
msgListVC
=
vcs
[
safe
:
2
]
{
msgListVC
.
tabBarItem
.
badgeValue
=
""
UIApplication
.
shared
.
applicationIconBadgeNumber
=
0
}
}
}
func
getTotalUnreadMsgCount
()
{
func
getTotalUnreadMsgCount
()
{
self
.
viewModel
.
requestTotalUnreadMsgCount
{
self
.
viewModel
.
requestTotalUnreadMsgCount
{
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
...
@@ -55,27 +72,20 @@ extension YHTabBarViewController {
...
@@ -55,27 +72,20 @@ extension YHTabBarViewController {
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
if
let
vcs
=
self
.
viewControllers
,
let
msgListVC
=
vcs
[
safe
:
2
]
{
if
let
vcs
=
self
.
viewControllers
,
let
msgListVC
=
vcs
[
safe
:
2
]
{
var
count
=
self
.
viewModel
.
unreadTotalCount
let
count
=
self
.
viewModel
.
unreadTotalCount
var
unreadText
=
String
(
count
)
var
unreadText
:
String
?
=
nil
if
count
>
99
{
if
0
<
count
&&
count
<=
99
{
unreadText
=
String
(
count
)
}
else
if
count
>
99
{
unreadText
=
"99+"
unreadText
=
"99+"
}
}
msgListVC
.
tabBarItem
.
badgeValue
=
unreadText
msgListVC
.
tabBarItem
.
badgeValue
=
unreadText
UIApplication
.
shared
.
applicationIconBadgeNumber
=
count
}
}
}
}
}
}
}
}
@objc
func
clearAllUnreadMsg
()
{
DispatchQueue
.
main
.
async
{
if
let
vcs
=
self
.
viewControllers
,
let
msgListVC
=
vcs
[
safe
:
2
]
{
msgListVC
.
tabBarItem
.
badgeValue
=
""
UIApplication
.
shared
.
applicationIconBadgeNumber
=
0
}
}
}
}
}
extension
YHTabBarViewController
{
extension
YHTabBarViewController
{
...
@@ -94,6 +104,4 @@ extension YHTabBarViewController {
...
@@ -94,6 +104,4 @@ extension YHTabBarViewController {
}
completion
:
{
Bool
in
}
completion
:
{
Bool
in
}
}
}
}
}
}
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
c38b34f0
...
@@ -212,13 +212,19 @@ extension YHHomePageViewController : UITabBarControllerDelegate {
...
@@ -212,13 +212,19 @@ extension YHHomePageViewController : UITabBarControllerDelegate {
}
}
}
}
self
.
tapTimestamp
=
timestamp
self
.
tapTimestamp
=
timestamp
}
else
if
tabBarController
.
selectedIndex
==
2
{
// 点击消息tab 清空应用icon未读数
UIApplication
.
shared
.
applicationIconBadgeNumber
=
0
}
}
}
}
func
tabBarController
(
_
tabBarController
:
UITabBarController
,
shouldSelect
viewController
:
UIViewController
)
->
Bool
{
func
tabBarController
(
_
tabBarController
:
UITabBarController
,
shouldSelect
viewController
:
UIViewController
)
->
Bool
{
let
index
=
tabBarController
.
viewControllers
?
.
firstIndex
(
of
:
viewController
)
guard
let
index
=
tabBarController
.
viewControllers
?
.
firstIndex
(
of
:
viewController
)
else
{
if
index
==
1
{
return
false
}
if
index
==
1
||
index
==
2
{
if
YHLoginManager
.
shared
.
isLogin
()
{
if
YHLoginManager
.
shared
.
isLogin
()
{
return
true
return
true
}
else
{
}
else
{
...
@@ -227,7 +233,7 @@ extension YHHomePageViewController : UITabBarControllerDelegate {
...
@@ -227,7 +233,7 @@ extension YHHomePageViewController : UITabBarControllerDelegate {
UIViewController
.
current
?
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
UIViewController
.
current
?
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginManager
.
shared
.
loginSuccessActionBlock
=
{[
weak
self
]
in
YHLoginManager
.
shared
.
loginSuccessActionBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
tabBarController
.
selectedIndex
=
1
tabBarController
.
selectedIndex
=
index
YHLoginManager
.
shared
.
loginSuccessActionBlock
=
nil
YHLoginManager
.
shared
.
loginSuccessActionBlock
=
nil
}
}
return
false
return
false
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHStartPageViewController.swift
View file @
c38b34f0
...
@@ -70,13 +70,14 @@ private extension YHStartPageViewController {
...
@@ -70,13 +70,14 @@ private extension YHStartPageViewController {
}
}
func
initView
()
{
func
initView
()
{
gk_navigationBar
.
isHidden
=
true
imagV
.
image
=
UIImage
(
named
:
"start_page_bkg"
)
imagV
.
image
=
UIImage
(
named
:
"start_page_bkg"
)
view
.
addSubview
(
imagV
)
view
.
addSubview
(
imagV
)
imagV
.
snp
.
makeConstraints
{
make
in
imagV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
make
.
edges
.
equalToSuperview
()
}
}
view
.
addSubview
(
closeBtn
)
view
.
addSubview
(
closeBtn
)
closeBtn
.
layer
.
zPosition
=
10
closeBtn
.
layer
.
zPosition
=
10
closeBtn
.
clipsToBounds
=
true
closeBtn
.
clipsToBounds
=
true
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerCollectionViewCell.swift
View file @
c38b34f0
...
@@ -86,7 +86,9 @@ private extension YHHomeBannerCollectionViewCell {
...
@@ -86,7 +86,9 @@ private extension YHHomeBannerCollectionViewCell {
effectV
.
isHidden
=
false
effectV
.
isHidden
=
false
if
let
url
=
URL
(
string
:
model
.
img_url
)
{
if
let
url
=
URL
(
string
:
model
.
img_url
)
{
bannerImagV
.
kf
.
setImage
(
with
:
url
)
// bannerImagV.kf.setImage(with: url)
bannerImagV
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
}
bannerTitleLable
.
text
=
model
.
name
bannerTitleLable
.
text
=
model
.
name
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
c38b34f0
...
@@ -170,7 +170,9 @@ extension YHHomeCollectionViewCell {
...
@@ -170,7 +170,9 @@ extension YHHomeCollectionViewCell {
make
.
height
.
equalTo
(
listModel
.
img_height_use
)
make
.
height
.
equalTo
(
listModel
.
img_height_use
)
}
}
if
let
url
=
URL
(
string
:
listModel
.
img_url
)
{
if
let
url
=
URL
(
string
:
listModel
.
img_url
)
{
titleImageView
.
kf
.
setImage
(
with
:
url
)
// titleImageView.kf.setImage(with: url)
titleImageView
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
}
descripeLable
.
text
=
listModel
.
title
.
defaultStringIfEmpty
(
detaultValue
:
"银河世纪"
)
descripeLable
.
text
=
listModel
.
title
.
defaultStringIfEmpty
(
detaultValue
:
"银河世纪"
)
descripeLable
.
snp
.
removeConstraints
()
descripeLable
.
snp
.
removeConstraints
()
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
View file @
c38b34f0
...
@@ -18,7 +18,6 @@ class YHSearchInfoCell: UITableViewCell {
...
@@ -18,7 +18,6 @@ class YHSearchInfoCell: UITableViewCell {
setupUI
()
setupUI
()
}
}
required
init
?(
coder
:
NSCoder
)
{
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
fatalError
(
"init(coder:) has not been implemented"
)
}
}
...
@@ -51,9 +50,8 @@ class YHSearchInfoCell: UITableViewCell {
...
@@ -51,9 +50,8 @@ class YHSearchInfoCell: UITableViewCell {
self
.
model
=
model
self
.
model
=
model
titleLabel
.
text
=
model
.
title
titleLabel
.
text
=
model
.
title
videoPlayImgView
.
isHidden
=
(
model
.
type
!=
1
)
videoPlayImgView
.
isHidden
=
(
model
.
type
!=
1
)
if
let
url
=
URL
(
string
:
model
.
img_url
)
{
let
url
=
URL
(
string
:
model
.
img_url
)
headImgView
.
kf
.
setImage
(
with
:
url
)
headImgView
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
}
}
func
setupUI
()
{
func
setupUI
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
View file @
c38b34f0
...
@@ -218,7 +218,9 @@ extension YHScorePersonInfoCell {
...
@@ -218,7 +218,9 @@ extension YHScorePersonInfoCell {
self
.
requestVM
.
getPublicImageUrl
(
url
)
{[
weak
self
]
success
,
error
in
self
.
requestVM
.
getPublicImageUrl
(
url
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
guard
success
!=
nil
else
{
return
}
guard
success
!=
nil
else
{
return
}
self
.
headImagV
.
kf
.
setImage
(
with
:
URL
(
string
:
success
))
// self.headImagV.kf.setImage(with: URL(string: success))
self
.
headImagV
.
kf
.
setImage
(
with
:
URL
(
string
:
success
),
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHImageViewController.swift
View file @
c38b34f0
...
@@ -75,7 +75,8 @@ class YHImageViewController: YHBaseViewController {
...
@@ -75,7 +75,8 @@ class YHImageViewController: YHBaseViewController {
self
.
back
()
self
.
back
()
}
}
}
}
self
.
resultView
.
kf
.
setImage
(
with
:
URL
(
string
:
success
))
// self.resultView.kf.setImage(with: URL(string: success))
self
.
resultView
.
kf
.
setImage
(
with
:
URL
(
string
:
success
),
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
}
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
View file @
c38b34f0
...
@@ -122,7 +122,9 @@ extension YHServiceBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
...
@@ -122,7 +122,9 @@ extension YHServiceBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
let
model
=
dataArr
[
index
]
let
model
=
dataArr
[
index
]
if
model
.
id
!=
0
{
if
model
.
id
!=
0
{
if
let
url
=
URL
(
string
:
model
.
img_url
)
{
if
let
url
=
URL
(
string
:
model
.
img_url
)
{
cell
.
imageView
?
.
kf
.
setImage
(
with
:
url
)
// cell.imageView?.kf.setImage(with: url)
cell
.
imageView
?
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
}
}
else
{
}
else
{
cell
.
imageView
?
.
image
=
UIImage
(
named
:
model
.
img_url
)
cell
.
imageView
?
.
image
=
UIImage
(
named
:
model
.
img_url
)
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHPhoneLoginViewController.swift
View file @
c38b34f0
...
@@ -41,6 +41,10 @@ class YHPhoneLoginViewController: YHBaseViewController {
...
@@ -41,6 +41,10 @@ class YHPhoneLoginViewController: YHBaseViewController {
YHAnalytics
.
timeEnd
(
"loginTime"
)
YHAnalytics
.
timeEnd
(
"loginTime"
)
}
}
override
func
viewDidDisappear
(
_
animated
:
Bool
)
{
super
.
viewDidDisappear
(
animated
)
}
func
setView
()
{
func
setView
()
{
view
.
backgroundColor
=
.
white
view
.
backgroundColor
=
.
white
bgImageView
=
{
bgImageView
=
{
...
@@ -197,11 +201,6 @@ class YHPhoneLoginViewController: YHBaseViewController {
...
@@ -197,11 +201,6 @@ class YHPhoneLoginViewController: YHBaseViewController {
msg
=
String
(
error
?
.
errorCode
??
404
)
msg
=
String
(
error
?
.
errorCode
??
404
)
}
}
YHHUD
.
flash
(
message
:
msg
)
YHHUD
.
flash
(
message
:
msg
)
#if DEBUG
// let vc = YHCodeSueecssViewController()
// vc.phoneNumber = self.phoneMessageView.phoneTextField.text
// self.navigationController?.pushViewController(vc)
#endif
}
}
})
})
}
else
{
}
else
{
...
@@ -222,6 +221,7 @@ class YHPhoneLoginViewController: YHBaseViewController {
...
@@ -222,6 +221,7 @@ class YHPhoneLoginViewController: YHBaseViewController {
}
}
@objc
func
close
()
{
@objc
func
close
()
{
YHLoginManager
.
shared
.
loginSuccessActionBlock
=
nil
self
.
dismiss
(
animated
:
true
)
self
.
dismiss
(
animated
:
true
)
}
}
}
}
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
c38b34f0
...
@@ -171,7 +171,7 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -171,7 +171,7 @@ class YHMessageListVC: YHBaseViewController {
}
}
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
// 发送清空所有未读消息通知
// 发送清空所有未读消息通知
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
did
LoginSuccess
Notifiction
,
object
:
nil
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
did
MarkAllMessagesReaded
Notifiction
,
object
:
nil
)
return
return
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyLikeViewController.swift
View file @
c38b34f0
...
@@ -27,7 +27,7 @@ class YHMyLikeViewController: YHBaseViewController {
...
@@ -27,7 +27,7 @@ class YHMyLikeViewController: YHBaseViewController {
}
else
if
id
==
2
{
}
else
if
id
==
2
{
title
=
"我的收藏"
title
=
"我的收藏"
}
else
{
}
else
{
title
=
"
我的浏览
"
title
=
"
浏览记录
"
}
}
gk_navTitle
=
title
gk_navTitle
=
title
setupUI
()
setupUI
()
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
c38b34f0
...
@@ -199,5 +199,8 @@ extension YhConstant {
...
@@ -199,5 +199,8 @@ extension YhConstant {
//清空所有未读消息数
//清空所有未读消息数
public
static
let
didMarkAllMessagesReadedNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.msgPage.readAll"
)
public
static
let
didMarkAllMessagesReadedNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.msgPage.readAll"
)
// 自动转换到消息tab
public
static
let
didSwithToMsgTabNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.msgPage.switch"
)
}
}
}
}
galaxy/galaxy/Res/Assets.xcassets/global_default_image.imageset/Contents.json
0 → 100644
View file @
c38b34f0
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Mask group@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Mask group@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/global_default_image.imageset/Mask group@2x.png
0 → 100644
View file @
c38b34f0
4.49 KB
galaxy/galaxy/Res/Assets.xcassets/global_default_image.imageset/Mask group@3x.png
0 → 100644
View file @
c38b34f0
8.06 KB
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