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
3adbc068
Commit
3adbc068
authored
Apr 16, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
1f48574e
' into xiezhaolin
parents
0866b758
1f48574e
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
43 additions
and
59 deletions
+43
-59
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+2
-2
YHHomeCollectionLayout.swift
...y/Classes/Modules/Home(首页)/V/YHHomeCollectionLayout.swift
+0
-0
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+2
-2
YHInformationFillVC.swift
...y/Classes/Modules/Message(消息)/C/YHInformationFillVC.swift
+2
-1
YHMsgViewController.swift
...y/Classes/Modules/Message(消息)/C/YHMsgViewController.swift
+7
-2
YHMsgViewModel.swift
...alaxy/Classes/Modules/Message(消息)/VM/YHMsgViewModel.swift
+28
-2
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-0
Contents.json
galaxy/galaxy/Res/Assets.xcassets/DavidTest/Contents.json
+0
-6
Contents.json
...cassets/DavidTest/home_person_icon.imageset/Contents.json
+0
-22
a1ee8b3bd2c4f4969fd48d8db3c66fd 93@2x.png
...n_icon.imageset/a1ee8b3bd2c4f4969fd48d8db3c66fd 93@2x.png
+0
-0
a1ee8b3bd2c4f4969fd48d8db3c66fd 93@3x.png
...n_icon.imageset/a1ee8b3bd2c4f4969fd48d8db3c66fd 93@3x.png
+0
-0
Contents.json
...cassets/DavidTest/home_title_image.imageset/Contents.json
+0
-22
fa969293-cb4c-490e-b597-3345266ff912 54@2x.png
...e.imageset/fa969293-cb4c-490e-b597-3345266ff912 54@2x.png
+0
-0
fa969293-cb4c-490e-b597-3345266ff912 54@3x.png
...e.imageset/fa969293-cb4c-490e-b597-3345266ff912 54@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
3adbc068
...
...
@@ -2122,8 +2122,6 @@
044414022BC39B8D00784A14
/* YHServerTableHeadView.swift */
,
049AC4C52BC3E55300F857F4
/* YHServiceSectionView.swift */
,
044414042BC3B9DE00784A14
/* YHServiceTableFootView.swift */
,
044414062BC3C54B00784A14
/* YHHomeCollectionViewCell.swift */
,
044414082BC3CE8500784A14
/* YHHomeCollectionLayout.swift */
,
04CC2EEF2BC3DDB2000305DD
/* YHServiceBannerView.swift */
,
049AC4C72BC513AB00F857F4
/* YHOrderListView.swift */
,
049AC4C92BC5141600F857F4
/* YHServerNoOrderView.swift */
,
...
...
@@ -2220,6 +2218,8 @@
A5F9AD322BC3CD66000323F8
/* YHHkLifeAndIdItemView.swift */
,
A53F42BA2BC3DE6F009CAC70
/* YHHomeKingKongBlockItem.swift */
,
A50A747B2BC8EC86003D28D9
/* YHHomeBannerCollectionViewCell.swift */
,
044414062BC3C54B00784A14
/* YHHomeCollectionViewCell.swift */
,
044414082BC3CE8500784A14
/* YHHomeCollectionLayout.swift */
,
A50A747D2BC91308003D28D9
/* YHHomeBannerIndicatorView.swift */
,
);
path
=
V
;
...
...
galaxy/galaxy/Classes/Modules/
IntelligentService(服务中心
)/V/YHHomeCollectionLayout.swift
→
galaxy/galaxy/Classes/Modules/
Home(首页
)/V/YHHomeCollectionLayout.swift
View file @
3adbc068
File moved
galaxy/galaxy/Classes/Modules/
IntelligentService(服务中心
)/V/YHHomeCollectionViewCell.swift
→
galaxy/galaxy/Classes/Modules/
Home(首页
)/V/YHHomeCollectionViewCell.swift
View file @
3adbc068
...
...
@@ -28,7 +28,7 @@ class YHHomeCollectionViewCell: UICollectionViewCell {
}
lazy
var
titleImageView
:
UIImageView
=
{
let
imageV
=
UIImageView
(
image
:
UIImage
(
named
:
"home_
title_image
"
))
let
imageV
=
UIImageView
(
image
:
UIImage
(
named
:
"home_
banner_default_icon
"
))
imageV
.
contentMode
=
.
scaleAspectFill
return
imageV
}()
...
...
@@ -172,7 +172,7 @@ extension YHHomeCollectionViewCell {
if
let
url
=
URL
(
string
:
listModel
.
img_url
)
{
titleImageView
.
kf
.
setImage
(
with
:
url
)
}
descripeLable
.
text
=
listModel
.
title
.
defaultStringIfEmpty
(
detaultValue
:
"
***
"
)
descripeLable
.
text
=
listModel
.
title
.
defaultStringIfEmpty
(
detaultValue
:
"
银河世纪
"
)
descripeLable
.
snp
.
removeConstraints
()
descripeLable
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
10
)
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHInformationFillVC.swift
View file @
3adbc068
...
...
@@ -10,6 +10,7 @@ import UIKit
class
YHInformationFillVC
:
YHBaseViewController
{
var
type
:
Int
=
-
1
var
msgArr
:[
YHDetailMessageModel
]
=
[]
lazy
var
viewModel
=
{
...
...
@@ -81,7 +82,7 @@ class YHInformationFillVC: YHBaseViewController {
func
getMsgList
()
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getMsgDetailList
{
self
.
viewModel
.
getMsgDetailList
(
type
:
self
.
type
)
{
[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMsgViewController.swift
View file @
3adbc068
...
...
@@ -48,6 +48,7 @@ class YHMsgViewController: YHBaseViewController {
guard
let
self
=
self
else
{
return
}
YHCommonAlertView
.
show
(
"清除未读"
,
"确定要清除所有未读提示吗?"
,
"取消"
,
"确认"
)
{
let
vc
=
YHInformationFillVC
()
vc
.
type
=
1
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
...
...
@@ -175,8 +176,12 @@ extension YHMsgViewController: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
vc
=
YHInformationFillVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
if
0
<
indexPath
.
row
&&
indexPath
.
row
<
msgArr
.
count
{
let
msgItem
=
msgArr
[
indexPath
.
row
]
let
vc
=
YHInformationFillVC
()
vc
.
type
=
msgItem
.
type
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/VM/YHMsgViewModel.swift
View file @
3adbc068
...
...
@@ -43,9 +43,10 @@ class YHMsgViewModel: NSObject {
}
}
func
getMsgDetailList
(
_
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
getMsgDetailList
(
type
:
Int
,
_
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Message
.
msgDetaiList
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
json
,
code
in
let
params
=
[
"type"
:
type
]
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
json
,
code
in
let
dic
=
json
.
data
printLog
(
"model 是 ==>
\(
json
)
"
)
...
...
@@ -76,4 +77,29 @@ class YHMsgViewModel: NSObject {
callBackBlock
(
false
,
error
)
}
}
func
readMessages
(
type
:
Int
,
msgIds
:[
Int
],
_
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Message
.
readMsg
let
params
:[
String
:
Any
]
=
[
"type"
:
type
,
"ids"
:
msgIds
]
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
json
,
code
in
let
dic
=
json
.
data
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
callBackBlock
(
true
,
nil
)
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
error
in
self
.
msgList
=
nil
callBackBlock
(
false
,
error
)
}
}
}
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
3adbc068
...
...
@@ -261,5 +261,7 @@ class YHAllApiName {
static
let
unreadMsgList
=
"infoflow/unread-message"
// 具体业务消息列表
static
let
msgDetaiList
=
"infoflow/message/list"
// 标记消息已读
static
let
readMsg
=
"infoflow/read-push"
}
}
galaxy/galaxy/Res/Assets.xcassets/DavidTest/Contents.json
deleted
100644 → 0
View file @
0866b758
{
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/DavidTest/home_person_icon.imageset/Contents.json
deleted
100644 → 0
View file @
0866b758
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"a1ee8b3bd2c4f4969fd48d8db3c66fd 93@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"a1ee8b3bd2c4f4969fd48d8db3c66fd 93@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/DavidTest/home_person_icon.imageset/a1ee8b3bd2c4f4969fd48d8db3c66fd 93@2x.png
deleted
100644 → 0
View file @
0866b758
13.4 KB
galaxy/galaxy/Res/Assets.xcassets/DavidTest/home_person_icon.imageset/a1ee8b3bd2c4f4969fd48d8db3c66fd 93@3x.png
deleted
100644 → 0
View file @
0866b758
25 KB
galaxy/galaxy/Res/Assets.xcassets/DavidTest/home_title_image.imageset/Contents.json
deleted
100644 → 0
View file @
0866b758
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"fa969293-cb4c-490e-b597-3345266ff912 54@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"fa969293-cb4c-490e-b597-3345266ff912 54@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/DavidTest/home_title_image.imageset/fa969293-cb4c-490e-b597-3345266ff912 54@2x.png
deleted
100644 → 0
View file @
0866b758
878 KB
galaxy/galaxy/Res/Assets.xcassets/DavidTest/home_title_image.imageset/fa969293-cb4c-490e-b597-3345266ff912 54@3x.png
deleted
100644 → 0
View file @
0866b758
This diff is collapsed.
Click to expand it.
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