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
c54526c9
Commit
c54526c9
authored
Nov 16, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qmas-1130' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into qmas-1130
parents
ca8c0fa2
0e6ece70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
168 additions
and
1 deletion
+168
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHWorkExperiencePositionItemView.swift
...Experience(工作经验)/V/YHWorkExperiencePositionItemView.swift
+163
-0
YHWorkExperiencePositionTableViewCell.swift
...ience(工作经验)/V/YHWorkExperiencePositionTableViewCell.swift
+1
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
c54526c9
...
...
@@ -17,6 +17,7 @@
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 */
;
};
040AE9842CE893CC00310241
/* YHWorkExperiencePositionItemView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040AE9832CE893CC00310241
/* YHWorkExperiencePositionItemView.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 */
;
};
...
...
@@ -1025,6 +1026,7 @@
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>"
;
};
040AE9832CE893CC00310241
/* YHWorkExperiencePositionItemView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWorkExperiencePositionItemView.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>"
;
};
...
...
@@ -2947,6 +2949,7 @@
040AE97D2CE7464000310241
/* YHWorkExperiencePositionListTableViewCell.swift */
,
040AE97F2CE8340000310241
/* YHWorkExperiencePositionReasonTableViewCell.swift */
,
040AE9812CE8810200310241
/* YHWorkExperienceSelectView.swift */
,
040AE9832CE893CC00310241
/* YHWorkExperiencePositionItemView.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -5692,6 +5695,7 @@
04CCEDF92CA0FD5F0026EA70
/* YHHKImmigrationRecordsSummaryModel.swift in Sources */
,
0430E6882C771B06000511E2
/* YHAdopterItemView.swift in Sources */
,
045EEEB32B9F171A0022A143
/* YHWorkFileSyncTableViewCell.swift in Sources */
,
040AE9842CE893CC00310241
/* YHWorkExperiencePositionItemView.swift in Sources */
,
045EEEF12B9F171A0022A143
/* YHChildInfoContainerVC.swift in Sources */
,
04CA2BFD2CB7C36D00F36DE7
/* YHResignUploadDocListCell.swift in Sources */
,
045EEF0B2B9F171A0022A143
/* YHBasicInfoFillViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkExperiencePositionItemView.swift
0 → 100644
View file @
c54526c9
//
// YHWorkExperiencePositionItemView.swift
// galaxy
//
// Created by EDY on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHWorkExperiencePositionItemView
:
UIView
{
typealias
ItemBlock
=
(
_
model
:
YHWorkItemListModel
)
->
()
var
clickBlock
:
ItemBlock
?
var
deleteBlock
:
ItemBlock
?
var
titleLabel
:
UILabel
!
var
subTitleLabel
:
UILabel
!
var
explainLabel
:
UILabel
!
var
nextStepImageView
:
UIImageView
!
var
deleteButton
:
UIButton
!
var
centerButton
:
UIButton
!
var
showPrompt
:
Bool
=
false
{
didSet
{
if
showPrompt
{
if
dataSource
?
.
vacant_num
!=
0
{
subTitleLabel
.
text
=
"有"
+
"
\(
dataSource
?
.
vacant_num
??
0
)
"
+
"项未填写"
subTitleLabel
.
textColor
=
UIColor
.
failColor
}
else
{
subTitleLabel
.
textColor
=
UIColor
.
labelTextColor2
}
}
else
{
subTitleLabel
.
textColor
=
UIColor
.
labelTextColor2
}
}
}
var
dataSource
:
YHWorkItemListModel
?
{
didSet
{
updateAllViews
()
}
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
.
white
setUpView
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setUpView
()
{
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
14
)
label
.
textAlignment
=
.
left
label
.
numberOfLines
=
2
label
.
textColor
=
UIColor
.
mainTextColor
return
label
}()
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
make
.
top
.
equalTo
(
16
)
make
.
width
.
equalTo
(
143
)
}
explainLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textAlignment
=
.
right
label
.
textColor
=
UIColor
.
labelTextColor2
return
label
}()
addSubview
(
explainLabel
)
explainLabel
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
24
)
make
.
left
.
equalTo
(
titleLabel
.
snp
.
right
)
make
.
height
.
equalTo
(
20
)
make
.
top
.
equalTo
(
16
)
}
nextStepImageView
=
{
let
imageView
=
UIImageView
()
imageView
.
image
=
UIImage
(
named
:
"form_right_arrow"
)
return
imageView
}()
addSubview
(
nextStepImageView
)
nextStepImageView
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalToSuperview
()
make
.
centerY
.
equalTo
(
explainLabel
.
snp
.
centerY
)
make
.
height
.
width
.
equalTo
(
20
)
}
centerButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
addTarget
(
self
,
action
:
#selector(
centerClick
)
,
for
:
.
touchUpInside
)
return
button
}()
addSubview
(
centerButton
)
centerButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
top
.
bottom
.
equalToSuperview
()
make
.
left
.
equalTo
(
112
)
}
deleteButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"删除"
,
for
:
.
normal
)
button
.
contentHorizontalAlignment
=
.
right
button
.
setTitleColor
(
UIColor
.
failColor
,
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
deleteClick
)
,
for
:
.
touchUpInside
)
button
.
isHidden
=
true
return
button
}()
addSubview
(
deleteButton
)
deleteButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
20
)
make
.
width
.
equalTo
(
35
)
make
.
centerY
.
equalTo
(
titleLabel
.
snp
.
centerY
)
}
}
func
updateAllViews
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
titleLabel
.
text
=
dataSource
.
company_name
if
dataSource
.
vacant_num
!=
0
{
explainLabel
.
text
=
"有"
+
"
\(
dataSource
.
vacant_num
??
0
)
"
+
"项未填写"
}
else
{
explainLabel
.
text
=
(
dataSource
.
entry_time
??
""
)
+
" ~ "
+
(
dataSource
.
departure_time
??
""
)
}
if
dataSource
.
company_name
?
.
count
==
0
{
titleLabel
.
text
=
"工作经验
\(
tag
-
4000
+
1
)
"
}
}
@objc
func
centerClick
()
{
if
let
block
=
clickBlock
{
block
(
self
.
dataSource
??
YHWorkItemListModel
())
}
}
@objc
func
deleteClick
()
{
if
let
block
=
deleteBlock
{
block
(
self
.
dataSource
??
YHWorkItemListModel
())
}
}
func
isShowDelete
(
_
index
:
Int
,
isShow
:
Bool
)
{
if
isShow
{
explainLabel
.
isHidden
=
true
nextStepImageView
.
isHidden
=
true
deleteButton
.
isHidden
=
false
}
else
{
explainLabel
.
isHidden
=
false
nextStepImageView
.
isHidden
=
false
deleteButton
.
isHidden
=
true
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkExperiencePositionTableViewCell.swift
View file @
c54526c9
...
...
@@ -196,7 +196,7 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell {
make
.
right
.
equalTo
(
-
18
)
}
total
=
total
+
1
let
itemView
=
YHWorkItemView
()
let
itemView
=
YHWork
ExperiencePosition
ItemView
()
itemView
.
clickBlock
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
clickBlock
{
...
...
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