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
3e32816d
Commit
3e32816d
authored
Mar 05, 2024
by
Steven杜宇
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 字数限制
parent
ab4fbb8c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
89 additions
and
3 deletions
+89
-3
YHChildBasicInfoVC.swift
...amilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
+26
-0
YHSpouseBasicInfoVC.swift
...ilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
+26
-1
YHBrotherInfoVC.swift
...Process(流程)/FamilyMember(家庭成员信息表)/C/YHBrotherInfoVC.swift
+17
-0
YHCertificateInfoController.swift
...FamilyMember(家庭成员信息表)/C/YHCertificateInfoController.swift
+0
-2
YHParentInfoVC.swift
...eProcess(流程)/FamilyMember(家庭成员信息表)/C/YHParentInfoVC.swift
+20
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
View file @
3e32816d
...
@@ -263,6 +263,32 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -263,6 +263,32 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
text
=
detailItem
.
value
cell
.
text
=
detailItem
.
value
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
textInputCondtion
=
{
textField
in
if
detailItem
.
type
==
.
befourMarryFirstName
{
// 仅支持输入最多30个大写字母
let
regex
=
"[^A-Z]+"
textField
.
limitInputWithPattern
(
pattern
:
regex
,
30
)
return
true
}
var
max
=
-
1
if
detailItem
.
type
==
.
childName
||
detailItem
.
type
==
.
everName
{
max
=
30
}
else
if
detailItem
.
type
==
.
birthCity
||
detailItem
.
type
==
.
occupationName
{
max
=
100
}
if
max
>
0
{
if
let
textStr
=
textField
.
text
{
textField
.
text
=
(
textStr
.
count
>
max
?
textStr
[
safe
:
..<
max
]
:
textStr
)
}
}
return
true
}
cell
.
textChange
=
{
cell
.
textChange
=
{
[
weak
self
]
(
text
,
isEditEnd
)
in
[
weak
self
]
(
text
,
isEditEnd
)
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
View file @
3e32816d
...
@@ -389,7 +389,32 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -389,7 +389,32 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
{
}
else
{
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
}
}
cell
.
textInputCondtion
=
{
textField
in
if
detailItem
.
type
==
.
befourMarryFirstName
{
// 仅支持输入最多30个大写字母
let
regex
=
"[^A-Z]+"
textField
.
limitInputWithPattern
(
pattern
:
regex
,
30
)
return
true
}
var
max
=
-
1
if
detailItem
.
type
==
.
spouseName
||
detailItem
.
type
==
.
everName
{
max
=
30
}
else
if
detailItem
.
type
==
.
birthCity
||
detailItem
.
type
==
.
occupationName
{
max
=
100
}
if
max
>
0
{
if
let
textStr
=
textField
.
text
{
textField
.
text
=
(
textStr
.
count
>
max
?
textStr
[
safe
:
..<
max
]
:
textStr
)
}
}
return
true
}
cell
.
textChange
=
{
cell
.
textChange
=
{
[
weak
self
]
(
text
,
isEditEnd
)
in
[
weak
self
]
(
text
,
isEditEnd
)
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHBrotherInfoVC.swift
View file @
3e32816d
...
@@ -234,6 +234,23 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -234,6 +234,23 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
{
}
else
{
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
}
}
cell
.
textInputCondtion
=
{
textField
in
var
max
=
-
1
if
detailItem
.
type
==
.
brotherName
{
max
=
30
}
else
if
detailItem
.
type
==
.
birthCity
{
max
=
100
}
if
max
>
0
{
if
let
textStr
=
textField
.
text
{
textField
.
text
=
(
textStr
.
count
>
max
?
textStr
[
safe
:
..<
max
]
:
textStr
)
}
}
return
true
}
cell
.
textChange
=
{
cell
.
textChange
=
{
[
weak
self
]
(
text
,
isEditEnd
)
in
[
weak
self
]
(
text
,
isEditEnd
)
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHCertificateInfoController.swift
View file @
3e32816d
...
@@ -171,8 +171,6 @@ extension YHCertificateInfoController : UITableViewDelegate, UITableViewDataSour
...
@@ -171,8 +171,6 @@ extension YHCertificateInfoController : UITableViewDelegate, UITableViewDataSour
textField
.
text
=
(
textStr
.
count
>
max
?
textStr
[
safe
:
..<
max
]
:
textStr
)
textField
.
text
=
(
textStr
.
count
>
max
?
textStr
[
safe
:
..<
max
]
:
textStr
)
}
}
}
}
return
true
return
true
}
}
cell
.
textChange
=
{
cell
.
textChange
=
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHParentInfoVC.swift
View file @
3e32816d
...
@@ -276,6 +276,26 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -276,6 +276,26 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
{
}
else
{
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
}
}
cell
.
textInputCondtion
=
{
textField
in
var
max
=
-
1
if
detailItem
.
type
==
.
fatherName
||
detailItem
.
type
==
.
motherName
{
max
=
30
}
else
if
detailItem
.
type
==
.
birthCity
||
detailItem
.
type
==
.
occupationName
{
max
=
100
}
if
max
>
0
{
if
let
textStr
=
textField
.
text
{
textField
.
text
=
(
textStr
.
count
>
max
?
textStr
[
safe
:
..<
max
]
:
textStr
)
}
}
return
true
}
cell
.
textChange
=
{
cell
.
textChange
=
{
[
weak
self
]
(
text
,
isEditEnd
)
in
[
weak
self
]
(
text
,
isEditEnd
)
in
...
...
pete谢兆麟
@pete
mentioned in commit
34134a0f
·
Mar 05, 2024
mentioned in commit
34134a0f
mentioned in commit 34134a0fa5a4763e3f91d3a939f93a8c601138e2
Toggle commit list
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