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
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
16 deletions
+51
-16
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
YHInformationFillTipsCell.swift
...ntelligentService(服务中心)/V/YHInformationFillTipsCell.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
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHInformationFillTipsCell.swift
View file @
7ea30b89
...
...
@@ -57,7 +57,7 @@ extension YHInformationFillTipsCell {
}
//添加元素
let
lable0
=
UILabel
(
text
:
" 您好!欢迎来到香港优才申请系统,请按照实际情况填写。"
)
let
lable0
=
UILabel
(
text
:
"
您好!欢迎来到香港优才申请系统,请按照实际情况填写。"
)
lable0
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
lable0
.
textColor
=
UIColor
.
mainTextColor
lable0
.
numberOfLines
=
0
...
...
@@ -70,12 +70,12 @@ extension YHInformationFillTipsCell {
}
let
lable1
=
UILabel
(
text
:
" 1. 如您填写途中想离开系统,记得点击保存,在您有空闲的时间再继续进行填写;"
)
let
lable1
=
UILabel
(
text
:
"
1. 如您填写途中想离开系统,记得点击保存,在您有空闲的时间再继续进行填写;"
)
lable1
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
lable1
.
textColor
=
UIColor
.
mainTextColor
lable1
.
numberOfLines
=
0
lable1
.
lineBreakMode
=
.
byWordWrapping
let
a
:
ASAttributedString
=
.
init
(
" 1. 如您填写途中想离开系统,"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
a
:
ASAttributedString
=
.
init
(
"
1. 如您填写途中想离开系统,"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"记得点击保存"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
c
:
ASAttributedString
=
.
init
(
",在您有空闲的时间再继续进行填写;"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
lable1
.
attributed
.
text
=
a
+
b
+
c
...
...
@@ -86,13 +86,13 @@ extension YHInformationFillTipsCell {
make
.
left
.
right
.
equalToSuperview
()
}
let
lable2
=
UILabel
(
text
:
" 2. 此次填写将花费您30-40分钟,系统将根据您所填写的信息,形成详细资料清单,一起为香港身份起航吧~"
)
let
lable2
=
UILabel
(
text
:
"
2. 此次填写将花费您30-40分钟,系统将根据您所填写的信息,形成详细资料清单,一起为香港身份起航吧~"
)
lable2
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
lable2
.
textColor
=
UIColor
.
mainTextColor
lable2
.
numberOfLines
=
0
lable2
.
lineBreakMode
=
.
byWordWrapping
let
aa
:
ASAttributedString
=
.
init
(
" 2. 此次填写将花费您"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
aa
:
ASAttributedString
=
.
init
(
"
2. 此次填写将花费您"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"30-40分钟"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
cc
:
ASAttributedString
=
.
init
(
",系统将根据您所填写的信息,形成详细资料清单,一起为香港身份起航吧~"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
lable2
.
attributed
.
text
=
aa
+
bb
+
cc
...
...
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