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
9c8519f4
Commit
9c8519f4
authored
Nov 16, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作经验首页UI
parent
8d355ba5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
253 additions
and
104 deletions
+253
-104
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHWorkExperienceViewController.swift
...rkExperience(工作经验)/C/YHWorkExperienceViewController.swift
+36
-8
YHWorkExperienceSelectView.swift
...)/WorkExperience(工作经验)/V/YHWorkExperienceSelectView.swift
+167
-0
YHWorkExperienceTableViewCell.swift
...orkExperience(工作经验)/V/YHWorkExperienceTableViewCell.swift
+41
-50
YHWorkExperienceViewModel.swift
...xperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
+5
-46
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
9c8519f4
...
...
@@ -16,6 +16,7 @@
040AE97C2CE7410100310241
/* YHWorkExperiencePositionViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040AE97B2CE7410100310241
/* YHWorkExperiencePositionViewModel.swift */
;
};
040AE97E2CE7464000310241
/* YHWorkExperiencePositionListTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040AE97D2CE7464000310241
/* YHWorkExperiencePositionListTableViewCell.swift */
;
};
040AE9802CE8340000310241
/* YHWorkExperiencePositionReasonTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040AE97F2CE8340000310241
/* YHWorkExperiencePositionReasonTableViewCell.swift */
;
};
040AE9822CE8810200310241
/* YHWorkExperienceSelectView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040AE9812CE8810200310241
/* YHWorkExperienceSelectView.swift */
;
};
04129E862CD0C8490072F87B
/* YHAliYunLogManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04129E852CD0C8490072F87B
/* YHAliYunLogManager.swift */
;
};
041390692C1081FA0098CB8A
/* YHFileListEmptyView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041390682C1081FA0098CB8A
/* YHFileListEmptyView.swift */
;
};
0414708B2C88627B00B7B688
/* YHButlerServiceManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414708A2C88627B00B7B688
/* YHButlerServiceManager.swift */
;
};
...
...
@@ -996,6 +997,7 @@
040AE97B2CE7410100310241
/* YHWorkExperiencePositionViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWorkExperiencePositionViewModel.swift
;
sourceTree
=
"<group>"
;
};
040AE97D2CE7464000310241
/* YHWorkExperiencePositionListTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWorkExperiencePositionListTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
040AE97F2CE8340000310241
/* YHWorkExperiencePositionReasonTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWorkExperiencePositionReasonTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
040AE9812CE8810200310241
/* YHWorkExperienceSelectView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWorkExperienceSelectView.swift
;
sourceTree
=
"<group>"
;
};
04129E852CD0C8490072F87B
/* YHAliYunLogManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAliYunLogManager.swift
;
sourceTree
=
"<group>"
;
};
041390682C1081FA0098CB8A
/* YHFileListEmptyView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFileListEmptyView.swift
;
sourceTree
=
"<group>"
;
};
0414708A2C88627B00B7B688
/* YHButlerServiceManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHButlerServiceManager.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2889,6 +2891,7 @@
040AE9772CE73BA600310241
/* YHWorkExperiencePositionTableViewCell.swift */
,
040AE97D2CE7464000310241
/* YHWorkExperiencePositionListTableViewCell.swift */
,
040AE97F2CE8340000310241
/* YHWorkExperiencePositionReasonTableViewCell.swift */
,
040AE9812CE8810200310241
/* YHWorkExperienceSelectView.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -5623,6 +5626,7 @@
04F2436C2C9D9A3A00DF2C74
/* YHResignDocumentCompleteModel.swift in Sources */
,
044D0BF62C2154CA00C5CF5E
/* YHAllowUseMyInfoViewController.swift in Sources */
,
0485DFE12C6A0B6200B50293
/* YHPrincipleApprovedResultVC.swift in Sources */
,
040AE9822CE8810200310241
/* YHWorkExperienceSelectView.swift in Sources */
,
04256DF42C73626900A37BA4
/* YHServiceSelectAlertView.swift in Sources */
,
04F5F8702C1AC4C2004A463C
/* YHHKEventWebViewController.swift in Sources */
,
045EEE892B9F171A0022A143
/* YHPreviewBaseViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkExperienceViewController.swift
View file @
9c8519f4
...
...
@@ -8,6 +8,7 @@
import
UIKit
import
IQKeyboardManagerSwift
import
AttributedString
class
YHWorkExperienceViewController
:
YHBaseViewController
{
var
stepView
:
YHStepView
!
...
...
@@ -130,6 +131,38 @@ class YHWorkExperienceViewController: YHBaseViewController {
self
.
tableView
.
reloadData
()
}
func
getTextWithType
(
type
:
Int
)
->
ASAttributedString
{
if
type
==
0
{
return
.
init
(
"签字盖章的推荐信"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
}
if
type
==
1
{
let
a
:
ASAttributedString
=
.
init
(
"盖章的工作证明+签字的推荐信"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
return
a
}
if
type
==
2
{
let
a
:
ASAttributedString
=
.
init
(
"其他证明(退工单或合同+社保等证明)
\n
"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"(此类文件加分以港府审批为准)"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x8993a2
)))
return
a
+
b
}
if
type
==
3
{
let
a
:
ASAttributedString
=
.
init
(
"以上均不能提供
\n
"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"(或将导致您的该段工作经验"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x8993a2
)))
let
c
:
ASAttributedString
=
.
init
(
"不被认可不予加分"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
failColor
))
let
d
:
ASAttributedString
=
.
init
(
",请尽可能准备以上材料并修改此选项)"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x8993a2
)))
return
a
+
b
+
c
+
d
}
return
.
init
(
""
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.5
)))
}
func
getTipsWithType
()
->
[
ASAttributedString
]
{
return
[
self
.
getTextWithType
(
type
:
0
),
self
.
getTextWithType
(
type
:
1
),
self
.
getTextWithType
(
type
:
2
),
self
.
getTextWithType
(
type
:
3
)]
}
func
setView
()
{
stepView
=
{
let
step
=
YHStepView
()
...
...
@@ -641,6 +674,7 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
if
indexPath
.
row
==
0
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkExperienceTableViewCell
.
self
)
cell
.
country
=
self
.
viewModel
.
mainModel
.
location
.
country
cell
.
selectDataSource
=
getTipsWithType
()
cell
.
dataSource
=
baseDataSource
?[
indexPath
.
row
]
cell
.
workExperienceBlock
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
...
...
@@ -719,18 +753,12 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
let
data
=
array
[
i
]
let
message
=
data
.
message
??
""
let
isShow
=
data
.
isShowPrompts
??
false
if
data
.
id
==
.
id3
||
data
.
id
==
.
id4
||
data
.
id
==
.
id18
{
h
=
h
+
132
}
else
if
data
.
id
==
.
id13
{
h
=
h
+
72
}
else
{
h
=
h
+
52
}
h
=
h
+
52
if
isShow
&&
message
.
count
==
0
{
h
=
h
+
20
}
}
return
CGFloat
(
h
+
52
+
14
)
return
CGFloat
(
h
+
52
+
14
+
386
)
}
else
{
// let number = dataSource?.count ?? 0
var
height
=
23
+
154
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkExperienceSelectView.swift
0 → 100644
View file @
9c8519f4
//
// YHWorkExperienceSelectView.swift
// galaxy
//
// Created by EDY on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHWorkExperienceSelectView
:
UIView
{
typealias
SelectBlock
=
(
_
selectIndex
:
[
Int
])
->
()
var
selectBlock
:
SelectBlock
?
var
selectItem
:
[
Int
]
=
[]
var
lineView
:
UIView
!
var
subTitleLabel
:
UILabel
!
var
mainItemView
:
UIView
!
var
dataSource
:
[
ASAttributedString
]?
{
didSet
{
updateAllViews
()
}
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
setupUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setupUI
()
{
backgroundColor
=
.
clear
lineView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
return
view
}()
addSubview
(
lineView
)
lineView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
0
)
make
.
height
.
equalTo
(
1
)
make
.
right
.
equalTo
(
-
18
)
}
subTitleLabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
let
str
=
"*"
+
"您可以提供以下哪种工作证明文件:"
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
.
font
:
UIFont
.
PFSC_R
(
ofSize
:
14
),
.
foregroundColor
:
UIColor
.
mainTextColor
]
let
questionAttrStr
=
NSMutableAttributedString
(
string
:
str
,
attributes
:
attributes
)
let
starRange
=
NSRange
(
location
:
0
,
length
:
1
)
questionAttrStr
.
addAttribute
(
NSAttributedString
.
Key
.
foregroundColor
,
value
:
UIColor
.
failColor
,
range
:
starRange
)
label
.
attributedText
=
questionAttrStr
return
label
}()
addSubview
(
subTitleLabel
)
subTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
0
)
make
.
height
.
equalTo
(
52
)
make
.
right
.
equalTo
(
-
18
)
}
mainItemView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
return
view
}()
addSubview
(
mainItemView
)
mainItemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
52
)
}
}
func
updateAllViews
()
{
for
i
in
0
..<
(
dataSource
?
.
count
??
0
)
{
let
bgviewButton
=
{
let
view
=
UIButton
()
view
.
backgroundColor
=
UIColor
.
contentBkgColor
view
.
layer
.
cornerRadius
=
3
view
.
layer
.
borderColor
=
UIColor
.
brandMainColor
.
cgColor
view
.
addTarget
(
self
,
action
:
#selector(
agreeClick(sender:)
)
,
for
:
.
touchUpInside
)
view
.
tag
=
20000
+
i
return
view
}()
mainItemView
.
addSubview
(
bgviewButton
)
let
agreeButton
=
{
let
button
=
UIImageView
()
button
.
image
=
UIImage
(
named
:
"login_privacy_disagree_glay"
)
button
.
tag
=
10000
+
i
if
selectItem
.
contains
(
i
)
{
button
.
image
=
UIImage
(
named
:
"login_privacy_agree"
)
}
else
{
button
.
image
=
UIImage
(
named
:
"login_privacy_disagree_glay"
)
}
button
.
isUserInteractionEnabled
=
false
return
button
}()
mainItemView
.
addSubview
(
agreeButton
)
agreeButton
.
snp
.
makeConstraints
{
make
in
if
i
==
0
{
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
}
else
{
let
view
=
mainItemView
.
viewWithTag
(
1000
+
i
-
1
)
make
.
top
.
equalTo
(
view
?
.
snp
.
bottom
??
mainItemView
.
snp
.
bottom
)
.
offset
(
48
)
}
make
.
left
.
equalTo
(
34
)
make
.
height
.
equalTo
(
13
)
make
.
width
.
equalTo
(
13
)
}
let
subTitleLabel
=
{
let
label
=
UILabel
()
label
.
attributed
.
text
=
dataSource
?[
i
]
label
.
numberOfLines
=
0
label
.
tag
=
1000
+
i
label
.
isUserInteractionEnabled
=
false
return
label
}()
mainItemView
.
addSubview
(
subTitleLabel
)
subTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
agreeButton
.
snp
.
top
)
.
offset
(
-
3
)
make
.
left
.
equalTo
(
56
)
make
.
right
.
equalTo
(
-
35
)
}
bgviewButton
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
subTitleLabel
.
snp
.
top
)
.
offset
(
-
16
)
make
.
bottom
.
equalTo
(
subTitleLabel
.
snp
.
bottom
)
.
offset
(
16
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
}
}
}
@objc
func
agreeClick
(
sender
:
UIButton
)
{
sender
.
isSelected
=
!
sender
.
isSelected
if
sender
.
isSelected
{
sender
.
layer
.
borderWidth
=
1
sender
.
backgroundColor
=
UIColor
(
hex
:
0xebf0f9
)
selectItem
.
append
(
sender
.
tag
-
20000
)
let
view
=
mainItemView
.
viewWithTag
(
sender
.
tag
-
20000
+
10000
)
as!
UIImageView
view
.
image
=
UIImage
(
named
:
"login_privacy_agree"
)
}
else
{
sender
.
layer
.
borderWidth
=
0
sender
.
backgroundColor
=
UIColor
.
contentBkgColor
selectItem
.
removeAll
(
where
:
{
$0
==
sender
.
tag
-
20000
})
let
view
=
mainItemView
.
viewWithTag
(
sender
.
tag
-
20000
+
10000
)
as!
UIImageView
view
.
image
=
UIImage
(
named
:
"login_privacy_disagree_glay"
)
}
if
let
block
=
selectBlock
{
block
(
selectItem
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkExperienceTableViewCell.swift
View file @
9c8519f4
...
...
@@ -7,6 +7,7 @@
//
import
UIKit
import
AttributedString
class
YHWorkExperienceTableViewCell
:
UITableViewCell
{
typealias
WorkExperienceBlock
=
(
_
model
:
YHWorkExperienceModel
)
->
()
...
...
@@ -22,6 +23,7 @@ class YHWorkExperienceTableViewCell: UITableViewCell {
updateAllViews
()
}
}
var
selectDataSource
:
[
ASAttributedString
]?
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
...
...
@@ -104,58 +106,47 @@ class YHWorkExperienceTableViewCell: UITableViewCell {
let
data
=
dataSource
?
.
models
?[
i
]
let
isShow
=
data
?
.
isShowPrompts
??
false
let
message
=
data
?
.
message
??
""
if
data
?
.
id
==
.
id3
||
data
?
.
id
==
.
id4
||
data
?
.
id
==
.
id18
{
var
h
=
131
if
isShow
&&
message
.
count
==
0
{
h
=
h
+
20
}
let
itemView
=
YHWorkExperienceTextItemView
()
itemView
.
dataSource
=
data
itemView
.
block
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
workExperienceBlock
{
block
(
model
)
}
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
y
)
make
.
height
.
equalTo
(
h
)
make
.
right
.
equalTo
(
-
18
)
}
y
=
y
+
h
}
else
{
var
h
=
51
if
data
?
.
id
==
.
id13
{
h
=
71
}
if
isShow
&&
message
.
count
==
0
{
h
=
h
+
20
}
let
itemView
=
YHWorkExperienceItemView
()
itemView
.
dataSource
=
data
itemView
.
country
=
country
itemView
.
block
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
workExperienceBlock
{
block
(
model
)
}
}
itemView
.
companyBlock
=
{[
weak
self
]
company
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
companyBlock
{
block
(
company
)
}
var
h
=
51
if
data
?
.
id
==
.
id13
{
h
=
71
}
if
isShow
&&
message
.
count
==
0
{
h
=
h
+
20
}
let
itemView
=
YHWorkExperienceItemView
()
itemView
.
dataSource
=
data
itemView
.
country
=
country
itemView
.
block
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
workExperienceBlock
{
block
(
model
)
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
y
)
make
.
height
.
equalTo
(
h
)
make
.
right
.
equalTo
(
-
18
)
}
itemView
.
companyBlock
=
{[
weak
self
]
company
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
companyBlock
{
block
(
company
)
}
y
=
y
+
h
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
y
)
make
.
height
.
equalTo
(
h
)
make
.
right
.
equalTo
(
-
18
)
}
y
=
y
+
h
if
i
==
1
{
let
view
=
YHWorkExperienceSelectView
(
frame
:
CGRect
(
x
:
0
,
y
:
y
,
width
:
Int
(
KScreenWidth
)
-
32
,
height
:
386
))
view
.
dataSource
=
selectDataSource
mainItemView
.
addSubview
(
view
)
// itemView.snp.makeConstraints { make in
// make.left.equalTo(18)
// make.top.equalTo(y)
// make.height.equalTo(386)
// make.right.equalTo(-18)
// }
y
=
y
+
386
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
View file @
9c8519f4
...
...
@@ -19,53 +19,12 @@ class YHWorkExperienceViewModel: YHBaseViewModel {
}
func
getBaseDataSource
(
_
isShowPrompt
:
Bool
)
->
[
YHSectionWorkExperienceModel
]
{
let
item
=
YHWorkExperienceModel
(
id
:
.
id1
,
isNeed
:
true
,
title
:
"用人单位"
,
isUserKeyBoard
:
false
,
prompts
:
"请输入"
,
message
:
mainModel
.
company_name
,
type
:
.
unit
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入用人单位"
)
let
item1
=
YHWorkExperienceModel
(
id
:
.
id2
,
isNeed
:
true
,
title
:
"用人单位性质"
,
isUserKeyBoard
:
false
,
prompts
:
"请输入"
,
message
:
mainModel
.
industry
,
type
:
.
nature
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择用人单位性质"
)
let
item2
=
YHWorkExperienceModel
(
id
:
.
id3
,
isNeed
:
false
,
title
:
"用人单位介绍"
,
isUserKeyBoard
:
true
,
prompts
:
"如方便提供,请填写"
,
message
:
mainModel
.
company_introduce
)
let
item3
=
YHWorkExperienceModel
(
id
:
.
id4
,
isNeed
:
false
,
title
:
"用人单位官网"
,
isUserKeyBoard
:
true
,
prompts
:
"如有,请输入官网链接"
,
message
:
mainModel
.
company_website
)
let
item4
=
YHWorkExperienceModel
(
id
:
.
id5
,
isNeed
:
true
,
title
:
"工作国家/地区"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
location
.
country
,
type
:
.
country
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择工作国家/地区"
)
var
string
=
""
let
array
=
mainModel
.
location
.
area
for
item
in
array
{
if
string
.
count
!=
0
{
string
=
string
+
"/"
+
item
}
else
{
string
=
string
+
item
}
}
let
item5
=
YHWorkExperienceModel
(
id
:
.
id6
,
isNeed
:
true
,
title
:
"工作城市"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
string
,
type
:
.
address
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择工作国家/地区"
)
let
item55
=
YHWorkExperienceModel
(
id
:
.
id7
,
isNeed
:
true
,
title
:
"工作城市"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
mainModel
.
location
.
foreign
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入工作国家/地区"
)
let
item6
=
YHWorkExperienceModel
(
id
:
.
id8
,
isNeed
:
true
,
title
:
"职位"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
mainModel
.
position
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入职位"
)
let
item7
=
YHWorkExperienceModel
(
id
:
.
id9
,
isNeed
:
true
,
title
:
"入职年月"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
entry_time
,
type
:
.
time
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择入职年月"
)
let
item8
=
YHWorkExperienceModel
(
id
:
.
id10
,
isNeed
:
true
,
title
:
"离职年月"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
departure_time
,
type
:
.
time
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择离职年月"
)
let
item9
=
YHWorkExperienceModel
(
id
:
.
id11
,
isNeed
:
true
,
title
:
"工作证明文件"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
work_certificate
,
type
:
.
certificate
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择工作证明文件"
)
let
item10
=
YHWorkExperienceModel
(
id
:
.
id12
,
isNeed
:
true
,
title
:
"职责性质"
,
isUserKeyBoard
:
true
,
prompts
:
"请选择"
,
message
:
mainModel
.
duty
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入职责性质"
)
let
item11
=
YHWorkExperienceModel
(
id
:
.
id13
,
isNeed
:
false
,
title
:
"相关工作经验是否属于国际工作经验"
,
isUserKeyBoard
:
false
,
prompts
:
""
,
message
:
"
\(
mainModel
.
international_work_experience
)
"
,
leftButtonString
:
"是"
,
rightButtonString
:
"否"
)
let
addressCountry
=
mainModel
.
location
.
country
let
item
=
YHWorkExperienceModel
(
id
:
.
id1
,
isNeed
:
true
,
title
:
"用人单位"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
mainModel
.
company_name
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入"
)
let
item1
=
YHWorkExperienceModel
(
id
:
.
id2
,
isNeed
:
true
,
title
:
"公司基本情况"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
industry
,
type
:
.
nature
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择"
)
let
item2
=
YHWorkExperienceModel
(
id
:
.
id19
,
isNeed
:
true
,
title
:
"职位水平类别"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
"
\(
mainModel
.
professional_level
)
"
,
type
:
.
level
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择"
)
var
section
=
YHSectionWorkExperienceModel
()
if
addressCountry
.
contains
(
"中国"
)
{
section
=
YHSectionWorkExperienceModel
(
title
:
"企业信息"
,
models
:
[
item
,
item1
,
item2
,
item3
,
item4
,
item5
,
item6
,
item7
,
item8
,
item9
,
item10
,
item11
])
}
else
{
section
=
YHSectionWorkExperienceModel
(
title
:
"企业信息"
,
models
:
[
item
,
item1
,
item2
,
item3
,
item4
,
item55
,
item6
,
item7
,
item8
,
item9
,
item10
,
item11
])
}
let
item12
=
YHWorkExperienceModel
(
id
:
.
id14
,
isNeed
:
true
,
title
:
"企业人数规模"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
"
\(
mainModel
.
company_member_total
)
"
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入企业人数规模"
)
let
item13
=
YHWorkExperienceModel
(
id
:
.
id15
,
isNeed
:
false
,
title
:
"行政架构层级"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
"
\(
mainModel
.
administrative_level
)
"
,
type
:
.
structure
)
let
item14
=
YHWorkExperienceModel
(
id
:
.
id16
,
isNeed
:
true
,
title
:
"下属管理人数"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
"
\(
mainModel
.
company_manage_total
)
"
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入下属管理人数"
)
let
item15
=
YHWorkExperienceModel
(
id
:
.
id17
,
isNeed
:
false
,
title
:
"公司营业额/港元 (近一年)"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入具体数字"
,
message
:
"
\(
mainModel
.
turnover
)
"
)
let
item16
=
YHWorkExperienceModel
(
id
:
.
id18
,
isNeed
:
false
,
title
:
"公司业务性质/范畴/所属行业"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入,100字内"
,
message
:
mainModel
.
business_nature
)
let
item17
=
YHWorkExperienceModel
(
id
:
.
id19
,
isNeed
:
true
,
title
:
"职位水平类别"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
"
\(
mainModel
.
professional_level
)
"
,
type
:
.
level
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择职位水平类别"
)
let
item18
=
YHWorkExperienceModel
(
id
:
.
id20
,
isNeed
:
true
,
title
:
"高管证明文件"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
executives_certificate
,
type
:
.
prove
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择高管证明文件"
)
let
item19
=
YHWorkExperienceModel
(
id
:
.
id21
,
isNeed
:
true
,
title
:
"高管在职开始时间"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
top_manager_start_at
,
type
:
.
time
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择高管在职开始时间"
)
let
item20
=
YHWorkExperienceModel
(
id
:
.
id22
,
isNeed
:
true
,
title
:
"高管在职结束时间"
,
isUserKeyBoard
:
false
,
prompts
:
"请选择"
,
message
:
mainModel
.
top_manager_end_at
,
type
:
.
time
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择高管在职结束时间"
)
var
section1
=
YHSectionWorkExperienceModel
()
if
mainModel
.
professional_level
==
1
{
section1
=
YHSectionWorkExperienceModel
(
title
:
"企业规模"
,
models
:
[
item12
,
item13
,
item14
,
item15
,
item16
,
item17
,
item18
,
item19
,
item20
])
}
else
{
section1
=
YHSectionWorkExperienceModel
(
title
:
"企业规模"
,
models
:
[
item12
,
item13
,
item14
,
item15
,
item16
,
item17
])
}
return
[
section
,
section1
]
section
=
YHSectionWorkExperienceModel
(
title
:
"企业信息"
,
models
:
[
item
,
item1
,
item2
])
return
[
section
]
}
func
updateModel
(
_
item
:
YHWorkExperienceModel
)
{
...
...
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