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
481678ca
Commit
481678ca
authored
Aug 14, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一处时间戳的问题
parent
abd1cff9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
31 deletions
+4
-31
YHHomeHoldViewPageViewController.swift
...Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
+2
-17
YHOfficialApprovalResultVC.swift
.../OfficialApproval(正式批)/C/YHOfficialApprovalResultVC.swift
+2
-14
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
View file @
481678ca
...
@@ -148,27 +148,15 @@ extension YHHomeHoldViewPageViewController {
...
@@ -148,27 +148,15 @@ extension YHHomeHoldViewPageViewController {
return
return
}
}
// model.type = 1//for test hjl
if
model
.
type
==
1
{
if
model
.
type
==
1
{
//正式弹窗
//正式弹窗
let
now
=
Date
()
let
timestamp
=
now
.
timeIntervalSince1970
print
(
"当前时间戳:
\(
timestamp
)
"
)
let
offsetSecond
=
CGFloat
(
Int64
(
timestamp
)
-
Int64
(
model
.
date
))
var
roundedUp
=
0
if
offsetSecond
>
0
{
roundedUp
=
Int
(
ceil
(
offsetSecond
/
(
24
*
60
*
60
)))
printLog
(
roundedUp
)
}
self
.
princleVM
.
postAlertStatus
(
15
)
{
success
,
error
in
self
.
princleVM
.
postAlertStatus
(
15
)
{
success
,
error
in
}
}
let
view
=
YHOffivialApprovalSuccessCheckView
.
sheetView
()
let
view
=
YHOffivialApprovalSuccessCheckView
.
sheetView
()
view
.
days
=
roundedUp
view
.
days
=
model
.
date
view
.
show
()
view
.
show
()
view
.
block
=
{
tag
in
view
.
block
=
{
tag
in
...
@@ -189,9 +177,6 @@ extension YHHomeHoldViewPageViewController {
...
@@ -189,9 +177,6 @@ extension YHHomeHoldViewPageViewController {
let
view
=
YHPrincipleApprovedAlertView
.
alertView
()
let
view
=
YHPrincipleApprovedAlertView
.
alertView
()
view
.
lookBlock
=
{
view
.
lookBlock
=
{
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
as?
Int
{
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
as?
Int
{
let
vc
=
YHPrincipleApprovedWaitSubmitVC
()
let
vc
=
YHPrincipleApprovedWaitSubmitVC
()
vc
.
orderId
=
orderID
vc
.
orderId
=
orderID
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/OfficialApproval(正式批)/C/YHOfficialApprovalResultVC.swift
View file @
481678ca
...
@@ -233,21 +233,9 @@ private extension YHOfficialApprovalResultVC {
...
@@ -233,21 +233,9 @@ private extension YHOfficialApprovalResultVC {
return
return
}
}
if
model
.
type
==
1
{
if
model
.
type
==
1
{
let
now
=
Date
()
let
timestamp
=
now
.
timeIntervalSince1970
print
(
"当前时间戳:
\(
timestamp
)
"
)
let
offsetSecond
=
CGFloat
(
Int64
(
timestamp
)
-
Int64
(
model
.
date
))
var
roundedUp
=
0
if
offsetSecond
>
0
{
roundedUp
=
Int
(
ceil
(
offsetSecond
/
(
24
*
60
*
60
)))
printLog
(
roundedUp
)
}
let
view
=
YHOffivialApprovalSuccessCheckView
.
sheetView
()
let
view
=
YHOffivialApprovalSuccessCheckView
.
sheetView
()
view
.
days
=
roundedUp
view
.
days
=
model
.
date
view
.
show
()
view
.
show
()
view
.
block
=
{
tag
in
view
.
block
=
{
tag
in
...
...
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