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
7ea30b89
Commit
7ea30b89
authored
Mar 14, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控制 100 字符限制
parent
c6f8e424
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
11 deletions
+46
-11
YHItemView.swift
...信息流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
+4
-3
YHOtherTextViewItemView.swift
...程)/OtherInformation(其他信息)/V/YHOtherTextViewItemView.swift
+1
-1
YHCompanySelectViewController.swift
...orkExperience(工作经验)/C/YHCompanySelectViewController.swift
+10
-0
YHWorkIntroductionViewController.swift
...Experience(工作经验)/C/YHWorkIntroductionViewController.swift
+4
-0
YHWorkExperienceItemView.swift
...流程)/WorkExperience(工作经验)/V/YHWorkExperienceItemView.swift
+22
-2
YHInformationFillTipsAlertView.swift
...igentService(服务中心)/V/YHInformationFillTipsAlertView.swift
+5
-5
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
View file @
7ea30b89
...
...
@@ -476,15 +476,16 @@ extension YHItemView: UITextFieldDelegate {
func
textField
(
_
textField
:
UITextField
,
shouldChangeCharactersIn
range
:
NSRange
,
replacementString
string
:
String
)
->
Bool
{
var
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
if
(
dataSource
?
.
id
==
.
id
9
||
dataSource
?
.
id
==
.
id
21
||
dataSource
?
.
id
==
.
id22
||
dataSource
?
.
id
==
.
id23
)
&&
newText
.
count
>
30
{
if
(
dataSource
?
.
id
==
.
id21
||
dataSource
?
.
id
==
.
id22
||
dataSource
?
.
id
==
.
id23
)
&&
newText
.
count
>
30
{
return
false
}
if
(
dataSource
?
.
id
==
.
id4
||
dataSource
?
.
id
==
.
id32
||
dataSource
?
.
id
==
.
id13
||
dataSource
?
.
id
==
.
id
18
||
dataSource
?
.
id
==
.
id32
)
&&
newText
.
count
>
100
{
if
(
dataSource
?
.
id
==
.
id4
||
dataSource
?
.
id
==
.
id32
||
dataSource
?
.
id
==
.
id13
||
dataSource
?
.
id
==
.
id
32
||
dataSource
?
.
id
==
.
id26
||
dataSource
?
.
id
==
.
id34
)
&&
newText
.
count
>
100
{
return
false
}
if
(
dataSource
?
.
id
==
.
id12
||
dataSource
?
.
id
==
.
id17
||
dataSource
?
.
id
==
.
id30
)
&&
newText
.
count
>
50
{
if
(
dataSource
?
.
id
==
.
id12
||
dataSource
?
.
id
==
.
id17
||
dataSource
?
.
id
==
.
id30
||
dataSource
?
.
id
==
.
id9
||
dataSource
?
.
id
==
.
id13
||
dataSource
?
.
id
==
.
id18
)
&&
newText
.
count
>
50
{
return
false
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/OtherInformation(其他信息)/V/YHOtherTextViewItemView.swift
View file @
7ea30b89
...
...
@@ -158,7 +158,7 @@ extension YHOtherTextViewItemView : UITextFieldDelegate {
func
textView
(
_
textView
:
UITextView
,
shouldChangeTextIn
range
:
NSRange
,
replacementText
text
:
String
)
->
Bool
{
if
!
text
.
isEmpty
{
if
textView
.
text
.
count
>
999
{
if
textView
.
text
.
count
>
1
999
{
return
false
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHCompanySelectViewController.swift
View file @
7ea30b89
...
...
@@ -166,6 +166,16 @@ extension YHCompanySelectViewController: UITextFieldDelegate {
textField
.
text
=
""
return
true
}
func
textField
(
_
textField
:
UITextField
,
shouldChangeCharactersIn
range
:
NSRange
,
replacementString
string
:
String
)
->
Bool
{
if
string
.
count
>
0
{
let
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
if
newText
.
count
>
100
{
return
false
}
}
return
true
}
}
extension
YHCompanySelectViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkIntroductionViewController.swift
View file @
7ea30b89
...
...
@@ -329,6 +329,10 @@ extension YHWorkIntroductionViewController: UITextFieldDelegate {
func
textField
(
_
textField
:
UITextField
,
shouldChangeCharactersIn
range
:
NSRange
,
replacementString
string
:
String
)
->
Bool
{
let
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
if
newText
.
count
>
100
{
return
false
}
dataSource
.
project_name
=
newText
return
true
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/V/YHWorkExperienceItemView.swift
View file @
7ea30b89
...
...
@@ -476,7 +476,7 @@ extension YHWorkExperienceItemView: UITextFieldDelegate {
func
textField
(
_
textField
:
UITextField
,
shouldChangeCharactersIn
range
:
NSRange
,
replacementString
string
:
String
)
->
Bool
{
let
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
if
(
dataSource
?
.
id
==
.
id1
||
dataSource
?
.
id
==
.
id7
||
dataSource
?
.
id
==
.
id8
||
dataSource
?
.
id
==
.
id12
||
dataSource
?
.
id
==
.
id14
||
dataSource
?
.
id
==
.
id16
||
dataSource
?
.
id
==
.
id18
)
&&
newText
.
count
>
1
00
{
if
(
dataSource
?
.
id
==
.
id1
||
dataSource
?
.
id
==
.
id7
||
dataSource
?
.
id
==
.
id8
||
dataSource
?
.
id
==
.
id12
||
dataSource
?
.
id
==
.
id14
||
dataSource
?
.
id
==
.
id16
||
dataSource
?
.
id
==
.
id18
)
&&
newText
.
count
>
1
{
return
false
}
...
...
@@ -488,10 +488,30 @@ extension YHWorkExperienceItemView: UITextFieldDelegate {
return
false
}
if
dataSource
?
.
id
==
.
id17
&&
newText
.
count
>
10
{
if
dataSource
?
.
id
==
.
id17
&&
newText
.
count
>
14
{
//10万亿元 100000 000000000
// let target = 100000000000000
// if let value = Int64(newText) {
// if value > target {
// return false
// }
// } else {
// return false
// }
return
false
}
if
dataSource
?
.
id
==
.
id12
&&
newText
.
count
>
50
{
return
false
}
if
(
dataSource
?
.
id
==
.
id14
||
dataSource
?
.
id
==
.
id16
||
dataSource
?
.
id
==
.
id18
)
&&
newText
.
count
>
100
{
return
false
}
var
data
=
dataSource
??
YHWorkExperienceModel
()
data
.
message
=
newText
if
let
block
=
block
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHInformationFillTipsAlertView.swift
View file @
7ea30b89
...
...
@@ -161,25 +161,25 @@ class YHInformationFillTipsAlertView: UIView {
let
lable01
=
UILabel
(
text
:
"信息填写提示"
)
lable01
.
textAlignment
=
.
center
lable01
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
lable01
.
textColor
=
UIColor
.
mainTextColor
topView
.
addSubview
(
lable01
)
lable01
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
21
)
make
.
right
.
equalTo
(
-
21
)
make
.
top
.
equalTo
(
16
)
make
.
top
.
equalTo
(
kMargin
)
make
.
centerX
.
equalToSuperview
()
make
.
height
.
equalTo
(
24
)
}
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
(
hexString
:
"#F0F0F0"
)
line
.
backgroundColor
=
UIColor
.
separatorColor
topView
.
addSubview
(
line
)
line
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
lable01
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
equalTo
(
21
)
make
.
right
.
equalTo
(
-
21
)
make
.
top
.
equalTo
(
lable01
.
snp
.
bottom
)
.
offset
(
12
)
make
.
height
.
equalTo
(
0.5
)
make
.
bottom
.
equalToSuperview
()
}
...
...
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