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
9dbd1e60
Commit
9dbd1e60
authored
Aug 10, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成 正式批逻辑
parent
db52c346
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
6 deletions
+78
-6
YHHomeHoldViewPageViewController.swift
...Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
+69
-1
YHOfficialApprovalResultVC.swift
...OfficialApprovalBatch/C/YHOfficialApprovalResultVC.swift
+9
-5
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
View file @
9dbd1e60
...
@@ -83,7 +83,9 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
...
@@ -83,7 +83,9 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
homePageVC
.
requestOrder
()
homePageVC
.
requestOrder
()
}
}
getUatRules
()
DispatchQueue
.
main
.
async
{
self
.
getAlertStatus
()
}
}
}
override
func
viewWillDisappear
(
_
animated
:
Bool
)
{
override
func
viewWillDisappear
(
_
animated
:
Bool
)
{
...
@@ -120,11 +122,77 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
...
@@ -120,11 +122,77 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
let
vm
=
YHMsgViewModel
()
let
vm
=
YHMsgViewModel
()
return
vm
return
vm
}()
}()
lazy
var
princleVM
:
YHPrincleViewModel
=
{
let
vm
=
YHPrincleViewModel
()
return
vm
}()
}
}
//MARK: - 内部函数
//MARK: - 内部函数
extension
YHHomeHoldViewPageViewController
{
extension
YHHomeHoldViewPageViewController
{
//获取原则批、正式批的弹窗状态
func
getAlertStatus
()
{
if
!
YHLoginManager
.
shared
.
isLogin
()
{
return
}
princleVM
.
getPrincleStatus
{
success
,
error
in
if
success
{
guard
let
model
=
self
.
princleVM
.
alertStatusModel
else
{
return
}
model
.
type
=
1
//for test hjl
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
()
view
.
days
=
roundedUp
view
.
show
()
view
.
block
=
{
tag
in
DispatchQueue
.
main
.
async
{
// self.postAlertStatus(6)
self
.
princleVM
.
postAlertStatus
(
6
)
{
success
,
error
in
}
}
if
tag
==
0
{
//跳转 正式批结果页面
//正式批已获批~
let
vc
=
YHOfficialApprovalResultVC
()
vc
.
showGuildViewFlag
=
true
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
else
if
model
.
type
==
2
{
//原则批弹窗
}
}
}
}
func
getUatRules
()
{
func
getUatRules
()
{
DispatchQueue
.
global
()
.
async
{
DispatchQueue
.
global
()
.
async
{
//灰度规则配置
//灰度规则配置
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/OfficialApprovalBatch/C/YHOfficialApprovalResultVC.swift
View file @
9dbd1e60
...
@@ -133,6 +133,10 @@ class YHOfficialApprovalResultVC: YHBaseViewController {
...
@@ -133,6 +133,10 @@ class YHOfficialApprovalResultVC: YHBaseViewController {
}()
}()
//
var
showGuildViewFlag
:
Bool
=
false
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -140,6 +144,10 @@ class YHOfficialApprovalResultVC: YHBaseViewController {
...
@@ -140,6 +144,10 @@ class YHOfficialApprovalResultVC: YHBaseViewController {
getAlertStatus
()
getAlertStatus
()
getOfficalGuildCheckStatus
()
getOfficalGuildCheckStatus
()
if
showGuildViewFlag
{
clickRightItemBtn
()
}
}
}
}
}
...
@@ -164,7 +172,7 @@ private extension YHOfficialApprovalResultVC {
...
@@ -164,7 +172,7 @@ private extension YHOfficialApprovalResultVC {
}
}
}
}
//获取弹窗状态
//获取
原则批、正式批的
弹窗状态
func
getAlertStatus
()
{
func
getAlertStatus
()
{
princleVM
.
getPrincleStatus
{
success
,
error
in
princleVM
.
getPrincleStatus
{
success
,
error
in
if
success
{
if
success
{
...
@@ -172,10 +180,7 @@ private extension YHOfficialApprovalResultVC {
...
@@ -172,10 +180,7 @@ private extension YHOfficialApprovalResultVC {
return
return
}
}
model
.
type
=
1
//for test hjl
if
model
.
type
==
1
{
if
model
.
type
==
1
{
let
now
=
Date
()
let
now
=
Date
()
let
timestamp
=
now
.
timeIntervalSince1970
let
timestamp
=
now
.
timeIntervalSince1970
print
(
"当前时间戳:
\(
timestamp
)
"
)
print
(
"当前时间戳:
\(
timestamp
)
"
)
...
@@ -198,7 +203,6 @@ private extension YHOfficialApprovalResultVC {
...
@@ -198,7 +203,6 @@ private extension YHOfficialApprovalResultVC {
}
}
if
tag
==
0
{
if
tag
==
0
{
//
self
.
clickRightItemBtn
()
self
.
clickRightItemBtn
()
}
}
}
}
...
...
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