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
ceb073c3
Commit
ceb073c3
authored
Nov 25, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作经验细节修复 真多细节
parent
a2963210
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
YHWorkExperienceViewController.swift
...rkExperience(工作经验)/C/YHWorkExperienceViewController.swift
+8
-6
YHWorkExperiencePositionTableViewCell.swift
...ience(工作经验)/V/YHWorkExperiencePositionTableViewCell.swift
+5
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkExperienceViewController.swift
View file @
ceb073c3
...
...
@@ -836,8 +836,8 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}
cell
.
newWorkBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
if
self
.
viewModel
.
positionList
.
count
==
5
{
YHHUD
.
flash
(
message
:
"新增职位不能超过
5
条"
)
if
self
.
viewModel
.
positionList
.
count
==
10
{
YHHUD
.
flash
(
message
:
"新增职位不能超过
10
条"
)
}
else
{
let
vc
=
YHWorkExperiencePositionViewViewController
()
vc
.
workID
=
workId
...
...
@@ -877,7 +877,7 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
var
height
=
23
+
154
for
item
in
viewModel
.
positionList
{
if
item
.
position_name
==
""
{
height
=
height
+
76
height
=
height
+
52
}
else
{
let
text
=
item
.
position_name
// 要显示的文本内容
let
font
=
UIFont
.
PFSC_B
(
ofSize
:
14
)
// 字体大小
...
...
@@ -890,13 +890,15 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
// 根据指定的最大宽度和字体大小计算文本的高度
let
size
=
(
text
as
NSString
)
.
boundingRect
(
with
:
CGSize
(
width
:
maxWidth
,
height
:
.
greatestFiniteMagnitude
),
options
:
.
usesLineFragmentOrigin
,
attributes
:
attributes
,
context
:
nil
)
.
size
if
size
.
height
>
20
{
height
=
height
+
96
height
=
height
+
72
}
else
{
height
=
height
+
76
height
=
height
+
52
}
}
if
isShowPrompt
&&
item
.
missing_item_num
!=
0
{
height
=
height
+
20
}
}
return
CGFloat
(
height
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkExperiencePositionTableViewCell.swift
View file @
ceb073c3
...
...
@@ -229,11 +229,14 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell {
// 根据指定的最大宽度和字体大小计算文本的高度
let
size
=
(
text
as
NSString
)
.
boundingRect
(
with
:
CGSize
(
width
:
maxWidth
,
height
:
.
greatestFiniteMagnitude
),
options
:
.
usesLineFragmentOrigin
,
attributes
:
attributes
,
context
:
nil
)
.
size
if
size
.
height
>
20
{
h
=
95
h
=
71
}
else
{
h
=
75
h
=
51
}
}
if
showPrompt
&&
model
.
missing_item_num
!=
0
{
h
=
h
+
20
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
...
...
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