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
f1c215fb
Commit
f1c215fb
authored
Jul 04, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头像 返回挽留
parent
c14fe571
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
181 additions
and
42 deletions
+181
-42
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+6
-2
YHInformationAuthorizationStepOneViewController.swift
...)/C/YHInformationAuthorizationStepOneViewController.swift
+10
-3
YHImageClipperViewController.swift
...WorkExperience(工作经验)/C/YHImageClipperViewController.swift
+1
-6
YHWorkIntroductionViewController.swift
...Experience(工作经验)/C/YHWorkIntroductionViewController.swift
+1
-1
YHWorkExperienceViewModel.swift
...xperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
+2
-2
YHUserInfoSettingViewController.swift
...Modules/Login(登录)/C/YHUserInfoSettingViewController.swift
+9
-3
YHAllowSettingTableViewCell.swift
...ses/Modules/Login(登录)/V/YHAllowSettingTableViewCell.swift
+3
-3
YHEditBaseUserInfoViewController.swift
...我的)/MyCard(我的名片)/C/YHEditBaseUserInfoViewController.swift
+17
-12
YHEditHonorViewController.swift
...s/Mine(我的)/MyCard(我的名片)/C/YHEditHonorViewController.swift
+2
-2
YHEditInterestViewController.swift
...ine(我的)/MyCard(我的名片)/C/YHEditInterestViewController.swift
+2
-2
YHEditPersonalProfileViewController.swift
.../MyCard(我的名片)/C/YHEditPersonalProfileViewController.swift
+2
-2
YHEditSchoolViewController.swift
.../Mine(我的)/MyCard(我的名片)/C/YHEditSchoolViewController.swift
+2
-2
YHEditWorkViewController.swift
...es/Mine(我的)/MyCard(我的名片)/C/YHEditWorkViewController.swift
+2
-2
YHHeadImageViewController.swift
...s/Mine(我的)/MyCard(我的名片)/C/YHHeadImageViewController.swift
+122
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
f1c215fb
...
...
@@ -303,6 +303,7 @@
04AD317D2C295AE800DF5655
/* YHUserInfoSettingViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AD317C2C295AE800DF5655
/* YHUserInfoSettingViewModel.swift */
;
};
04AD317F2C295C0300DF5655
/* YHChangeHeadModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AD317E2C295C0300DF5655
/* YHChangeHeadModel.swift */
;
};
04ADBCA22C3674E300C37F10
/* YHMyLikeActivityViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04ADBCA12C3674E300C37F10
/* YHMyLikeActivityViewController.swift */
;
};
04ADBCA42C36906000C37F10
/* YHHeadImageViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04ADBCA32C36906000C37F10
/* YHHeadImageViewController.swift */
;
};
04AF514E2BEB585C00009E3A
/* YHVideoPlayerVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF514D2BEB585C00009E3A
/* YHVideoPlayerVC.swift */
;
};
04AF58C42B4FC51C0066011A
/* YHLocalizable.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
;
};
04AF82D62C25542D0028CE2A
/* YHInterestTopicLayout.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF82D52C25542D0028CE2A
/* YHInterestTopicLayout.swift */
;
};
...
...
@@ -353,11 +354,11 @@
04EA376F2BEA071600DBAF64
/* libc++.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04EA376E2BEA070500DBAF64
/* libc++.tbd */
;
};
04EA37742BEA0A3400DBAF64
/* YHShareManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04EA37732BEA0A3400DBAF64
/* YHShareManager.swift */
;
};
04EC2F812C22888E002907D7
/* YHFriendRequestView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04EC2F802C22888E002907D7
/* YHFriendRequestView.swift */
;
};
04F316442C3568F000024164
/* YHAboutGalaxyViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
;
};
04F0ABF32C364F9400518C30
/* home.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F0ABF02C364F9400518C30
/* home.json */
;
};
04F0ABF42C364F9400518C30
/* my.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F0ABF12C364F9400518C30
/* my.json */
;
};
04F0ABF52C364F9400518C30
/* community.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F0ABF22C364F9400518C30
/* community.json */
;
};
04F0ABF72C364F9D00518C30
/* service.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F0ABF62C364F9D00518C30
/* service.json */
;
};
04F316442C3568F000024164
/* YHAboutGalaxyViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
;
};
04F4B76B2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F4B76A2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift */
;
};
04F5F8602C1944D5004A463C
/* YHHKCenterViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F5F85F2C1944D5004A463C
/* YHHKCenterViewController.swift */
;
};
04F5F8622C1945C0004A463C
/* YHHKIdentityCardViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F5F8612C1945C0004A463C
/* YHHKIdentityCardViewController.swift */
;
};
...
...
@@ -878,6 +879,7 @@
04AD317C2C295AE800DF5655
/* YHUserInfoSettingViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHUserInfoSettingViewModel.swift
;
sourceTree
=
"<group>"
;
};
04AD317E2C295C0300DF5655
/* YHChangeHeadModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHChangeHeadModel.swift
;
sourceTree
=
"<group>"
;
};
04ADBCA12C3674E300C37F10
/* YHMyLikeActivityViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyLikeActivityViewController.swift
;
sourceTree
=
"<group>"
;
};
04ADBCA32C36906000C37F10
/* YHHeadImageViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHeadImageViewController.swift
;
sourceTree
=
"<group>"
;
};
04AF514D2BEB585C00009E3A
/* YHVideoPlayerVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerVC.swift
;
sourceTree
=
"<group>"
;
};
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLocalizable.swift
;
sourceTree
=
"<group>"
;
};
04AF82D52C25542D0028CE2A
/* YHInterestTopicLayout.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHInterestTopicLayout.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -927,11 +929,11 @@
04EA376E2BEA070500DBAF64
/* libc++.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
"libc++.tbd"
;
path
=
"usr/lib/libc++.tbd"
;
sourceTree
=
SDKROOT
;
};
04EA37732BEA0A3400DBAF64
/* YHShareManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHShareManager.swift
;
sourceTree
=
"<group>"
;
};
04EC2F802C22888E002907D7
/* YHFriendRequestView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFriendRequestView.swift
;
sourceTree
=
"<group>"
;
};
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAboutGalaxyViewController.swift
;
sourceTree
=
"<group>"
;
};
04F0ABF02C364F9400518C30
/* home.json */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.json
;
path
=
home.json
;
sourceTree
=
"<group>"
;
};
04F0ABF12C364F9400518C30
/* my.json */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.json
;
path
=
my.json
;
sourceTree
=
"<group>"
;
};
04F0ABF22C364F9400518C30
/* community.json */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.json
;
path
=
community.json
;
sourceTree
=
"<group>"
;
};
04F0ABF62C364F9D00518C30
/* service.json */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.json
;
path
=
service.json
;
sourceTree
=
"<group>"
;
};
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAboutGalaxyViewController.swift
;
sourceTree
=
"<group>"
;
};
04F4B76A2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateTemplateSheetView.swift
;
sourceTree
=
"<group>"
;
};
04F5F85F2C1944D5004A463C
/* YHHKCenterViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKCenterViewController.swift
;
sourceTree
=
"<group>"
;
};
04F5F8612C1945C0004A463C
/* YHHKIdentityCardViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKIdentityCardViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1376,6 +1378,7 @@
044D0C1D2C22CFBF00C5CF5E
/* YHEditWorkViewController.swift */
,
044D0C1F2C22D37500C5CF5E
/* YHEditHonorViewController.swift */
,
04AD31762C22DE6600DF5655
/* YHEditInterestViewController.swift */
,
04ADBCA32C36906000C37F10
/* YHHeadImageViewController.swift */
,
);
path
=
C
;
sourceTree
=
"<group>"
;
...
...
@@ -3489,6 +3492,7 @@
04EA23082BB50753009DA928
/* YHDocumentMessageTableViewCell.swift in Sources */
,
045EEE8E2B9F171A0022A143
/* YHPreviewInfoWorkSummaryView.swift in Sources */
,
045EEECE2B9F171A0022A143
/* YHScoreDetailViewController.swift in Sources */
,
04ADBCA42C36906000C37F10
/* YHHeadImageViewController.swift in Sources */
,
045EEE852B9F171A0022A143
/* YHPreviewFamilyMemberViewController.swift in Sources */
,
04FA8B332C0880A100ABE43F
/* YHAppleLoginViewModel.swift in Sources */
,
045EEE7F2B9F171A0022A143
/* YHWorkExpInfoPreviewModel.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHInformationAuthorizationStepOneViewController.swift
View file @
f1c215fb
...
...
@@ -177,11 +177,18 @@ class YHInformationAuthorizationStepOneViewController: YHBaseViewController {
view
.
endEditing
(
true
)
YHImagePickerView
.
show
()
{[
weak
self
]
image
in
guard
let
self
=
self
else
{
return
}
self
.
photoImageView
.
image
=
image
self
.
viewModel
.
uploadImage
(
image
,
true
)
{[
weak
self
]
success
,
error
in
let
clipperVC
=
YHHeadImageViewController
()
clipperVC
.
setBaseImg
(
image
,
resultImgSize
:
CGSize
(
width
:
300
,
height
:
300
),
type
:
.
Move
)
clipperVC
.
successClippedHandler
=
{[
weak
self
]
result
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
model
.
avatar
=
success
??
""
self
.
photoImageView
.
image
=
result
self
.
viewModel
.
uploadImage
(
result
,
true
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
model
.
avatar
=
success
??
""
}
}
self
.
navigationController
?
.
pushViewController
(
clipperVC
,
animated
:
true
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHImageClipperViewController.swift
View file @
f1c215fb
...
...
@@ -52,15 +52,10 @@ class YHImageClipperViewController: YHBaseViewController {
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
view
.
backgroundColor
=
.
black
self
.
hidesBottomBarWhenPushed
=
true
if
#available(iOS 11.0, *)
{
}
else
{
self
.
automaticallyAdjustsScrollViewInsets
=
false
}
// Do any additional setup after loading the view.
setView
()
gk_navigationBar
.
isHidden
=
true
}
func
setView
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkIntroductionViewController.swift
View file @
f1c215fb
...
...
@@ -323,7 +323,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
// if longTimeButton.isSelected {
// dataSource.project_end_time = "至今"
// }
guard
let
_
=
dataSource
.
project_name
else
{
guard
let
name
=
dataSource
.
project_name
,
name
.
count
!=
0
else
{
YHHUD
.
flash
(
message
:
"您还有信息未填写"
)
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
View file @
f1c215fb
...
...
@@ -457,8 +457,8 @@ class YHWorkExperienceViewModel: YHBaseViewModel {
guard
entryTime
.
count
>
0
else
{
return
false
}
guard
workCertificate
.
count
>
0
else
{
return
false
}
guard
duty
.
count
>
0
else
{
return
false
}
guard
companyMemberTotal
>
0
else
{
return
false
}
guard
companyManageTotal
>
0
else
{
return
false
}
guard
companyMemberTotal
>
=
0
else
{
return
false
}
guard
companyManageTotal
>
=
0
else
{
return
false
}
guard
professionalLevel
>
0
else
{
return
false
}
if
country
.
contains
(
"中国"
)
{
guard
area
.
count
>
0
else
{
return
false
}
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHUserInfoSettingViewController.swift
View file @
f1c215fb
...
...
@@ -155,11 +155,17 @@ class YHUserInfoSettingViewController: YHBaseViewController {
view
.
endEditing
(
true
)
YHImagePickerView
.
show
()
{[
weak
self
]
image
in
guard
let
self
=
self
else
{
return
}
self
.
photoImageView
.
image
=
image
self
.
viewModel
.
uploadImage
(
image
,
true
)
{[
weak
self
]
success
,
error
in
let
clipperVC
=
YHHeadImageViewController
()
clipperVC
.
setBaseImg
(
image
,
resultImgSize
:
CGSize
(
width
:
300
,
height
:
300
),
type
:
.
Move
)
clipperVC
.
successClippedHandler
=
{[
weak
self
]
result
in
guard
let
self
=
self
else
{
return
}
self
.
headUrl
=
success
??
""
self
.
photoImageView
.
image
=
result
self
.
viewModel
.
uploadImage
(
result
,
true
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
headUrl
=
success
??
""
}
}
self
.
navigationController
?
.
pushViewController
(
clipperVC
,
animated
:
true
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/V/YHAllowSettingTableViewCell.swift
View file @
f1c215fb
...
...
@@ -121,7 +121,7 @@ class YHAllowSettingTableViewCell: UITableViewCell {
}
case
.
people
:
if
!
detailSwitch
.
isOn
{
YHCommonAlertView
.
show
(
""
,
"关闭后,您将无法体验AI人脉匹配功能?"
,
"仍然关闭"
,
"开启"
)
{
YHCommonAlertView
.
show
(
""
,
"关闭后,您将无法体验AI人脉匹配功能?"
,
"仍然关闭"
,
"开启"
,
fullGuestureEnable
:
false
)
{
self
.
detailSwitch
.
isOn
=
false
model
.
isSelect
=
self
.
detailSwitch
.
isOn
if
let
block
=
self
.
block
{
...
...
@@ -142,7 +142,7 @@ class YHAllowSettingTableViewCell: UITableViewCell {
}
case
.
school
:
if
!
detailSwitch
.
isOn
{
YHCommonAlertView
.
show
(
""
,
"关闭后,您的好友将无法从您的名片中查看您的教育经历"
,
"仍然关闭"
,
"开启"
)
{
YHCommonAlertView
.
show
(
""
,
"关闭后,您的好友将无法从您的名片中查看您的教育经历"
,
"仍然关闭"
,
"开启"
,
fullGuestureEnable
:
false
)
{
self
.
detailSwitch
.
isOn
=
false
model
.
isSelect
=
self
.
detailSwitch
.
isOn
if
let
block
=
self
.
block
{
...
...
@@ -163,7 +163,7 @@ class YHAllowSettingTableViewCell: UITableViewCell {
}
case
.
work
:
if
!
detailSwitch
.
isOn
{
YHCommonAlertView
.
show
(
""
,
"关闭后,您的好友将无法从您的名片中查看您的工作经历"
,
"仍然关闭"
,
"开启"
)
{
YHCommonAlertView
.
show
(
""
,
"关闭后,您的好友将无法从您的名片中查看您的工作经历"
,
"仍然关闭"
,
"开启"
,
fullGuestureEnable
:
false
)
{
self
.
detailSwitch
.
isOn
=
false
model
.
isSelect
=
self
.
detailSwitch
.
isOn
if
let
block
=
self
.
block
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditBaseUserInfoViewController.swift
View file @
f1c215fb
...
...
@@ -137,19 +137,24 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
view
.
endEditing
(
true
)
YHImagePickerView
.
show
()
{[
weak
self
]
image
in
guard
let
self
=
self
else
{
return
}
self
.
photoImageView
.
image
=
image
self
.
viewModel
.
uploadImage
(
image
,
true
)
{[
weak
self
]
success
,
error
in
let
clipperVC
=
YHHeadImageViewController
()
clipperVC
.
setBaseImg
(
image
,
resultImgSize
:
CGSize
(
width
:
300
,
height
:
300
),
type
:
.
Move
)
clipperVC
.
successClippedHandler
=
{[
weak
self
]
result
in
guard
let
self
=
self
else
{
return
}
viewModel
.
model
.
avatar
=
success
??
""
if
self
.
viewModel
.
isCanNext
(
step
:
1
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
.
withAlphaComponent
(
0.4
)
self
.
photoImageView
.
image
=
result
self
.
viewModel
.
uploadImage
(
result
,
true
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
viewModel
.
model
.
avatar
=
success
??
""
if
self
.
viewModel
.
isCanNext
(
step
:
1
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
.
withAlphaComponent
(
0.4
)
}
}
}
self
.
navigationController
?
.
pushViewController
(
clipperVC
,
animated
:
true
)
}
}
...
...
@@ -175,7 +180,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
override
func
backItemClick
(
_
sender
:
Any
)
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -189,7 +194,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditHonorViewController.swift
View file @
f1c215fb
...
...
@@ -128,7 +128,7 @@ class YHEditHonorViewController: YHBaseViewController {
override
func
backItemClick
(
_
sender
:
Any
)
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -140,7 +140,7 @@ class YHEditHonorViewController: YHBaseViewController {
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditInterestViewController.swift
View file @
f1c215fb
...
...
@@ -171,7 +171,7 @@ class YHEditInterestViewController: YHBaseViewController {
override
func
backItemClick
(
_
sender
:
Any
)
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -183,7 +183,7 @@ class YHEditInterestViewController: YHBaseViewController {
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditPersonalProfileViewController.swift
View file @
f1c215fb
...
...
@@ -128,7 +128,7 @@ class YHEditPersonalProfileViewController: YHBaseViewController {
override
func
backItemClick
(
_
sender
:
Any
)
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -142,7 +142,7 @@ class YHEditPersonalProfileViewController: YHBaseViewController {
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditSchoolViewController.swift
View file @
f1c215fb
...
...
@@ -90,7 +90,7 @@ class YHEditSchoolViewController: YHBaseViewController {
override
func
backItemClick
(
_
sender
:
Any
)
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -102,7 +102,7 @@ class YHEditSchoolViewController: YHBaseViewController {
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditWorkViewController.swift
View file @
f1c215fb
...
...
@@ -90,7 +90,7 @@ class YHEditWorkViewController: YHBaseViewController {
override
func
backItemClick
(
_
sender
:
Any
)
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -102,7 +102,7 @@ class YHEditWorkViewController: YHBaseViewController {
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
if
viewModel
.
didChange
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
)
{
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"关闭"
,
"保存"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHHeadImageViewController.swift
0 → 100644
View file @
f1c215fb
//
// YHHeadImageViewController.swift
// galaxy
//
// Created by EDY on 2024/7/4.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHHeadImageViewController
:
YHBaseViewController
{
typealias
CancelClippedHandlerBlock
=
()
->
Void
typealias
SuccessClippedHandlerBlock
=
(
_
image
:
UIImage
)
->
Void
//MARK Public
public
var
cancelClippedHandler
:
CancelClippedHandlerBlock
?
public
var
successClippedHandler
:
SuccessClippedHandlerBlock
?
public
func
setBaseImg
(
_
baseImg
:
UIImage
,
resultImgSize
:
CGSize
,
type
:
YHClipperType
)
{
self
.
baseImg
=
baseImg
self
.
resultImgSize
=
resultImgSize
clipperView
=
YHClipperView
(
frame
:
CGRect
(
x
:
0
,
y
:
(
isIphoneX
()
?
88
:
64
),
width
:
KScreenWidth
,
height
:
KScreenHeight
-
k_Height_safeAreaInsetsBottom
()
-
54
-
(
isIphoneX
()
?
88
:
64
)))
clipperView
?
.
resultImgSize
=
resultImgSize
clipperView
?
.
baseImg
=
baseImg
clipperView
?
.
type
=
type
self
.
view
.
addSubview
(
clipperView
!
)
self
.
view
.
sendSubviewToBack
(
clipperView
!
)
}
private
var
baseImg
:
UIImage
!
private
var
resultImgSize
:
CGSize
!
//MARK Private
private
var
clipperView
:
YHClipperView
?
private
var
cannalButton
:
UIButton
!
private
var
sureButton
:
UIButton
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
view
.
backgroundColor
=
.
black
// Do any additional setup after loading the view.
setView
()
gk_navigationBar
.
isHidden
=
true
}
func
setView
()
{
let
bottomView
=
{
let
bottom
=
UIView
()
bottom
.
backgroundColor
=
.
black
return
bottom
}()
view
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
k_Height_safeAreaInsetsBottom
()
+
64
)
}
sureButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"确认"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
button
.
addTarget
(
self
,
action
:
#selector(
sureBtnClick
)
,
for
:
.
touchUpInside
)
return
button
}()
view
.
addSubview
(
sureButton
)
sureButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
10
-
k_Height_safeAreaInsetsBottom
())
make
.
height
.
equalTo
(
44
)
make
.
width
.
equalTo
(
93
)
}
cannalButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
left
button
.
setTitle
(
"取消"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
cannalBtnClick
)
,
for
:
.
touchUpInside
)
return
button
}()
view
.
addSubview
(
cannalButton
)
cannalButton
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
sureButton
.
snp
.
centerY
)
make
.
left
.
equalTo
(
30
)
make
.
height
.
equalTo
(
44
)
make
.
width
.
equalTo
(
60
)
}
}
override
func
navigationShouldPop
()
->
Bool
{
return
false
}
@objc
private
func
cannalBtnClick
()
{
if
cancelClippedHandler
!=
nil
{
cancelClippedHandler
!
()
}
self
.
navigationController
?
.
popViewController
()
}
@objc
private
func
sureBtnClick
()
{
guard
let
clippedImg
=
self
.
clipperView
?
.
clipImg
()
else
{
return
}
if
successClippedHandler
!=
nil
{
successClippedHandler
!
(
clippedImg
)
}
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
navigationController
?
.
isNavigationBarHidden
=
false
}
override
func
didReceiveMemoryWarning
()
{
super
.
didReceiveMemoryWarning
()
// Dispose of any resources that can be recreated.
}
}
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