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
6cd7d132
Commit
6cd7d132
authored
Mar 07, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 家庭成员
parent
48851957
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
YHChildPrimaryInfoVC.swift
...ilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
+4
-2
YHFormItemDoubleChoiceCell.swift
.../FamilyMember(家庭成员信息表)/V/YHFormItemDoubleChoiceCell.swift
+12
-6
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
View file @
6cd7d132
...
@@ -212,7 +212,8 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -212,7 +212,8 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemDoubleChoiceCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemDoubleChoiceCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemDoubleChoiceCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemDoubleChoiceCell
cell
.
isMust
=
detailItem
.
isNeed
cell
.
isMust
=
detailItem
.
isNeed
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
isCanEdit
=
true
cell
.
enableEdit
=
true
cell
.
disableEditTips
=
nil
var
select
=
false
var
select
=
false
if
let
value
=
detailItem
.
value
{
if
let
value
=
detailItem
.
value
{
...
@@ -221,7 +222,8 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -221,7 +222,8 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if
detailItem
.
type
==
.
isAccompanyToHK
,
let
child
=
child
,
child
.
is18YearsOld
()
{
// 是否随行至香港
if
detailItem
.
type
==
.
isAccompanyToHK
,
let
child
=
child
,
child
.
is18YearsOld
()
{
// 是否随行至香港
// 年满18岁不能随行 随行按钮不可编辑固定为否
// 年满18岁不能随行 随行按钮不可编辑固定为否
cell
.
isCanEdit
=
isFollowCanEdit
cell
.
enableEdit
=
isFollowCanEdit
cell
.
disableEditTips
=
"年满十八岁的子女不能随行至香港"
}
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
select
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
!
select
)]
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
select
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
!
select
)]
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/V/YHFormItemDoubleChoiceCell.swift
View file @
6cd7d132
...
@@ -39,12 +39,9 @@ class YHFormItemDoubleChoiceCell: UITableViewCell {
...
@@ -39,12 +39,9 @@ class YHFormItemDoubleChoiceCell: UITableViewCell {
var
isMust
:
Bool
=
false
var
isMust
:
Bool
=
false
var
answerBlock
:(([
YHFormChoiceItem
],
Int
)
->
Void
)?
var
answerBlock
:(([
YHFormChoiceItem
],
Int
)
->
Void
)?
// 是否能点击两个按钮
// 是否能点击两个按钮
var
isCanEdit
:
Bool
=
true
{
var
enableEdit
:
Bool
=
true
didSet
{
// 不能编辑时的提示语
answer1Btn
.
isUserInteractionEnabled
=
isCanEdit
var
disableEditTips
:
String
?
answer2Btn
.
isUserInteractionEnabled
=
isCanEdit
}
}
var
title
:
String
?
{
var
title
:
String
?
{
didSet
{
didSet
{
...
@@ -222,6 +219,15 @@ class YHFormItemDoubleChoiceCell: UITableViewCell {
...
@@ -222,6 +219,15 @@ class YHFormItemDoubleChoiceCell: UITableViewCell {
@objc
func
didClickResponseBtn
(
btn
:
UIButton
)
{
@objc
func
didClickResponseBtn
(
btn
:
UIButton
)
{
if
!
enableEdit
{
if
let
tips
=
disableEditTips
,
!
tips
.
isEmpty
{
YHHUD
.
flash
(
message
:
tips
)
}
else
{
YHHUD
.
flash
(
message
:
"不可点击"
)
}
return
}
let
selectIndex
=
btn
.
tag
-
answerBaseTag
let
selectIndex
=
btn
.
tag
-
answerBaseTag
if
let
resultArr
=
answerArr
,
resultArr
.
count
==
2
{
if
let
resultArr
=
answerArr
,
resultArr
.
count
==
2
{
...
...
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