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
163f57e5
Commit
163f57e5
authored
Nov 23, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
母语的 提示
parent
2edd8250
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
YHOtherLanguageSelecteView.swift
...OtherInformation(其他信息)/V/YHOtherLanguageSelecteView.swift
+3
-0
YHOtherMultipleChoiceItemView.swift
...erInformation(其他信息)/V/YHOtherMultipleChoiceItemView.swift
+0
-1
YHSingleOptionalItemsView.swift
.../OtherInformation(其他信息)/V/YHSingleOptionalItemsView.swift
+30
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/OtherInformation(其他信息)/V/YHOtherLanguageSelecteView.swift
View file @
163f57e5
...
@@ -157,6 +157,7 @@ extension YHOtherLanguageSelecteView {
...
@@ -157,6 +157,7 @@ extension YHOtherLanguageSelecteView {
//对应的选项 view
//对应的选项 view
let
optionView
=
YHSingleOptionalItemsView
()
let
optionView
=
YHSingleOptionalItemsView
()
optionView
.
arrCompare
=
dataModel
optionView
.
dataModel
=
item
optionView
.
dataModel
=
item
mutilHoldView
.
addSubview
(
optionView
)
mutilHoldView
.
addSubview
(
optionView
)
optionView
.
snp
.
makeConstraints
{
make
in
optionView
.
snp
.
makeConstraints
{
make
in
...
@@ -204,6 +205,8 @@ extension YHOtherLanguageSelecteView {
...
@@ -204,6 +205,8 @@ extension YHOtherLanguageSelecteView {
let
optionView
=
arrLanguageOptions
[
index
]
let
optionView
=
arrLanguageOptions
[
index
]
optionView
.
needCheckFlag
=
needCheckFlag
optionView
.
needCheckFlag
=
needCheckFlag
optionView
.
arrCompare
=
dataModel
optionView
.
dataModel
=
item
optionView
.
dataModel
=
item
if
index
==
0
{
if
index
==
0
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/OtherInformation(其他信息)/V/YHOtherMultipleChoiceItemView.swift
View file @
163f57e5
...
@@ -33,7 +33,6 @@ class YHOtherMultipleChoiceItemView: UIView {
...
@@ -33,7 +33,6 @@ class YHOtherMultipleChoiceItemView: UIView {
}
}
}
}
private
lazy
var
titleLabel
:
UILabel
=
{
private
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
.
mainTextColor
label
.
textColor
=
.
mainTextColor
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/OtherInformation(其他信息)/V/YHSingleOptionalItemsView.swift
View file @
163f57e5
...
@@ -85,6 +85,8 @@ class YHSingleOptionalItemsView: UIView {
...
@@ -85,6 +85,8 @@ class YHSingleOptionalItemsView: UIView {
}
}
}
}
var
arrCompare
:
[
LanguageDetailModel
]
=
[]
private
var
arrHoldView
:
[
YHOtherSingleChoiceItemView
]
=
[]
private
var
arrHoldView
:
[
YHOtherSingleChoiceItemView
]
=
[]
...
@@ -291,6 +293,34 @@ private extension YHSingleOptionalItemsView {
...
@@ -291,6 +293,34 @@ private extension YHSingleOptionalItemsView {
}
}
let
clickIndex
=
gestureRecognizer
.
view
?
.
tag
let
clickIndex
=
gestureRecognizer
.
view
?
.
tag
if
clickIndex
==
0
{
//判断母语
if
!
model
.
options
.
isEmpty
{
let
item
=
model
.
options
[
0
]
if
!
item
.
select
{
//判断其他 语言是不是选了 母语
var
hasSelected
:
Bool
=
false
for
(
_
,
item
)
in
arrCompare
.
enumerated
()
{
if
item
.
id
!=
model
.
id
{
for
(
_
,
tt
)
in
item
.
options
.
enumerated
()
{
if
tt
.
id
==
1
{
if
tt
.
select
{
hasSelected
=
true
}
}
}
}
}
if
hasSelected
{
YHHUD
.
flash
(
message
:
"只能选择一种语言为母语"
)
return
}
}
}
}
for
(
index
,
item
)
in
model
.
options
.
enumerated
()
{
for
(
index
,
item
)
in
model
.
options
.
enumerated
()
{
if
clickIndex
==
index
{
if
clickIndex
==
index
{
if
!
item
.
select
{
if
!
item
.
select
{
...
...
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