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
59888772
Commit
59888772
authored
Dec 31, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播预约
parent
458c0dc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
YHLiveAppointmentViewController.swift
...streamSales(直播销售)/C/YHLiveAppointmentViewController.swift
+18
-3
No files found.
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLiveAppointmentViewController.swift
View file @
59888772
...
...
@@ -190,9 +190,10 @@ class YHLiveAppointmentViewController: YHBaseViewController {
}
liveNameLabel
.
text
=
liveInfo
.
title
anchorLabel
.
text
=
liveInfo
.
account
let
content
=
""
infoContentLabel
.
text
=
content
let
content
=
liveInfo
.
watch
if
content
.
isEmpty
{
infoContentLabel
.
text
=
content
infoContentLabel
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
0
)
make
.
left
.
equalToSuperview
()
.
offset
(
12
)
...
...
@@ -200,6 +201,7 @@ class YHLiveAppointmentViewController: YHBaseViewController {
make
.
bottom
.
equalToSuperview
()
.
offset
(
0
)
}
}
else
{
infoContentLabel
.
text
=
"直播看点:
\n
"
+
content
infoContentLabel
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
12
)
make
.
left
.
equalToSuperview
()
.
offset
(
12
)
...
...
@@ -207,9 +209,22 @@ class YHLiveAppointmentViewController: YHBaseViewController {
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
12
)
}
}
infoTimeLabel
.
text
=
"直播时间:"
+
liveInfo
.
start_time
+
"~"
+
liveInfo
.
end_time
var
timeStr
=
"直播时间:"
+
liveInfo
.
start_time
if
!
liveInfo
.
end_time
.
isEmpty
{
timeStr
+=
"~"
+
liveInfo
.
end_time
}
infoTimeLabel
.
text
=
timeStr
updateAppointmentButton
(
!
liveInfo
.
is_schedule_live
)
}
private
func
isSameDay
(
date1
:
Date
,
date2
:
Date
)
->
Bool
{
let
calendar
=
Calendar
.
current
let
components1
=
calendar
.
dateComponents
([
.
year
,
.
month
,
.
day
],
from
:
date1
)
let
components2
=
calendar
.
dateComponents
([
.
year
,
.
month
,
.
day
],
from
:
date2
)
return
components1
.
year
==
components2
.
year
&&
components1
.
month
==
components2
.
month
&&
components1
.
day
==
components2
.
day
}
private
func
updateAppointmentButton
(
_
isEnable
:
Bool
)
{
appointmentButton
.
isEnabled
=
isEnable
...
...
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