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
889c4f54
Commit
889c4f54
authored
Aug 02, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的工作经验优化
parent
9e75179b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
YHWorkExperienceViewController.swift
...rkExperience(工作经验)/C/YHWorkExperienceViewController.swift
+45
-0
YHWorkHighlightsTableViewCell.swift
...orkExperience(工作经验)/V/YHWorkHighlightsTableViewCell.swift
+6
-0
YHWorkResponsibilitiesTableViewCell.swift
...erience(工作经验)/V/YHWorkResponsibilitiesTableViewCell.swift
+6
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkExperienceViewController.swift
View file @
889c4f54
...
@@ -22,6 +22,7 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -22,6 +22,7 @@ class YHWorkExperienceViewController: YHBaseViewController {
var
isMore
:
Bool
=
false
var
isMore
:
Bool
=
false
var
isShowPrompt
:
Bool
=
false
var
isShowPrompt
:
Bool
=
false
var
isShowMessageSelect
:
Bool
=
true
var
isShowMessageSelect
:
Bool
=
true
var
isKeyboardShow
:
Bool
=
false
var
selectEditItem
=
YHWorkExperienceFileModel
()
var
selectEditItem
=
YHWorkExperienceFileModel
()
var
renameInputView
:
YHFileRenameInputView
=
{
var
renameInputView
:
YHFileRenameInputView
=
{
let
view
=
YHFileRenameInputView
.
inputView
(
defalutText
:
"请输入名称"
)
let
view
=
YHFileRenameInputView
.
inputView
(
defalutText
:
"请输入名称"
)
...
@@ -250,6 +251,12 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -250,6 +251,12 @@ class YHWorkExperienceViewController: YHBaseViewController {
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
}
}
isKeyboardShow
=
true
let
rightButtonItem
=
UIBarButtonItem
(
title
:
"下一步"
,
style
:
.
plain
,
target
:
self
,
action
:
#selector(
nextStep
)
)
rightButtonItem
.
setTitleTextAttributes
([
.
foregroundColor
:
UIColor
.
brandMainColor
],
for
:
.
normal
)
rightButtonItem
.
setTitleTextAttributes
([
.
foregroundColor
:
UIColor
.
brandMainColor
],
for
:
.
highlighted
)
gk_navRightBarButtonItem
=
rightButtonItem
gk_navItemRightSpace
=
16
}
}
}
}
...
@@ -267,6 +274,34 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -267,6 +274,34 @@ class YHWorkExperienceViewController: YHBaseViewController {
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
}
}
isKeyboardShow
=
false
gk_navRightBarButtonItems
=
[]
}
}
@objc
func
nextStep
()
{
self
.
view
.
endEditing
(
true
)
if
self
.
viewModel
.
isCanNext
(
self
.
stepView
.
currentIndex
)
{
self
.
viewModel
.
mainModel
.
step
=
self
.
stepView
.
currentIndex
self
.
viewModel
.
saveWorkDetail
(
1
,
orderID
:
self
.
orderID
,
callBackBlock
:
{[
weak
self
]
flag
,
error
in
guard
let
self
=
self
else
{
return
}
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
YHHUD
.
hideFlashMessage
()
if
self
.
stepView
.
currentIndex
==
4
||
(
self
.
stepView
.
currentIndex
==
3
&&
self
.
viewModel
.
mainModel
.
is_project_introduction
==
0
)
{
YHHUD
.
flash
(
message
:
"提交成功"
)
self
.
navigationController
?
.
popViewController
()
}
else
{
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
updateDataSource
()
}
}
})
}
else
{
self
.
isShowPrompt
=
true
self
.
updateDataSource
()
YHHUD
.
flash
(
message
:
"您还有信息未填写"
)
}
}
}
}
...
@@ -859,3 +894,13 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -859,3 +894,13 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
return
0.01
return
0.01
}
}
}
}
extension
YHWorkExperienceViewController
:
UIScrollViewDelegate
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
if
isKeyboardShow
{
if
stepView
.
currentIndex
!=
0
{
self
.
view
.
endEditing
(
true
)
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkHighlightsTableViewCell.swift
View file @
889c4f54
...
@@ -238,3 +238,9 @@ extension YHWorkHighlightsTableViewCell: UITextViewDelegate {
...
@@ -238,3 +238,9 @@ extension YHWorkHighlightsTableViewCell: UITextViewDelegate {
return
newLength
<=
2000
return
newLength
<=
2000
}
}
}
}
extension
YHWorkHighlightsTableViewCell
:
UIScrollViewDelegate
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
UIViewController
.
current
()
.
view
.
endEditing
(
true
)
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkResponsibilitiesTableViewCell.swift
View file @
889c4f54
...
@@ -190,3 +190,9 @@ extension YHWorkResponsibilitiesTableViewCell: UITextViewDelegate {
...
@@ -190,3 +190,9 @@ extension YHWorkResponsibilitiesTableViewCell: UITextViewDelegate {
return
newLength
<=
2000
return
newLength
<=
2000
}
}
}
}
extension
YHWorkResponsibilitiesTableViewCell
:
UIScrollViewDelegate
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
UIViewController
.
current
()
.
view
.
endEditing
(
true
)
}
}
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