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
de00e5cd
Commit
de00e5cd
authored
Feb 27, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 学历资格
parent
b7c7c226
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
41 deletions
+17
-41
YHEducationDetailVC.swift
...ation&Qualification(学历专业资格填写)/C/YHEducationDetailVC.swift
+0
-7
YHEducationInfoListVC.swift
...ion&Qualification(学历专业资格填写)/C/YHEducationInfoListVC.swift
+6
-12
YHQualificationDetailVC.swift
...n&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
+0
-7
YHEducationRequestViewModel.swift
...alification(学历专业资格填写)/M/YHEducationRequestViewModel.swift
+2
-2
YHFormItemAddCell.swift
...ocess(流程)/FamilyMember(家庭成员信息表)/V/YHFormItemAddCell.swift
+6
-12
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+3
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHEducationDetailVC.swift
View file @
de00e5cd
...
...
@@ -274,13 +274,6 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
let
arr
=
items
[
indexPath
.
section
]
let
item
:
YHFormItemProtocol
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 是标题
return
52.0
}
return
UITableView
.
automaticDimension
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHEducationInfoListVC.swift
View file @
de00e5cd
...
...
@@ -401,13 +401,6 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource {
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
let
arr
=
items
[
indexPath
.
section
]
let
item
:
YHFormItemProtocol
=
arr
[
indexPath
.
row
]
if
item
is
YHFormAddItem
{
// 新增子女兄妹
return
70.0
}
return
UITableView
.
automaticDimension
}
...
...
@@ -485,7 +478,7 @@ extension YHEducationInfoListVC {
// 请求家庭成员信息
func
requestEducationInfo
()
{
self
.
educationRequest
.
requestEducationInfo
(
params
:
[
"order_id"
:
self
.
orderId
])
{
self
.
educationRequest
.
requestEducationInfo
List
(
params
:
[
"order_id"
:
self
.
orderId
])
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
success
{
...
...
@@ -522,10 +515,11 @@ extension YHEducationInfoListVC {
// 保存
func
saveInfo
()
{
let
params
=
[
"go_next"
:
0
,
"graduate"
:
educationInfo
?
.
isSpouseNameSame
??
0
,
"order_id"
:
self
.
orderId
,
"qualification"
:
educationInfo
?
.
isNameSame
??
0
]
as
[
String
:
Any
]
guard
let
educationInfo
=
educationInfo
else
{
return
}
let
params
:[
String
:
Any
]
=
[
"order_id"
:
self
.
orderId
,
"goNextFlow"
:
0
,
"isSpouseNameSame"
:
educationInfo
.
isSpouseNameSame
??
false
,
"isNameSame"
:
educationInfo
.
isNameSame
??
false
]
self
.
educationRequest
.
saveAllEducationInfo
(
params
:
params
)
{
[
weak
self
]
success
,
error
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
View file @
de00e5cd
...
...
@@ -236,13 +236,6 @@ extension YHQualificationDetailVC : UITableViewDelegate, UITableViewDataSource {
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
let
arr
=
items
[
indexPath
.
section
]
let
item
:
YHFormItemProtocol
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 是标题
return
52.0
}
return
UITableView
.
automaticDimension
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/M/YHEducationRequestViewModel.swift
View file @
de00e5cd
...
...
@@ -16,8 +16,8 @@ class YHEducationRequestViewModel {
// 专业详情信息
var
qualificationDetailInfo
:
YHQualificationDetailInfo
?
// 请求学历和专业证书信息
func
requestEducationInfo
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
// 请求学历和专业证书信息
列表
func
requestEducationInfo
List
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/V/YHFormItemAddCell.swift
View file @
de00e5cd
...
...
@@ -13,8 +13,8 @@ class YHFormItemAddCell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHFormItemAddCell"
let
btnTitleColor
:
UIColor
=
.
brandMainColor
let
btnHeight
=
44.0
let
cornerRadius
=
4.0
let
btnSize
=
CGSize
(
width
:
(
KScreenWidth
-
(
18
+
16
)
*
2
),
height
:
44
)
var
clickBlock
:(()
->
Void
)?
...
...
@@ -38,8 +38,7 @@ class YHFormItemAddCell: UITableViewCell {
lazy
var
dotLineLayer
:
CAShapeLayer
=
{
let
borderLayer
=
CAShapeLayer
()
borderLayer
.
position
=
CGPoint
(
x
:
addBtn
.
bounds
.
midX
,
y
:
addBtn
.
bounds
.
midY
);
borderLayer
.
path
=
UIBezierPath
(
roundedRect
:
borderLayer
.
bounds
,
cornerRadius
:
addBtn
.
layer
.
cornerRadius
)
.
cgPath
borderLayer
.
path
=
UIBezierPath
(
roundedRect
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
btnSize
.
width
,
height
:
btnSize
.
height
),
cornerRadius
:
cornerRadius
)
.
cgPath
borderLayer
.
lineWidth
=
1
//[数组第一个数字表示单个虚线长度,第二个数字表示间隔]
borderLayer
.
lineDashPattern
=
[
3
,
1
]
as
[
NSNumber
]?
...
...
@@ -68,18 +67,13 @@ class YHFormItemAddCell: UITableViewCell {
addBtn
.
layer
.
addSublayer
(
dotLineLayer
)
addBtn
.
snp
.
makeConstraints
{
make
in
make
.
left
.
top
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
bottom
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
height
.
equalTo
(
btnHeight
)
make
.
top
.
equalToSuperview
()
.
offset
(
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
size
.
equalTo
(
btnSize
)
make
.
centerX
.
equalToSuperview
()
}
}
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
dotLineLayer
.
path
=
UIBezierPath
(
roundedRect
:
addBtn
.
bounds
,
cornerRadius
:
cornerRadius
)
.
cgPath
}
@objc
func
didClickAddBtn
()
{
if
let
clickBlock
=
clickBlock
{
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
de00e5cd
...
...
@@ -67,7 +67,9 @@ class YHAllApiName {
// 删除学历
static
let
deleteEducationInfoApi
=
"frontend/education/del"
// 保存所有信息
static
let
saveAllEduAndQuaInfoApi
=
"frontend/education/save_all"
// static let saveAllEduAndQuaInfoApi = "frontend/education/save_all"
static
let
saveAllEduAndQuaInfoApi
=
"infoflow/submitEducert"
}
struct
Qualification
{
...
...
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