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
7c923ba8
Commit
7c923ba8
authored
Feb 28, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
4891bc19
' into xiezhaolin
# Conflicts: # galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
parents
b62d4d75
4891bc19
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
188 additions
and
76 deletions
+188
-76
Podfile
galaxy/Podfile
+1
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-20
YHServiceCenterMainViewController.swift
...ntService(服务中心)/C/YHServiceCenterMainViewController.swift
+22
-22
YHCollegeSearchViewController.swift
...ification(学历专业资格填写)/C/YHCollegeSearchViewController.swift
+52
-4
YHEducationDetailVC.swift
...ation&Qualification(学历专业资格填写)/C/YHEducationDetailVC.swift
+1
-0
YHEducationInfoListVC.swift
...ion&Qualification(学历专业资格填写)/C/YHEducationInfoListVC.swift
+5
-5
YHQualificationDetailVC.swift
...n&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
+7
-4
YHEducationInfo.swift
...Education&Qualification(学历专业资格填写)/M/YHEducationInfo.swift
+36
-0
YHEducationRequestViewModel.swift
...alification(学历专业资格填写)/M/YHEducationRequestViewModel.swift
+29
-0
YHCollegeNameCell.swift
...ucation&Qualification(学历专业资格填写)/V/YHCollegeNameCell.swift
+4
-1
YHEducationInfoCell.swift
...ation&Qualification(学历专业资格填写)/V/YHEducationInfoCell.swift
+7
-8
YHSheetPickerView.swift
...amilyMember(家庭成员信息表)/V/PickerView/YHSheetPickerView.swift
+10
-0
YHServiceCenterMainViewModel.swift
...ligentService(服务中心)/VM/YHServiceCenterMainViewModel.swift
+2
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+7
-8
YHBaseUrlManager.swift
galaxy/galaxy/Classes/Tools/NetWork/YHBaseUrlManager.swift
+1
-3
No files found.
galaxy/Podfile
View file @
7c923ba8
...
@@ -88,7 +88,7 @@ target 'galaxy' do
...
@@ -88,7 +88,7 @@ target 'galaxy' do
#富文本库
#富文本库
pod
'AttributedString'
,
'3.3.5'
pod
'AttributedString'
,
'3.3.5'
#json转模型
#json转模型
pod
'HandyJSON'
,
'
~>
5.0.2'
pod
'HandyJSON'
,
'5.0.2'
end
end
...
...
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
7c923ba8
...
@@ -737,13 +737,6 @@
...
@@ -737,13 +737,6 @@
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
0468D43F2B61F6BD00CFB916
/* M */
=
{
isa
=
PBXGroup
;
children
=
(
);
path
=
M
;
sourceTree
=
"<group>"
;
};
0468D4402B61F6C400CFB916
/* V */
=
{
0468D4402B61F6C400CFB916
/* V */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
...
@@ -1277,21 +1270,12 @@
...
@@ -1277,21 +1270,12 @@
A5ACE8E72B4564F7002C94D2
/* Mine(我的) */
=
{
A5ACE8E72B4564F7002C94D2
/* Mine(我的) */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
A5ACE8E82B4564F7002C94D2
/* M */
,
0468D43F2B61F6BD00CFB916
/* M */
,
A5ACE8EB2B4564F7002C94D2
/* V */
,
A5ACE8EB2B4564F7002C94D2
/* V */
,
A5ACE8E92B4564F7002C94D2
/* C */
,
A5ACE8E92B4564F7002C94D2
/* C */
,
);
);
path
=
"Mine(我的)"
;
path
=
"Mine(我的)"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
A5ACE8E82B4564F7002C94D2
/* M */
=
{
isa
=
PBXGroup
;
children
=
(
);
path
=
M
;
sourceTree
=
"<group>"
;
};
A5ACE8E92B4564F7002C94D2
/* C */
=
{
A5ACE8E92B4564F7002C94D2
/* C */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
...
@@ -2168,7 +2152,7 @@
...
@@ -2168,7 +2152,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
=
3
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -2188,7 +2172,7 @@
...
@@ -2188,7 +2172,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
0.1.
1
;
MARKETING_VERSION
=
0.1.
2
;
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
=
""
;
...
@@ -2210,7 +2194,7 @@
...
@@ -2210,7 +2194,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
=
3
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -2230,7 +2214,7 @@
...
@@ -2230,7 +2214,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
0.1.
1
;
MARKETING_VERSION
=
0.1.
2
;
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/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterMainViewController.swift
View file @
7c923ba8
...
@@ -56,19 +56,12 @@ class YHServiceCenterMainViewController: YHBaseViewController {
...
@@ -56,19 +56,12 @@ class YHServiceCenterMainViewController: YHBaseViewController {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
setupUI
()
setupUI
()
loadData
()
handleRightUI
()
}
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
handleRightUI
()
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
loginTipsView
.
isHidden
=
false
noDataView
.
isHidden
=
true
homeTableView
.
isHidden
=
true
}
else
{
loginTipsView
.
isHidden
=
true
}
loadData
()
loadData
()
}
}
}
}
...
@@ -80,23 +73,13 @@ extension YHServiceCenterMainViewController {
...
@@ -80,23 +73,13 @@ extension YHServiceCenterMainViewController {
return
return
}
}
se
lf
.
se
rviceCenterMainReqVM
.
getContactList
{
success
,
error
in
serviceCenterMainReqVM
.
getContactList
{
success
,
error
in
if
success
==
true
{
if
success
==
true
{
}
else
{
}
else
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
}
}
self
.
handleRightUI
()
if
self
.
serviceCenterMainReqVM
.
arrContactList
.
isEmpty
{
self
.
homeTableView
.
isHidden
=
true
self
.
noDataView
.
isHidden
=
false
}
else
{
self
.
homeTableView
.
isHidden
=
false
self
.
noDataView
.
isHidden
=
true
self
.
loginTipsView
.
isHidden
=
true
}
self
.
homeTableView
.
reloadData
()
}
}
}
}
...
@@ -211,8 +194,25 @@ extension YHServiceCenterMainViewController {
...
@@ -211,8 +194,25 @@ extension YHServiceCenterMainViewController {
}
}
@objc
func
logoutSuccess
()
{
@objc
func
logoutSuccess
()
{
handleRightUI
()
}
private
func
handleRightUI
()
{
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
loginTipsView
.
isHidden
=
false
loginTipsView
.
isHidden
=
false
noDataView
.
isHidden
=
true
noDataView
.
isHidden
=
true
self
.
homeTableView
.
isHidden
=
true
homeTableView
.
isHidden
=
true
}
else
{
loginTipsView
.
isHidden
=
true
if
serviceCenterMainReqVM
.
arrContactList
.
isEmpty
{
homeTableView
.
isHidden
=
true
noDataView
.
isHidden
=
false
}
else
{
homeTableView
.
isHidden
=
false
noDataView
.
isHidden
=
true
}
}
homeTableView
.
reloadData
()
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHCollegeSearchViewController.swift
View file @
7c923ba8
...
@@ -10,9 +10,11 @@ import UIKit
...
@@ -10,9 +10,11 @@ import UIKit
class
YHCollegeSearchViewController
:
YHBaseViewController
{
class
YHCollegeSearchViewController
:
YHBaseViewController
{
var
orderId
:
Int
=
0
var
searchCollegeName
:
String
?
var
searchCollegeName
:
String
?
var
selectBlock
:((
String
?)
->
Void
)?
var
selectBlock
:((
String
?)
->
Void
)?
var
colleges
:[
Any
]
=
[]
var
colleges
:[
YHCollegeInfo
]
=
[]
let
educationRequest
:
YHEducationRequestViewModel
=
YHEducationRequestViewModel
()
lazy
var
searchBar
:
YHSearchBar
=
{
lazy
var
searchBar
:
YHSearchBar
=
{
let
bar
=
YHSearchBar
.
createBar
()
let
bar
=
YHSearchBar
.
createBar
()
...
@@ -39,6 +41,7 @@ class YHCollegeSearchViewController: YHBaseViewController {
...
@@ -39,6 +41,7 @@ class YHCollegeSearchViewController: YHBaseViewController {
lazy
var
emptyDataTipsView
:
UIView
=
{
lazy
var
emptyDataTipsView
:
UIView
=
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
124
))
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
124
))
view
.
isHidden
=
true
let
imgView
=
UIImageView
(
image
:
UIImage
(
named
:
"service_center_no_data"
))
let
imgView
=
UIImageView
(
image
:
UIImage
(
named
:
"service_center_no_data"
))
imgView
.
contentMode
=
.
scaleAspectFill
imgView
.
contentMode
=
.
scaleAspectFill
...
@@ -67,6 +70,9 @@ class YHCollegeSearchViewController: YHBaseViewController {
...
@@ -67,6 +70,9 @@ class YHCollegeSearchViewController: YHBaseViewController {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
createUI
()
createUI
()
if
searchCollegeName
!=
nil
{
searchCollege
()
}
}
}
func
createUI
()
{
func
createUI
()
{
...
@@ -83,6 +89,8 @@ class YHCollegeSearchViewController: YHBaseViewController {
...
@@ -83,6 +89,8 @@ class YHCollegeSearchViewController: YHBaseViewController {
searchBar
.
textChange
=
{
searchBar
.
textChange
=
{
[
weak
self
]
text
in
[
weak
self
]
text
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
searchCollegeName
=
text
searchCollege
()
}
}
searchBar
.
confirmBlock
=
{
searchBar
.
confirmBlock
=
{
[
weak
self
]
in
[
weak
self
]
in
...
@@ -105,6 +113,28 @@ class YHCollegeSearchViewController: YHBaseViewController {
...
@@ -105,6 +113,28 @@ class YHCollegeSearchViewController: YHBaseViewController {
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
}
}
func
searchCollege
()
{
let
param
:[
String
:
Any
]
=
[
"order_id"
:
orderId
,
"name"
:
searchCollegeName
??
""
,
"page"
:
1
,
"page_size"
:
15
,
]
self
.
educationRequest
.
searchCollegeInfoList
(
params
:
param
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
success
{
if
let
list
=
self
.
educationRequest
.
collegeList
{
colleges
=
list
}
else
{
colleges
=
[]
}
emptyDataTipsView
.
isHidden
=
colleges
.
count
>
0
}
self
.
tableView
.
reloadData
()
}
}
}
}
extension
YHCollegeSearchViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHCollegeSearchViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
...
@@ -114,19 +144,37 @@ extension YHCollegeSearchViewController: UITableViewDelegate, UITableViewDataSou
...
@@ -114,19 +144,37 @@ extension YHCollegeSearchViewController: UITableViewDelegate, UITableViewDataSou
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
36.0
return
UITableView
.
automaticDimension
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCollegeNameCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHCollegeNameCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCollegeNameCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHCollegeNameCell
cell
.
titleLabel
.
text
=
"XXXXXXXXX"
if
indexPath
.
row
<
colleges
.
count
{
let
college
:
YHCollegeInfo
=
colleges
[
indexPath
.
row
]
var
name
=
""
if
!
isEmptyString
(
college
.
zhName
)
{
name
+=
college
.
zhName
}
if
!
isEmptyString
(
college
.
zhName
)
&&
!
isEmptyString
(
college
.
enName
)
{
name
+=
"/"
}
if
!
isEmptyString
(
college
.
enName
)
{
name
+=
college
.
enName
}
cell
.
titleLabel
.
text
=
name
}
return
cell
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
let
selectBlock
=
selectBlock
{
if
let
selectBlock
=
selectBlock
{
selectBlock
(
""
)
if
indexPath
.
row
<
colleges
.
count
{
let
college
:
YHCollegeInfo
=
colleges
[
indexPath
.
row
]
selectBlock
(
college
.
getCollegeName
())
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHEducationDetailVC.swift
View file @
7c923ba8
...
@@ -299,6 +299,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -299,6 +299,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
if
detailItem
.
type
==
.
universityFullName
{
// 选择大学名称
if
detailItem
.
type
==
.
universityFullName
{
// 选择大学名称
let
vc
=
YHCollegeSearchViewController
()
let
vc
=
YHCollegeSearchViewController
()
vc
.
orderId
=
self
.
orderId
vc
.
searchCollegeName
=
detailInfo
.
college
vc
.
searchCollegeName
=
detailInfo
.
college
vc
.
selectBlock
=
{
vc
.
selectBlock
=
{
[
weak
self
]
text
in
[
weak
self
]
text
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHEducationInfoListVC.swift
View file @
7c923ba8
...
@@ -70,7 +70,7 @@ class YHEducationInfoListVC: YHBaseViewController {
...
@@ -70,7 +70,7 @@ class YHEducationInfoListVC: YHBaseViewController {
bottomView
.
saveBlock
=
{
bottomView
.
saveBlock
=
{
[
weak
self
]
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
saveInfo
()
saveInfo
(
isSubmit
:
false
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
...
@@ -511,11 +511,11 @@ extension YHEducationInfoListVC {
...
@@ -511,11 +511,11 @@ extension YHEducationInfoListVC {
}
}
// 保存
// 保存
func
saveInfo
()
{
func
saveInfo
(
isSubmit
:
Bool
)
{
guard
let
educationInfo
=
educationInfo
else
{
return
}
guard
let
educationInfo
=
educationInfo
else
{
return
}
let
params
:[
String
:
Any
]
=
[
"order_id"
:
self
.
orderId
,
let
params
:[
String
:
Any
]
=
[
"order_id"
:
self
.
orderId
,
"goNextFlow"
:
0
,
"goNextFlow"
:
isSubmit
,
"isSpouseNameSame"
:
educationInfo
.
isSpouseNameSame
??
false
,
"isSpouseNameSame"
:
educationInfo
.
isSpouseNameSame
??
false
,
"isNameSame"
:
educationInfo
.
isNameSame
??
false
]
"isNameSame"
:
educationInfo
.
isNameSame
??
false
]
...
@@ -524,6 +524,7 @@ extension YHEducationInfoListVC {
...
@@ -524,6 +524,7 @@ extension YHEducationInfoListVC {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
success
{
if
success
{
requestEducationInfo
()
requestEducationInfo
()
self
.
navigationController
?
.
popViewController
()
}
}
}
}
}
}
...
@@ -531,14 +532,13 @@ extension YHEducationInfoListVC {
...
@@ -531,14 +532,13 @@ extension YHEducationInfoListVC {
func
submitInfo
()
{
func
submitInfo
()
{
let
isChecked
=
checkIntegrity
()
let
isChecked
=
checkIntegrity
()
isNeedShowError
=
!
isChecked
isNeedShowError
=
!
isChecked
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
if
!
isChecked
{
if
!
isChecked
{
YHHUD
.
flash
(
message
:
"资料还未填完"
)
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
return
}
}
saveInfo
()
saveInfo
(
isSubmit
:
true
)
}
}
// 检查填写信息完整性
// 检查填写信息完整性
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
View file @
7c923ba8
...
@@ -113,11 +113,13 @@ class YHQualificationDetailVC: YHBaseViewController {
...
@@ -113,11 +113,13 @@ class YHQualificationDetailVC: YHBaseViewController {
let
item02
=
YHFormDetailItem
(
type
:
.
conferTime
)
let
item02
=
YHFormDetailItem
(
type
:
.
conferTime
)
item02
.
placeHolder
=
"请选择颁授年份"
.
local
item02
.
placeHolder
=
"请选择颁授年份"
.
local
item02
.
tips
=
"请选择颁授年份"
.
local
item02
.
tips
=
"请选择颁授年份"
.
local
if
detailInfo
.
issuingYear
>
0
{
item02
.
value
=
String
(
detailInfo
.
issuingYear
)
item02
.
value
=
String
(
detailInfo
.
issuingYear
)
}
let
item03
=
YHFormDetailItem
(
type
:
.
conferCountry
)
let
item03
=
YHFormDetailItem
(
type
:
.
conferCountry
)
item03
.
placeHolder
=
"请选择颁授国家/地区"
.
local
item03
.
placeHolder
=
"请选择颁授国家/地区"
.
local
item0
2
.
tips
=
"请选择颁授国家/地区"
.
local
item0
3
.
tips
=
"请选择颁授国家/地区"
.
local
item03
.
value
=
detailInfo
.
issuingAddr
.
country
item03
.
value
=
detailInfo
.
issuingAddr
.
country
let
item04
=
YHFormDetailItem
(
type
:
.
conferCity
)
let
item04
=
YHFormDetailItem
(
type
:
.
conferCity
)
...
@@ -261,11 +263,11 @@ extension YHQualificationDetailVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -261,11 +263,11 @@ extension YHQualificationDetailVC : UITableViewDelegate, UITableViewDataSource {
let
detailItem
=
item
as!
YHFormDetailItem
let
detailItem
=
item
as!
YHFormDetailItem
if
detailItem
.
type
==
.
qualificationCertificateName
{
// 资格证书名称
if
detailItem
.
type
==
.
qualificationCertificateName
{
// 资格证书名称
YHFormPickerView
.
show
(
type
:
.
professionCertificate
,
selectType
:
.
professionCertificate
(
.
ACA
))
{
[
weak
self
]
selectType
in
YHSheetPickerView
.
show
(
type
:
.
professionCertificate
,
selectTitle
:
detailInfo
.
certName
)
{
[
weak
self
]
selectItem
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
detailInfo
.
certName
=
select
Type
.
title
detailInfo
.
certName
=
select
Item
.
title
loadInfo
()
loadInfo
()
if
detailId
!=
0
{
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
...
@@ -423,6 +425,7 @@ extension YHQualificationDetailVC {
...
@@ -423,6 +425,7 @@ extension YHQualificationDetailVC {
YHHUD
.
flash
(
message
:
"资料还未填完"
)
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
return
}
}
saveDetailInfo
(
isNeedPop
:
true
,
isShowToast
:
true
)
saveDetailInfo
(
isNeedPop
:
true
,
isShowToast
:
true
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/M/YHEducationInfo.swift
View file @
7c923ba8
...
@@ -162,5 +162,41 @@ class YHQualificationDetailInfo: SmartCodable {
...
@@ -162,5 +162,41 @@ class YHQualificationDetailInfo: SmartCodable {
}
}
}
}
class
YHCollegeInfo
:
SmartCodable
{
var
id
:
Int
=
0
var
zhName
:
String
=
""
var
enName
:
String
=
""
// 0-未知,1-中文主校,2-英文主校
var
mainNameType
:
Int
=
0
var
schoolType
:
Int
=
0
var
assoProduct
:
[
Int
]
=
[]
var
color
:
String
=
""
enum
CodingKeys
:
String
,
CodingKey
{
case
id
=
"id"
case
zhName
=
"zh_name"
case
enName
=
"en_name"
case
mainNameType
=
"main_name_type"
case
schoolType
=
"school_type"
case
assoProduct
=
"asso_product"
case
color
=
"color"
}
func
getCollegeName
()
->
String
{
if
mainNameType
==
1
{
return
zhName
}
else
if
mainNameType
==
2
{
return
enName
}
return
""
}
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/M/YHEducationRequestViewModel.swift
View file @
7c923ba8
...
@@ -15,6 +15,8 @@ class YHEducationRequestViewModel {
...
@@ -15,6 +15,8 @@ class YHEducationRequestViewModel {
var
educationDetailInfo
:
YHEducationDetailInfo
?
var
educationDetailInfo
:
YHEducationDetailInfo
?
// 专业详情信息
// 专业详情信息
var
qualificationDetailInfo
:
YHQualificationDetailInfo
?
var
qualificationDetailInfo
:
YHQualificationDetailInfo
?
// 搜索学校数组
var
collegeList
:
[
YHCollegeInfo
]?
// 请求学历和专业证书信息列表
// 请求学历和专业证书信息列表
func
requestEducationInfoList
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
requestEducationInfoList
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
...
@@ -215,5 +217,32 @@ class YHEducationRequestViewModel {
...
@@ -215,5 +217,32 @@ class YHEducationRequestViewModel {
}
}
}
}
// 搜索学校
func
searchCollegeInfoList
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Education
.
searchCollegeNameApi
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{[
weak
self
]
json
,
code
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
let
dic
=
json
.
data
as?
[
AnyHashable
:
Any
]
guard
let
dic
=
dic
,
let
list
=
dic
[
"list"
]
as?
[[
String
:
Any
]],
let
results
=
[
YHCollegeInfo
]
.
deserialize
(
array
:
list
)
as?
[
YHCollegeInfo
]
else
{
callBackBlock
(
false
,
nil
)
return
}
collegeList
=
results
callBackBlock
(
true
,
nil
)
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/V/YHCollegeNameCell.swift
View file @
7c923ba8
...
@@ -16,6 +16,7 @@ class YHCollegeNameCell: UITableViewCell {
...
@@ -16,6 +16,7 @@ class YHCollegeNameCell: UITableViewCell {
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
.
mainTextColor
label
.
textColor
=
.
mainTextColor
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
14
)
return
label
return
label
}()
}()
...
@@ -37,7 +38,9 @@ class YHCollegeNameCell: UITableViewCell {
...
@@ -37,7 +38,9 @@ class YHCollegeNameCell: UITableViewCell {
titleLabel
.
snp
.
makeConstraints
{
make
in
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
21
)
make
.
left
.
equalToSuperview
()
.
offset
(
21
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
21
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
21
)
make
.
top
.
bottom
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
8
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
8
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/V/YHEducationInfoCell.swift
View file @
7c923ba8
...
@@ -62,17 +62,16 @@ class YHEducationInfoCell: UITableViewCell {
...
@@ -62,17 +62,16 @@ class YHEducationInfoCell: UITableViewCell {
return
imgView
return
imgView
}()
}()
private
lazy
var
bottom
Line
:
UIView
=
{
private
lazy
var
top
Line
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
view
.
backgroundColor
=
.
separatorColor
view
.
isHidden
=
true
return
view
return
view
}()
}()
// 是否
展示底
部分割线
// 是否
隐藏顶
部分割线
var
is
ShowBottom
Line
:
Bool
=
false
{
var
is
HiddenTop
Line
:
Bool
=
false
{
didSet
{
didSet
{
bottomLine
.
isHidden
=
!
isShowBottom
Line
topLine
.
isHidden
=
isHiddenTop
Line
}
}
}
}
...
@@ -99,8 +98,8 @@ class YHEducationInfoCell: UITableViewCell {
...
@@ -99,8 +98,8 @@ class YHEducationInfoCell: UITableViewCell {
contentView
.
addSubview
(
subTitleLabel
)
contentView
.
addSubview
(
subTitleLabel
)
contentView
.
addSubview
(
timeLabel
)
contentView
.
addSubview
(
timeLabel
)
contentView
.
addSubview
(
arrowImgView
)
contentView
.
addSubview
(
arrowImgView
)
contentView
.
addSubview
(
bottomLine
)
contentView
.
addSubview
(
deleteButton
)
contentView
.
addSubview
(
deleteButton
)
contentView
.
addSubview
(
topLine
)
titleLabel
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
titleLabel
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
...
@@ -134,11 +133,11 @@ class YHEducationInfoCell: UITableViewCell {
...
@@ -134,11 +133,11 @@ class YHEducationInfoCell: UITableViewCell {
make
.
right
.
equalToSuperview
()
.
offset
(
-
horizonalGap
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
horizonalGap
)
}
}
bottom
Line
.
snp
.
makeConstraints
{
make
in
top
Line
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
horizonalGap
)
make
.
left
.
equalToSuperview
()
.
offset
(
horizonalGap
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
horizonalGap
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
horizonalGap
)
make
.
height
.
equalTo
(
1.0
)
make
.
height
.
equalTo
(
1.0
)
make
.
bottom
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
}
}
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/V/PickerView/YHSheetPickerView.swift
View file @
7c923ba8
...
@@ -254,6 +254,7 @@ class YHSheetPickerView: UIView {
...
@@ -254,6 +254,7 @@ class YHSheetPickerView: UIView {
YHSheetPickerViewItem
(
title
:
"CQF(国际数量金融工程认证)"
.
local
,
index
:
10
),
YHSheetPickerViewItem
(
title
:
"CQF(国际数量金融工程认证)"
.
local
,
index
:
10
),
YHSheetPickerViewItem
(
title
:
"CIMA(管理会计师考试)"
.
local
,
index
:
11
),
YHSheetPickerViewItem
(
title
:
"CIMA(管理会计师考试)"
.
local
,
index
:
11
),
YHSheetPickerViewItem
(
title
:
"The Associate Chartered Accountant(英国皇家特许会计师)"
.
local
,
index
:
12
),
YHSheetPickerViewItem
(
title
:
"The Associate Chartered Accountant(英国皇家特许会计师)"
.
local
,
index
:
12
),
YHSheetPickerViewItem
(
title
:
"FCA(Fellow Chartered Accountant)"
.
local
,
index
:
13
),
],
],
// 学位类型
// 学位类型
...
@@ -441,11 +442,20 @@ extension YHSheetPickerView: UIPickerViewDelegate, UIPickerViewDataSource {
...
@@ -441,11 +442,20 @@ extension YHSheetPickerView: UIPickerViewDelegate, UIPickerViewDataSource {
}
}
}
}
func
pickerView
(
_
pickerView
:
UIPickerView
,
widthForComponent
component
:
Int
)
->
CGFloat
{
return
KScreenWidth
-
16*
2
}
func
pickerView
(
_
pickerView
:
UIPickerView
,
rowHeightForComponent
component
:
Int
)
->
CGFloat
{
return
44
}
func
pickerView
(
_
pickerView
:
UIPickerView
,
viewForRow
row
:
Int
,
forComponent
component
:
Int
,
reusing
view
:
UIView
?)
->
UIView
{
func
pickerView
(
_
pickerView
:
UIPickerView
,
viewForRow
row
:
Int
,
forComponent
component
:
Int
,
reusing
view
:
UIView
?)
->
UIView
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
textAlignment
=
.
center
label
.
numberOfLines
=
2
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
text
=
""
label
.
text
=
""
if
let
arr
=
dataSource
[
type
]
{
if
let
arr
=
dataSource
[
type
]
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/VM/YHServiceCenterMainViewModel.swift
View file @
7c923ba8
...
@@ -67,6 +67,8 @@ extension YHServiceCenterMainViewModel {
...
@@ -67,6 +67,8 @@ extension YHServiceCenterMainViewModel {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
printLog
(
"model 是 ==>
\(
json
)
"
)
arrContactList
.
removeAll
()
if
json
.
code
==
200
{
if
json
.
code
==
200
{
let
dic
=
json
.
data
let
dic
=
json
.
data
guard
let
resultModel
=
YHContactItemHoldModel
.
deserialize
(
dict
:
dic
as?
[
AnyHashable
:
Any
])
else
{
guard
let
resultModel
=
YHContactItemHoldModel
.
deserialize
(
dict
:
dic
as?
[
AnyHashable
:
Any
])
else
{
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
7c923ba8
...
@@ -51,37 +51,36 @@ class YHAllApiName {
...
@@ -51,37 +51,36 @@ class YHAllApiName {
// 删除家庭成员信息
// 删除家庭成员信息
static
let
familyMemberDeleteApi
=
"frontend/order/information/family/delete"
static
let
familyMemberDeleteApi
=
"frontend/order/information/family/delete"
}
}
struct
Education
{
struct
Education
{
// 获取教育和专业资格列表
// 获取教育和专业资格列表
// static let getEducationAndQulificationInfoApi = "frontend/education/list"
static
let
getEducationAndQulificationInfoListApi
=
"infoflow/getEducationList"
static
let
getEducationAndQulificationInfoListApi
=
"infoflow/getEducationList"
// 获取学历详情信息
// 获取学历详情信息
// static let getEducationDetailInfoApi = "frontend/education/detail"
static
let
getEducationDetailInfoApi
=
"infoflow/getEducationDetail"
static
let
getEducationDetailInfoApi
=
"infoflow/getEducationDetail"
// 保存学历信息
// 保存学历信息
// static let saveEducationInfoApi = "frontend/education/save"
static
let
saveEducationInfoApi
=
"infoflow/saveEducationData"
static
let
saveEducationInfoApi
=
"infoflow/saveEducationData"
// 删除学历
// 删除学历
static
let
deleteEducationInfoApi
=
"frontend/education/del"
static
let
deleteEducationInfoApi
=
"infoflow/delEducationData"
// 保存所有信息
// 保存所有信息
// static let saveAllEduAndQuaInfoApi = "frontend/education/save_all"
static
let
saveAllEduAndQuaInfoApi
=
"infoflow/submitEducert"
static
let
saveAllEduAndQuaInfoApi
=
"infoflow/submitEducert"
// 搜索大学名称
static
let
searchCollegeNameApi
=
"infoflow/getSchools"
}
}
struct
Qualification
{
struct
Qualification
{
// 获取学历详情信息
// 获取学历详情信息
// static let getQualificationDetailInfoApi = "frontend/qualification/detail"
static
let
getQualificationDetailInfoApi
=
"infoflow/getQuaDetail"
static
let
getQualificationDetailInfoApi
=
"infoflow/getQuaDetail"
// 删除专业
// 删除专业
static
let
deleteQualificationInfoApi
=
"
frontend/qualification/del
"
static
let
deleteQualificationInfoApi
=
"
infoflow/delQualification
"
// 保存专业详情
// 保存专业详情
// static let saveQualificationInfoApi = "frontend/qualification/save"
static
let
saveQualificationInfoApi
=
"infoflow/saveQualification"
static
let
saveQualificationInfoApi
=
"infoflow/saveQualification"
}
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHBaseUrlManager.swift
View file @
7c923ba8
...
@@ -17,10 +17,8 @@ class YHBaseUrlManager {
...
@@ -17,10 +17,8 @@ class YHBaseUrlManager {
// static let baseUrlTest : String = "https://test-api-gateway.galaxy-immi.com/" //智汇银河 - 微信小程序
// static let baseUrlTest : String = "https://test-api-gateway.galaxy-immi.com/" //智汇银河 - 微信小程序
static
let
baseUrlTest
:
String
=
"http://test.api.diymanager.galaxy-immi.com/"
//APP 使用域名
static
let
baseUrlTest
:
String
=
"http://test.api.diymanager.galaxy-immi.com/"
//APP 使用域名
//正式环境
//正式环境
static
let
baseUrlRelease
:
String
=
""
static
let
baseUrlRelease
:
String
=
"
http://test.api.diymanager.galaxy-immi.com/
"
//h5开发环境
//h5开发环境
static
let
h5UrlDev
:
String
=
""
static
let
h5UrlDev
:
String
=
""
...
...
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