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
a3131834
Commit
a3131834
authored
Feb 06, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的设置
parent
d95ddf73
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
166 additions
and
4 deletions
+166
-4
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-0
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+75
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+13
-2
YHMySettingCell.swift
...y/galaxy/Classes/Modules/Mine(我的)/V/YHMySettingCell.swift
+59
-0
YHPersonalCenterCell.swift
...axy/Classes/Modules/Mine(我的)/V/YHPersonalCenterCell.swift
+5
-1
YHUserInfoHeaderView.swift
...axy/Classes/Modules/Mine(我的)/V/YHUserInfoHeaderView.swift
+6
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
a3131834
...
...
@@ -72,6 +72,8 @@
04A7BC8F2B6B2BC2000E8D47
/* YHFamilyRequestViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A7BC8E2B6B2BC2000E8D47
/* YHFamilyRequestViewModel.swift */
;
};
04A7BC912B6B7B89000E8D47
/* YHTwoOptionAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A7BC902B6B7B89000E8D47
/* YHTwoOptionAlertView.swift */
;
};
04AF58C42B4FC51C0066011A
/* YHLocalizable.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
04C693642B723B56004C1758
/* YHMySettingCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693632B723B56004C1758
/* YHMySettingCell.swift */
;
};
04C8F4832B7216D800ADF59B
/* YHUserInfoHeaderView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C8F4822B7216D800ADF59B
/* YHUserInfoHeaderView.swift */
;
};
04E86E092B707ACE00A35F4B
/* YHPhoneLoginViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E86E082B707ACE00A35F4B
/* YHPhoneLoginViewController.swift */
;
};
04E86E0B2B70C13300A35F4B
/* YHCodeSueecssViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E86E0A2B70C13300A35F4B
/* YHCodeSueecssViewController.swift */
;
};
...
...
@@ -301,6 +303,8 @@
04A7BC8E2B6B2BC2000E8D47
/* YHFamilyRequestViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyRequestViewModel.swift
;
sourceTree
=
"<group>"
;
};
04A7BC902B6B7B89000E8D47
/* YHTwoOptionAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTwoOptionAlertView.swift
;
sourceTree
=
"<group>"
;
};
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLocalizable.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
04C693632B723B56004C1758
/* YHMySettingCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingCell.swift
;
sourceTree
=
"<group>"
;
};
04C8F4822B7216D800ADF59B
/* YHUserInfoHeaderView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHUserInfoHeaderView.swift
;
sourceTree
=
"<group>"
;
};
04E86E082B707ACE00A35F4B
/* YHPhoneLoginViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPhoneLoginViewController.swift
;
sourceTree
=
"<group>"
;
};
04E86E0A2B70C13300A35F4B
/* YHCodeSueecssViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeSueecssViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -964,6 +968,7 @@
isa
=
PBXGroup
;
children
=
(
A5ACE8EA2B4564F7002C94D2
/* YHMyViewController.swift */
,
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
,
049A48A72B49417300D0C641
/* YHAboutUsViewController.swift */
,
);
path
=
C
;
...
...
@@ -976,6 +981,7 @@
04C8F4822B7216D800ADF59B
/* YHUserInfoHeaderView.swift */
,
A5ACE8ED2B4564F7002C94D2
/* YHPersonalCenterCell.swift */
,
049A48A92B49536000D0C641
/* YHAboutUsAdvantageCell.swift */
,
04C693632B723B56004C1758
/* YHMySettingCell.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -1500,12 +1506,14 @@
A5ACE92E2B4564F7002C94D2
/* YHValidateCodeInputView.swift in Sources */
,
A5ACE94E2B4564F7002C94D2
/* AlignedCollectionViewFlowLayout.swift in Sources */
,
A5ACE93B2B4564F7002C94D2
/* UIFont+Extension.swift in Sources */
,
04C693642B723B56004C1758
/* YHMySettingCell.swift in Sources */
,
A5FD63C92B63A35B00D1D9DA
/* YHInformationFillTipsAlertView.swift in Sources */
,
A5ACE9282B4564F7002C94D2
/* YHSmsCodeView.swift in Sources */
,
0468D4432B61F76800CFB916
/* YHMainApplicantInformationViewController.swift in Sources */
,
0468D4262B495A5400CFB916
/* YHPickPhoneAddressViewController.swift in Sources */
,
A5C5B32D2B57D66000A7C5D1
/* YHBbxCollectionViewCell.swift in Sources */
,
0468D47C2B68A08600CFB916
/* YHAddressPickView.swift in Sources */
,
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
,
A5FD63D82B6603A500D1D9DA
/* YHScoreResultView.swift in Sources */
,
A5ACE9342B4564F7002C94D2
/* YHAllApiName.swift in Sources */
,
A5ACE9502B4564F7002C94D2
/* YhCacheTool.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
0 → 100644
View file @
a3131834
//
// YHMySettingViewController.swift
// galaxy
//
// Created by edy on 2024/2/6.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
SnapKit
import
NEConversationUIKit
class
YHMySettingViewController
:
YHBaseViewController
,
ConstraintRelatableTarget
{
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
plain
)
if
#available(iOS 11.0, *)
{
tableView
.
contentInsetAdjustmentBehavior
=
.
never
}
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
register
(
YHMySettingCell
.
self
,
forCellReuseIdentifier
:
YHMySettingCell
.
cellReuseIdentifier
)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
return
tableView
}()
lazy
var
items
:
[
PersonalModuleItem
]
=
{
return
[
PersonalModuleItem
(
title
:
"调整颜色"
.
local
.
local
),
PersonalModuleItem
(
title
:
"深色模式"
.
local
),
PersonalModuleItem
(
title
:
"个人信息收集清单"
.
local
),
PersonalModuleItem
(
title
:
"第三方信息共享清单"
.
local
),
PersonalModuleItem
(
title
:
"关于我们"
.
local
)]
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
initView
()
}
func
initView
()
{
self
.
gk_navTitle
=
"设置"
.
local
view
.
addSubview
(
tableView
)
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
}
extension
YHMySettingViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
items
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHMySettingCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHMySettingCell
let
item
:
PersonalModuleItem
=
items
[
indexPath
.
row
];
cell
.
titleLabel
.
text
=
item
.
title
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
53.0
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
(
indexPath
.
row
>=
items
.
count
)
{
return
}
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
a3131834
...
...
@@ -10,8 +10,12 @@ import SnapKit
import
NEConversationUIKit
struct
PersonalModuleItem
{
var
icon
:
String
var
icon
:
String
?
var
title
:
String
init
(
icon
:
String
?
=
nil
,
title
:
String
)
{
self
.
icon
=
icon
self
.
title
=
title
}
}
class
YHMyViewController
:
YHBaseViewController
,
ConstraintRelatableTarget
{
...
...
@@ -41,7 +45,14 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
}()
lazy
var
headerView
:
YHUserInfoHeaderView
=
{
return
YHUserInfoHeaderView
.
createView
()
let
view
=
YHUserInfoHeaderView
.
createView
()
view
.
settingBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
vc
=
YHMySettingViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
return
view
}()
private
lazy
var
bgImgView
:
UIImageView
=
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMySettingCell.swift
0 → 100644
View file @
a3131834
//
// YHMySettingCell.swift
// galaxy
//
// Created by edy on 2024/2/6.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHMySettingCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHMySettingCell"
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hexString
:
"#141414"
)
label
.
textAlignment
=
.
left
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
return
label
}()
lazy
var
arrowImgView
:
UIImageView
=
{
let
arrowImgView
=
UIImageView
(
image
:
UIImage
(
named
:
"mine_arrow_right"
))
return
arrowImgView
}()
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
arrowImgView
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
contentView
)
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
right
.
equalTo
(
arrowImgView
.
snp
.
left
)
}
arrowImgView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
20
)
make
.
height
.
equalTo
(
20
)
make
.
centerY
.
equalTo
(
contentView
)
make
.
right
.
equalTo
(
contentView
)
.
offset
(
-
20
)
}
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHPersonalCenterCell.swift
View file @
a3131834
...
...
@@ -40,7 +40,11 @@ class YHPersonalCenterCell: UITableViewCell {
}
func
updateItem
(
item
:
PersonalModuleItem
)
{
iconImgView
.
image
=
UIImage
(
named
:
item
.
icon
)
if
let
icon
=
item
.
icon
,
!
icon
.
isEmpty
{
iconImgView
.
image
=
UIImage
(
named
:
icon
)
}
else
{
iconImgView
.
image
=
nil
}
titleLabel
.
text
=
item
.
title
;
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHUserInfoHeaderView.swift
View file @
a3131834
...
...
@@ -12,6 +12,9 @@ class YHUserInfoHeaderView: UIView {
static
let
bgRatio
=
312.0
/
375.0
// 背景图高宽比
static
let
height
=
(
KScreenWidth
*
bgRatio
+
24
)
var
settingBlock
:(()
->
Void
)?
private
lazy
var
avarImgView
:
UIImageView
=
{
let
img
=
UIImageView
(
image
:
UIImage
(
named
:
"mine_head_default"
))
return
img
...
...
@@ -178,7 +181,9 @@ class YHUserInfoHeaderView: UIView {
@objc
func
didClickEvaluateBtn
(
btn
:
UIButton
)
{
if
let
settingBlock
=
settingBlock
{
settingBlock
()
}
}
}
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