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
dead7bbc
Commit
dead7bbc
authored
Dec 31, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复主申请人bug
parent
42c5890a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
+24
-14
YHlifeCollectionReusableView.swift
...es/Home(首页)/Life(生活)/V/YHlifeCollectionReusableView.swift
+1
-1
YHLiveModel.swift
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHLiveModel.swift
+1
-0
YHItemView.swift
...信息流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
+7
-2
YHGCMainApplicantInformationViewModel.swift
...on(主申请人信息)/VM/YHGCMainApplicantInformationViewModel.swift
+15
-11
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/Life(生活)/V/YHlifeCollectionReusableView.swift
View file @
dead7bbc
...
@@ -192,7 +192,7 @@ class YHlifeCollectionReusableViewTableViewCell: UITableViewCell {
...
@@ -192,7 +192,7 @@ class YHlifeCollectionReusableViewTableViewCell: UITableViewCell {
guard
let
dataSource
=
dataSource
else
{
return
}
guard
let
dataSource
=
dataSource
else
{
return
}
self
.
titleLabel
.
text
=
dataSource
.
title
self
.
titleLabel
.
text
=
dataSource
.
title
self
.
subTitleLabel
.
text
=
dataSource
.
account
self
.
subTitleLabel
.
text
=
dataSource
.
account
self
.
timelabel
.
text
=
dataSource
.
start_time
self
.
timelabel
.
text
=
dataSource
.
time_appointment
flagLabel
.
isHidden
=
false
flagLabel
.
isHidden
=
false
actionButton
.
isSelected
=
dataSource
.
is_schedule_live
actionButton
.
isSelected
=
dataSource
.
is_schedule_live
guard
let
url
=
URL
(
string
:
dataSource
.
image
)
else
{
return
}
guard
let
url
=
URL
(
string
:
dataSource
.
image
)
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHLiveModel.swift
View file @
dead7bbc
...
@@ -32,6 +32,7 @@ class YHLiveListModel: SmartCodable {
...
@@ -32,6 +32,7 @@ class YHLiveListModel: SmartCodable {
var
account
:
String
=
""
var
account
:
String
=
""
var
image
:
String
=
""
var
image
:
String
=
""
var
is_schedule_live
:
Bool
=
false
var
is_schedule_live
:
Bool
=
false
var
time_appointment
:
String
=
""
required
init
()
{
required
init
()
{
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
View file @
dead7bbc
...
@@ -482,8 +482,13 @@ class YHItemView: UIView {
...
@@ -482,8 +482,13 @@ class YHItemView: UIView {
title
=
"请选择出生日期"
title
=
"请选择出生日期"
isLastDay
=
true
isLastDay
=
true
}
}
var
type
:
YHDateType
=
.
yyyymmdd
YHDatePickView
.
show
(
type
:
.
yyyymmdd
,
title
:
title
,
lastIsTaday
:
isLastDay
,
currentDay
:
dataSource
?
.
message
??
""
)
{
date
in
if
dataSource
?
.
id
==
.
id41
{
title
=
"海外居留开始时间"
isLastDay
=
true
type
=
.
yyyymm
}
YHDatePickView
.
show
(
type
:
type
,
title
:
title
,
lastIsTaday
:
isLastDay
,
currentDay
:
dataSource
?
.
message
??
""
)
{
date
in
self
.
dataSource
?
.
message
=
date
self
.
dataSource
?
.
message
=
date
self
.
updateAllViews
()
self
.
updateAllViews
()
if
let
block
=
self
.
block
{
if
let
block
=
self
.
block
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/VM/YHGCMainApplicantInformationViewModel.swift
View file @
dead7bbc
...
@@ -48,12 +48,12 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
...
@@ -48,12 +48,12 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
if
nationality
.
contains
(
"中国"
)
&&
!
addressCountry
.
contains
(
"中国"
)
{
if
nationality
.
contains
(
"中国"
)
&&
!
addressCountry
.
contains
(
"中国"
)
{
if
have_permanent_residency
==
1
{
if
have_permanent_residency
==
1
{
return
[
section
,
section111
,
section2
]
return
[
section
,
section111
]
}
else
if
have_permanent_residency
==
0
{
}
else
if
have_permanent_residency
==
0
{
if
isOneYearAgo
(
yearMonth
:
mainModel
.
residence_time
)
{
if
isOneYearAgo
(
yearMonth
:
mainModel
.
residence_time
)
{
return
[
section
,
section1111
,
section2
]
}
else
{
return
[
section
,
section1111
]
return
[
section
,
section1111
]
}
else
{
return
[
section
,
section1111
,
section2
]
}
}
}
else
{
}
else
{
return
[
section
,
section111
]
return
[
section
,
section111
]
...
@@ -395,23 +395,27 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
...
@@ -395,23 +395,27 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
}
}
func
isOneYearAgo
(
yearMonth
:
String
)
->
Bool
{
func
isOneYearAgo
(
yearMonth
:
String
)
->
Bool
{
// 创建日期格式化器
let
dateFormatter
=
DateFormatter
()
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
"yyyy-MM"
dateFormatter
.
dateFormat
=
"yyyy-MM"
// 将字符串转换为日期
// 将字符串转换为日期
guard
let
inputD
ate
=
dateFormatter
.
date
(
from
:
yearMonth
)
else
{
guard
let
d
ate
=
dateFormatter
.
date
(
from
:
yearMonth
)
else
{
return
false
// 如果
转换失败,返回 false
return
false
// 如果
日期格式不正确,返回 nil
}
}
// 获取当前日期
let
currentDate
=
Date
()
// 获取日历实例
let
calendar
=
Calendar
.
current
let
calendar
=
Calendar
.
current
let
oneYearAgo
=
calendar
.
date
(
byAdding
:
.
year
,
value
:
-
1
,
to
:
Date
())
!
// 获取输入日期的年份和月份
// 计算一年前的日期
let
inputYearMonth
=
calendar
.
date
(
from
:
calendar
.
dateComponents
([
.
year
,
.
month
],
from
:
inputDate
))
!
if
let
oneYearAgo
=
calendar
.
date
(
byAdding
:
.
year
,
value
:
-
1
,
to
:
currentDate
)
{
// 比较日期,判断是否大于一年
return
date
<
oneYearAgo
}
// 比较输入日期与一年前的日期
return
false
return
calendar
.
isDate
(
inputYearMonth
,
inSameDayAs
:
oneYearAgo
)
}
}
func
updateModel
(
_
type
:
YHCardType
,
isFront
:
Bool
,
url
:
String
)
{
func
updateModel
(
_
type
:
YHCardType
,
isFront
:
Bool
,
url
:
String
)
{
...
...
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