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
c15cb082
Commit
c15cb082
authored
Jun 24, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 首页 可能崩溃的问题
parent
ff1a74cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
11 deletions
+31
-11
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+9
-9
YHOrderTipsView.swift
...y/galaxy/Classes/Modules/Home(首页)/V/YHOrderTipsView.swift
+2
-2
YHScoreOptionsView.swift
...entService(服务中心)/MyScore(我的评分)/V/YHScoreOptionsView.swift
+20
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
c15cb082
...
@@ -113,9 +113,9 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -113,9 +113,9 @@ class YHHomePageViewController: YHBaseViewController {
}
}
DispatchQueue
.
main
.
async
{
//
DispatchQueue.main.async {
self
.
showOrderTipsView
(
isShow
)
//
self.showOrderTipsView(isShow)
}
//
}
}
}
self
.
viewModel
.
getLastTwoMessagesForSigner
{
success
,
error
in
self
.
viewModel
.
getLastTwoMessagesForSigner
{
success
,
error
in
if
success
{
if
success
{
...
@@ -126,9 +126,9 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -126,9 +126,9 @@ class YHHomePageViewController: YHBaseViewController {
}
}
DispatchQueue
.
main
.
async
{
//
DispatchQueue.main.async {
self
.
showOrderTipsView
(
isShow
)
//
self.showOrderTipsView(isShow)
}
//
}
}
}
}
else
{
}
else
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
...
@@ -153,9 +153,9 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -153,9 +153,9 @@ class YHHomePageViewController: YHBaseViewController {
var
r
=
homeCollectView
.
frame
var
r
=
homeCollectView
.
frame
r
.
origin
.
y
=
r
.
origin
.
y
-
homeHeaderViewHeight
r
.
origin
.
y
=
r
.
origin
.
y
-
homeHeaderViewHeight
tmpHeadView
.
frame
=
r
tmpHeadView
.
frame
=
r
//
homeCollectView.es.addInfiniteScrolling {
homeCollectView
.
es
.
addInfiniteScrolling
{
//
self.loadMoreData()
self
.
loadMoreData
()
//
}
}
self
.
homeCollectView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
-
homeHeaderViewHeight
),
animated
:
false
)
self
.
homeCollectView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
-
homeHeaderViewHeight
),
animated
:
false
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHOrderTipsView.swift
View file @
c15cb082
...
@@ -203,10 +203,10 @@ private extension YHOrderTipsView {
...
@@ -203,10 +203,10 @@ private extension YHOrderTipsView {
let
timestamp
=
now
.
timeIntervalSince1970
let
timestamp
=
now
.
timeIntervalSince1970
print
(
"当前时间戳:
\(
timestamp
)
"
)
print
(
"当前时间戳:
\(
timestamp
)
"
)
let
offsetSecond
=
CGFloat
(
model
.
registration_timestamp
-
Int64
(
timestamp
)
)
let
offsetSecond
=
CGFloat
(
Int64
(
timestamp
)
-
model
.
registration_timestamp
)
if
offsetSecond
>
0
{
if
offsetSecond
>
0
{
let
roundedUp
=
Int
(
ceil
(
offsetSecond
/
24
*
60
*
60
))
let
roundedUp
=
Int
(
ceil
(
offsetSecond
/
(
24
*
60
*
60
)
))
lableDays
.
text
=
"银河港生活陪伴您的第"
+
String
(
roundedUp
)
+
"天"
lableDays
.
text
=
"银河港生活陪伴您的第"
+
String
(
roundedUp
)
+
"天"
}
else
{
}
else
{
lableDays
.
text
=
"银河港生活陪伴在您的身边"
lableDays
.
text
=
"银河港生活陪伴在您的身边"
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyScore(我的评分)/V/YHScoreOptionsView.swift
View file @
c15cb082
...
@@ -51,6 +51,16 @@ class YHScoreOptionsView: UIView {
...
@@ -51,6 +51,16 @@ class YHScoreOptionsView: UIView {
}()
}()
// lazy var testImagV : UIImageView = {
// let view = UIImageView(frame: CGRect(x: 0, y: 0, width: 40, height: 20))
// view.backgroundColor = UIColor.red
// return view
// }()
var
dataModel
:
YHScoreOptiosModel
?
{
var
dataModel
:
YHScoreOptiosModel
?
{
didSet
{
didSet
{
updateUI
()
updateUI
()
...
@@ -74,6 +84,16 @@ private extension YHScoreOptionsView {
...
@@ -74,6 +84,16 @@ private extension YHScoreOptionsView {
make
.
left
.
right
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
bottomLine
.
snp
.
top
)
.
offset
(
-
kMargin
)
make
.
bottom
.
equalTo
(
bottomLine
.
snp
.
top
)
.
offset
(
-
kMargin
)
}
}
// addSubview(testImagV)
// testImagV.snp.makeConstraints { make in
// make.top.equalTo(kMargin)
// make.left.right.equalToSuperview()
// make.bottom.equalTo(bottomLine.snp.top).offset(-kMargin)
// }
}
}
...
...
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