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
148529d6
Commit
148529d6
authored
Apr 17, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 消息
parent
487a7826
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
50 deletions
+24
-50
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+0
-2
YHMsgViewModel.swift
...alaxy/Classes/Modules/Message(消息)/VM/YHMsgViewModel.swift
+0
-31
YHDeviceInfoViewController.swift
...asses/Modules/Mine(我的)/C/YHDeviceInfoViewController.swift
+12
-12
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+7
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
148529d6
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
0414BDAB2BC7E9C200225367
/* YHMyPermissionCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDAA2BC7E9C200225367
/* YHMyPermissionCell.swift */
;
};
0414BDAB2BC7E9C200225367
/* YHMyPermissionCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDAA2BC7E9C200225367
/* YHMyPermissionCell.swift */
;
};
0414BDAD2BC7F02C00225367
/* YHMyNotifySettingVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
;
};
0414BDAD2BC7F02C00225367
/* YHMyNotifySettingVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
;
};
0414BDB22BCCC0A500225367
/* YHCollectionModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDB12BCCC0A500225367
/* YHCollectionModel.swift */
;
};
0414BDB22BCCC0A500225367
/* YHCollectionModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDB12BCCC0A500225367
/* YHCollectionModel.swift */
;
};
04174D642BCD52BD000BA46D
/* YH
TestViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D632BCD52BD000BA46D
/* YHTest
ViewController.swift */
;
};
04174D642BCD52BD000BA46D
/* YH
DeviceInfoViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D632BCD52BD000BA46D
/* YHDeviceInfo
ViewController.swift */
;
};
04174D732BCD5B74000BA46D
/* YHMsgViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D672BCD5B74000BA46D
/* YHMsgViewModel.swift */
;
};
04174D732BCD5B74000BA46D
/* YHMsgViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D672BCD5B74000BA46D
/* YHMsgViewModel.swift */
;
};
04174D742BCD5B74000BA46D
/* IMAppKey.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D692BCD5B74000BA46D
/* IMAppKey.swift */
;
};
04174D742BCD5B74000BA46D
/* IMAppKey.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D692BCD5B74000BA46D
/* IMAppKey.swift */
;
};
04174D762BCD5B74000BA46D
/* YHMsgListModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D6C2BCD5B74000BA46D
/* YHMsgListModel.swift */
;
};
04174D762BCD5B74000BA46D
/* YHMsgListModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04174D6C2BCD5B74000BA46D
/* YHMsgListModel.swift */
;
};
...
@@ -461,7 +461,7 @@
...
@@ -461,7 +461,7 @@
0414BDAA2BC7E9C200225367
/* YHMyPermissionCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyPermissionCell.swift
;
sourceTree
=
"<group>"
;
};
0414BDAA2BC7E9C200225367
/* YHMyPermissionCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyPermissionCell.swift
;
sourceTree
=
"<group>"
;
};
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyNotifySettingVC.swift
;
sourceTree
=
"<group>"
;
};
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyNotifySettingVC.swift
;
sourceTree
=
"<group>"
;
};
0414BDB12BCCC0A500225367
/* YHCollectionModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCollectionModel.swift
;
sourceTree
=
"<group>"
;
};
0414BDB12BCCC0A500225367
/* YHCollectionModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCollectionModel.swift
;
sourceTree
=
"<group>"
;
};
04174D632BCD52BD000BA46D
/* YH
TestViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTest
ViewController.swift
;
sourceTree
=
"<group>"
;
};
04174D632BCD52BD000BA46D
/* YH
DeviceInfoViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHDeviceInfo
ViewController.swift
;
sourceTree
=
"<group>"
;
};
04174D672BCD5B74000BA46D
/* YHMsgViewModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMsgViewModel.swift
;
sourceTree
=
"<group>"
;
};
04174D672BCD5B74000BA46D
/* YHMsgViewModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMsgViewModel.swift
;
sourceTree
=
"<group>"
;
};
04174D692BCD5B74000BA46D
/* IMAppKey.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
IMAppKey.swift
;
sourceTree
=
"<group>"
;
};
04174D692BCD5B74000BA46D
/* IMAppKey.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
IMAppKey.swift
;
sourceTree
=
"<group>"
;
};
04174D6C2BCD5B74000BA46D
/* YHMsgListModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMsgListModel.swift
;
sourceTree
=
"<group>"
;
};
04174D6C2BCD5B74000BA46D
/* YHMsgListModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMsgListModel.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -1971,7 +1971,7 @@
...
@@ -1971,7 +1971,7 @@
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
,
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
,
049A48A72B49417300D0C641
/* YHAboutUsViewController.swift */
,
049A48A72B49417300D0C641
/* YHAboutUsViewController.swift */
,
048B2A492BC7D9DC00A93BF0
/* YHMyLikeViewController.swift */
,
048B2A492BC7D9DC00A93BF0
/* YHMyLikeViewController.swift */
,
04174D632BCD52BD000BA46D
/* YH
Test
ViewController.swift */
,
04174D632BCD52BD000BA46D
/* YH
DeviceInfo
ViewController.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2617,7 +2617,7 @@
...
@@ -2617,7 +2617,7 @@
045EEEB92B9F171A0022A143
/* YHWorkMessageSelectTableViewCell.swift in Sources */
,
045EEEB92B9F171A0022A143
/* YHWorkMessageSelectTableViewCell.swift in Sources */
,
044E1E812BC3BBC200A3B4AF
/* YHSearchInfomationVC.swift in Sources */
,
044E1E812BC3BBC200A3B4AF
/* YHSearchInfomationVC.swift in Sources */
,
04A7BD0F2BA41C9800BD35A2
/* YHMyDocumentsModel.swift in Sources */
,
04A7BD0F2BA41C9800BD35A2
/* YHMyDocumentsModel.swift in Sources */
,
04174D642BCD52BD000BA46D
/* YH
Test
ViewController.swift in Sources */
,
04174D642BCD52BD000BA46D
/* YH
DeviceInfo
ViewController.swift in Sources */
,
A5ACE92E2B4564F7002C94D2
/* YHValidateCodeInputView.swift in Sources */
,
A5ACE92E2B4564F7002C94D2
/* YHValidateCodeInputView.swift in Sources */
,
045EEED82B9F171A0022A143
/* YHQuestionInfo.swift in Sources */
,
045EEED82B9F171A0022A143
/* YHQuestionInfo.swift in Sources */
,
048787D32BCE6B7D0036E221
/* YHServiceOrderAlertView.swift in Sources */
,
048787D32BCE6B7D0036E221
/* YHServiceOrderAlertView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
148529d6
...
@@ -128,11 +128,9 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -128,11 +128,9 @@ class YHMessageListVC: YHBaseViewController {
}
}
func
getUnreadMsgList
()
{
func
getUnreadMsgList
()
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getUnreadMsgList
{
self
.
viewModel
.
getUnreadMsgList
{
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
if
success
,
let
msgList
=
viewModel
.
msgList
{
if
success
,
let
msgList
=
viewModel
.
msgList
{
msgArr
.
removeAll
()
msgArr
.
removeAll
()
// 资料填写
// 资料填写
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/VM/YHMsgViewModel.swift
View file @
148529d6
...
@@ -19,38 +19,7 @@ class YHMsgViewModel: NSObject {
...
@@ -19,38 +19,7 @@ class YHMsgViewModel: NSObject {
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Message
.
unreadMsgListApi
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Message
.
unreadMsgListApi
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
json
,
code
in
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
json
,
code
in
var
dic
=
json
.
data
var
dic
=
json
.
data
// var json = json
// json.code = 200
// dic = [
// "information": [
// "unread_count": 0,
// "last_message": "阿法守法所发生的法师打发",
// "last_message_time": 1586507545,
// "type": 0
// ],
// "certificate": [
// "unread_count": 3,
// "last_message": "发生发顺丰大声道发生大发萨法沙发沙发沙发沙发阿斯顿发生发顺丰阿凡达放大第三方",
// "last_message_time": 1586507545,
// "type": 0
// ],
// "draft": [
// "unread_count": 100,
// "last_message": "发生发顺丰大声道发生大发",
// "last_message_time": 1712737945,
// "type": 0
// ],
// "signature": [
// "unread_count": 87,
// "last_message": "发生发",
// "last_message_time": 1713236425,
// "type": 0
// ]
// ]
printLog
(
"model 是 ==>
\(
json
)
"
)
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
if
json
.
code
==
200
{
guard
let
result
=
YHMsgListModel
.
deserialize
(
dict
:
dic
as?
Dictionary
)
else
{
guard
let
result
=
YHMsgListModel
.
deserialize
(
dict
:
dic
as?
Dictionary
)
else
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YH
Test
ViewController.swift
→
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YH
DeviceInfo
ViewController.swift
View file @
148529d6
...
@@ -8,26 +8,25 @@
...
@@ -8,26 +8,25 @@
import
UIKit
import
UIKit
class
YH
Test
ViewController
:
YHBaseViewController
{
class
YH
DeviceInfo
ViewController
:
YHBaseViewController
{
lazy
var
name
Label
:
UILabel
=
{
lazy
var
deviceInfo
Label
:
UILabel
=
{
let
nameL
abel
=
UILabel
()
let
l
abel
=
UILabel
()
nameL
abel
.
textColor
=
UIColor
(
hex
:
0x121A26
)
l
abel
.
textColor
=
UIColor
(
hex
:
0x121A26
)
nameL
abel
.
textAlignment
=
.
left
l
abel
.
textAlignment
=
.
left
nameL
abel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
l
abel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
nameL
abel
.
numberOfLines
=
0
l
abel
.
numberOfLines
=
0
return
nameL
abel
return
l
abel
}()
}()
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
view
.
backgroundColor
=
.
white
view
.
backgroundColor
=
.
white
view
.
addSubview
(
name
Label
)
view
.
addSubview
(
deviceInfo
Label
)
name
Label
.
snp
.
makeConstraints
{
make
in
deviceInfo
Label
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
bottom
.
equalToSuperview
()
}
}
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
...
@@ -39,9 +38,10 @@ class YHTestViewController: YHBaseViewController {
...
@@ -39,9 +38,10 @@ class YHTestViewController: YHBaseViewController {
YHLoginManager
.
shared
.
deviceTokenModel
.
registerId
=
registrationID
??
""
YHLoginManager
.
shared
.
deviceTokenModel
.
registerId
=
registrationID
??
""
var
info
=
"deviceToken:
\n
"
+
(
YHLoginManager
.
shared
.
deviceTokenModel
.
deviceToken
)
var
info
=
"deviceToken:
\n
"
+
(
YHLoginManager
.
shared
.
deviceTokenModel
.
deviceToken
)
info
+=
"
\n
"
info
+=
"
\n
registerId:
\n
"
+
(
YHLoginManager
.
shared
.
deviceTokenModel
.
registerId
)
info
+=
"
\n
registerId:
\n
"
+
(
YHLoginManager
.
shared
.
deviceTokenModel
.
registerId
)
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
self
.
name
Label
.
text
=
info
self
.
deviceInfo
Label
.
text
=
info
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
148529d6
...
@@ -40,7 +40,8 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
...
@@ -40,7 +40,8 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
PersonalModuleItem
(
title
:
"权限配置"
.
local
,
type
:
.
permissionSettings
),
PersonalModuleItem
(
title
:
"权限配置"
.
local
,
type
:
.
permissionSettings
),
PersonalModuleItem
(
title
:
"个人信息收集清单"
.
local
,
type
:
.
infoCollectList
),
PersonalModuleItem
(
title
:
"个人信息收集清单"
.
local
,
type
:
.
infoCollectList
),
PersonalModuleItem
(
title
:
"第三方信息共享清单"
.
local
,
type
:
.
infoShareList
),
PersonalModuleItem
(
title
:
"第三方信息共享清单"
.
local
,
type
:
.
infoShareList
),
PersonalModuleItem
(
title
:
"关于我们"
.
local
,
type
:
.
aboutUs
)]
PersonalModuleItem
(
title
:
"关于我们"
.
local
,
type
:
.
aboutUs
),
PersonalModuleItem
(
title
:
"设备相关"
.
local
,
type
:
.
deviceInfo
)]
}()
}()
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
...
@@ -98,6 +99,7 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
...
@@ -98,6 +99,7 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
items
.
count
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
items
.
count
{
let
item
=
items
[
indexPath
.
row
]
let
item
=
items
[
indexPath
.
row
]
if
item
.
type
==
.
notifySettings
{
if
item
.
type
==
.
notifySettings
{
let
vc
=
YHMyNotifySettingVC
()
let
vc
=
YHMyNotifySettingVC
()
...
@@ -110,6 +112,10 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
...
@@ -110,6 +112,10 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
}
else
if
item
.
type
==
.
aboutUs
{
}
else
if
item
.
type
==
.
aboutUs
{
let
vc
=
YHAboutUsViewController
()
let
vc
=
YHAboutUsViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
item
.
type
==
.
deviceInfo
{
let
vc
=
YHDeviceInfoViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
148529d6
...
@@ -25,6 +25,7 @@ enum YHPersonalModuleItemType: Int {
...
@@ -25,6 +25,7 @@ enum YHPersonalModuleItemType: Int {
case
infoCollectList
case
infoCollectList
case
infoShareList
case
infoShareList
case
aboutUs
case
aboutUs
case
deviceInfo
}
}
class
PersonalModuleItem
{
class
PersonalModuleItem
{
...
...
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