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
ed595ecb
Commit
ed595ecb
authored
Feb 23, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的tab
parent
8b9bacfb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
14 deletions
+41
-14
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+11
-6
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+30
-8
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
ed595ecb
...
@@ -37,11 +37,11 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
...
@@ -37,11 +37,11 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
}()
}()
lazy
var
items
:
[
PersonalModuleItem
]
=
{
lazy
var
items
:
[
PersonalModuleItem
]
=
{
return
[
PersonalModuleItem
(
title
:
"调整
颜色"
.
local
.
local
),
return
[
PersonalModuleItem
(
title
:
"调整
设置"
.
local
,
type
:
.
changeSettings
),
PersonalModuleItem
(
title
:
"深色模式"
.
local
),
PersonalModuleItem
(
title
:
"深色模式"
.
local
,
type
:
.
darkMode
),
PersonalModuleItem
(
title
:
"个人信息收集清单"
.
local
),
PersonalModuleItem
(
title
:
"个人信息收集清单"
.
local
,
type
:
.
infoCollectList
),
PersonalModuleItem
(
title
:
"第三方信息共享清单"
.
local
),
PersonalModuleItem
(
title
:
"第三方信息共享清单"
.
local
,
type
:
.
infoShareList
),
PersonalModuleItem
(
title
:
"关于我们"
.
local
)]
PersonalModuleItem
(
title
:
"关于我们"
.
local
,
type
:
.
aboutUs
)]
}()
}()
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
...
@@ -72,6 +72,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
...
@@ -72,6 +72,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
@objc
func
logout
()
{
@objc
func
logout
()
{
YHLoginManager
.
shared
.
clearUserInfo
()
YHLoginManager
.
shared
.
clearUserInfo
()
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didLoginoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didLoginoutSuccessNotifiction
,
object
:
nil
)
YHHUD
.
flash
(
message
:
"退出成功"
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
}
...
@@ -96,7 +97,11 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
...
@@ -96,7 +97,11 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
(
indexPath
.
row
>=
items
.
count
)
{
return
}
if
(
indexPath
.
row
>=
items
.
count
)
{
return
}
let
item
=
items
[
indexPath
.
row
]
if
item
.
type
==
.
aboutUs
{
let
vc
=
YHAboutUsViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
ed595ecb
...
@@ -9,12 +9,32 @@ import UIKit
...
@@ -9,12 +9,32 @@ import UIKit
import
SnapKit
import
SnapKit
import
NEConversationUIKit
import
NEConversationUIKit
enum
YHPersonalModuleItemType
:
Int
{
case
none
=
0
case
myMessage
case
myProgress
case
scoreCenter
case
recommend
case
myPoster
case
myTestCode
case
appointGalaxyBay
case
changeSettings
case
darkMode
case
infoCollectList
case
infoShareList
case
aboutUs
}
struct
PersonalModuleItem
{
struct
PersonalModuleItem
{
var
icon
:
String
?
var
icon
:
String
?
var
title
:
String
var
title
:
String
init
(
icon
:
String
?
=
nil
,
title
:
String
)
{
var
type
:
YHPersonalModuleItemType
=
.
none
init
(
icon
:
String
?
=
nil
,
title
:
String
,
type
:
YHPersonalModuleItemType
)
{
self
.
icon
=
icon
self
.
icon
=
icon
self
.
title
=
title
self
.
title
=
title
self
.
type
=
type
}
}
}
}
...
@@ -25,6 +45,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -25,6 +45,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
if
#available(iOS 11.0, *)
{
if
#available(iOS 11.0, *)
{
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
contentInsetAdjustmentBehavior
=
.
never
}
}
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
tableHeaderView
=
headerView
tableView
.
tableHeaderView
=
headerView
tableView
.
backgroundColor
=
.
clear
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
separatorStyle
=
.
none
...
@@ -35,13 +56,14 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -35,13 +56,14 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
}()
}()
lazy
var
items
:
[
PersonalModuleItem
]
=
{
lazy
var
items
:
[
PersonalModuleItem
]
=
{
return
[
PersonalModuleItem
(
icon
:
"mine_item_msg"
,
title
:
"我的消息"
.
local
),
return
[
PersonalModuleItem
(
icon
:
"mine_item_msg"
,
title
:
"我的消息"
.
local
,
type
:
.
myMessage
),
PersonalModuleItem
(
icon
:
"mine_item_progress"
,
title
:
"我的进度"
.
local
),
PersonalModuleItem
(
icon
:
"mine_item_progress"
,
title
:
"我的进度"
.
local
,
type
:
.
myProgress
),
PersonalModuleItem
(
icon
:
"mine_item_scoreCenter"
,
title
:
"积分中心"
.
local
),
PersonalModuleItem
(
icon
:
"mine_item_scoreCenter"
,
title
:
"积分中心"
.
local
,
type
:
.
scoreCenter
),
PersonalModuleItem
(
icon
:
"mine_item_recommend"
,
title
:
"推荐有礼"
.
local
),
PersonalModuleItem
(
icon
:
"mine_item_recommend"
,
title
:
"推荐有礼"
.
local
,
type
:
.
recommend
),
PersonalModuleItem
(
icon
:
"mine_item_poster"
,
title
:
"我的海报"
.
local
),
PersonalModuleItem
(
icon
:
"mine_item_poster"
,
title
:
"我的海报"
.
local
,
type
:
.
myPoster
),
PersonalModuleItem
(
icon
:
"mine_item_code"
,
title
:
"我的测评码"
.
local
),
PersonalModuleItem
(
icon
:
"mine_item_code"
,
title
:
"我的测评码"
.
local
,
type
:
.
myTestCode
),
PersonalModuleItem
(
icon
:
"mine_item_appoint"
,
title
:
"预约银河湾"
.
local
),]
PersonalModuleItem
(
icon
:
"mine_item_appoint"
,
title
:
"预约银河湾"
.
local
,
type
:
.
appointGalaxyBay
),
]
}()
}()
lazy
var
headerView
:
YHUserInfoHeaderView
=
{
lazy
var
headerView
:
YHUserInfoHeaderView
=
{
...
...
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