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
0ad28c53
Commit
0ad28c53
authored
Jun 17, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的好友
parent
8932aa9a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
246 additions
and
8 deletions
+246
-8
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+16
-8
YHMyGoodFriendsVC.swift
...y/Classes/Modules/Community(社区)/C/YHMyGoodFriendsVC.swift
+70
-0
YHPeopleViewController.swift
...sses/Modules/Community(社区)/C/YHPeopleViewController.swift
+7
-0
YHMyFriendsCell.swift
...axy/Classes/Modules/Community(社区)/V/YHMyFriendsCell.swift
+125
-0
Contents.json
galaxy/galaxy/Res/Assets.xcassets/People/Contents.json
+6
-0
Contents.json
...Assets.xcassets/People/people_sign.imageset/Contents.json
+22
-0
Group 2033194948@2x.png
...ssets/People/people_sign.imageset/Group 2033194948@2x.png
+0
-0
Group 2033194948@3x.png
...ssets/People/people_sign.imageset/Group 2033194948@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
0ad28c53
...
...
@@ -311,6 +311,8 @@
04F5F86E2C1AC351004A463C
/* YHHKEventCenterViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F5F86D2C1AC351004A463C
/* YHHKEventCenterViewController.swift */
;
};
04F5F8702C1AC4C2004A463C
/* YHHKEventWebViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F5F86F2C1AC4C2004A463C
/* YHHKEventWebViewController.swift */
;
};
04F957452C1FEC4A003C631C
/* YHMessageBellView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F957442C1FEC4A003C631C
/* YHMessageBellView.swift */
;
};
04F957472C203033003C631C
/* YHMyGoodFriendsVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F957462C203033003C631C
/* YHMyGoodFriendsVC.swift */
;
};
04F9574B2C2032D8003C631C
/* YHMyFriendsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F9574A2C2032D8003C631C
/* YHMyFriendsCell.swift */
;
};
04FA8B2B2C06F59D00ABE43F
/* YHAppleLoginManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FA8B2A2C06F59D00ABE43F
/* YHAppleLoginManager.swift */
;
};
04FA8B2E2C084C7E00ABE43F
/* ATAuthSDK.bundle in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FA8B2D2C084C7E00ABE43F
/* ATAuthSDK.bundle */
;
};
04FA8B302C0874CA00ABE43F
/* YHOneKeyLoginViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FA8B2F2C0874CA00ABE43F
/* YHOneKeyLoginViewModel.swift */
;
};
...
...
@@ -802,6 +804,8 @@
04F5F86D2C1AC351004A463C
/* YHHKEventCenterViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKEventCenterViewController.swift
;
sourceTree
=
"<group>"
;
};
04F5F86F2C1AC4C2004A463C
/* YHHKEventWebViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKEventWebViewController.swift
;
sourceTree
=
"<group>"
;
};
04F957442C1FEC4A003C631C
/* YHMessageBellView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMessageBellView.swift
;
sourceTree
=
"<group>"
;
};
04F957462C203033003C631C
/* YHMyGoodFriendsVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyGoodFriendsVC.swift
;
sourceTree
=
"<group>"
;
};
04F9574A2C2032D8003C631C
/* YHMyFriendsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyFriendsCell.swift
;
sourceTree
=
"<group>"
;
};
04FA8B2A2C06F59D00ABE43F
/* YHAppleLoginManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAppleLoginManager.swift
;
sourceTree
=
"<group>"
;
};
04FA8B2D2C084C7E00ABE43F
/* ATAuthSDK.bundle */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.plug-in"
;
name
=
ATAuthSDK.bundle
;
path
=
"galaxy/Classes/Modules/AutoLogin(一键登录)/framework/ATAuthSDK_D.framework/ATAuthSDK.bundle"
;
sourceTree
=
"<group>"
;
};
04FA8B2F2C0874CA00ABE43F
/* YHOneKeyLoginViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOneKeyLoginViewModel.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1107,10 +1111,10 @@
044D0BE82C2019AC00C5CF5E
/* Community(社区) */
=
{
isa
=
PBXGroup
;
children
=
(
04F957492C2032A0003C631C
/* V */
,
044D0BE92C2019AC00C5CF5E
/* VM */
,
044D0BEA2C2019AC00C5CF5E
/* M */
,
044D0BEB2C2019AC00C5CF5E
/* C */
,
044D0BEC2C2019AC00C5CF5E
/* V */
,
);
path
=
"Community(社区)"
;
sourceTree
=
"<group>"
;
...
...
@@ -1135,17 +1139,11 @@
044D0BED2C2019C100C5CF5E
/* YHCommunityViewController.swift */
,
044D0BEF2C2025FF00C5CF5E
/* YHActivityViewController.swift */
,
044D0BF12C20262100C5CF5E
/* YHPeopleViewController.swift */
,
04F957462C203033003C631C
/* YHMyGoodFriendsVC.swift */
,
);
path
=
C
;
sourceTree
=
"<group>"
;
};
044D0BEC2C2019AC00C5CF5E
/* V */
=
{
isa
=
PBXGroup
;
children
=
(
);
path
=
V
;
sourceTree
=
"<group>"
;
};
045EED972B9F171A0022A143
/* ServiceProcess(我的信息流程) */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -1970,6 +1968,14 @@
path
=
Server
;
sourceTree
=
"<group>"
;
};
04F957492C2032A0003C631C
/* V */
=
{
isa
=
PBXGroup
;
children
=
(
04F9574A2C2032D8003C631C
/* YHMyFriendsCell.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
};
04FA8B312C08808B00ABE43F
/* V */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2915,6 +2921,7 @@
045EEF1A2B9F171A0022A143
/* YHAddressViewController.swift in Sources */
,
A5C382CA2B5E1F4C00C5E65C
/* YHLoginTipsView.swift in Sources */
,
045EEEE92B9F171A0022A143
/* YHFamilyRequestViewModel.swift in Sources */
,
04F957472C203033003C631C
/* YHMyGoodFriendsVC.swift in Sources */
,
044867B42BA1953B00DFAD4A
/* YHCertificateFilterView.swift in Sources */
,
045EEEDF2B9F171A0022A143
/* YHCollegeSearchBar.swift in Sources */
,
044D0BEE2C2019C100C5CF5E
/* YHCommunityViewController.swift in Sources */
,
...
...
@@ -3193,6 +3200,7 @@
A5ACE9352B4564F7002C94D2
/* YHNetRequest.swift in Sources */
,
A5FD63CB2B63D6C300D1D9DA
/* YHInformationFillTipsCell.swift in Sources */
,
04F5F8622C1945C0004A463C
/* YHHKIdentityCardViewController.swift in Sources */
,
04F9574B2C2032D8003C631C
/* YHMyFriendsCell.swift in Sources */
,
045EEF1F2B9F171A0022A143
/* YHDatePickView.swift in Sources */
,
04174D7A2BCD5B74000BA46D
/* YHDetailMessageCell.swift in Sources */
,
045EEE972B9F171A0022A143
/* YHPreviewInfoWorkExpView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMyGoodFriendsVC.swift
0 → 100644
View file @
0ad28c53
//
// YHMyGoodFriendsVC.swift
// galaxy
//
// Created by edy on 2024/6/17.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHMyGoodFriendsVC
:
YHBaseViewController
{
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
estimatedSectionHeaderHeight
=
1.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
.
white
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHMyFriendsCell
.
self
,
forCellReuseIdentifier
:
YHMyFriendsCell
.
cellReuseIdentifier
)
return
tableView
}()
var
friendsArr
:[
String
]
=
[
""
,
""
,
""
,
""
]
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
gk_navTitle
=
"我的好友"
gk_navBackgroundColor
=
.
white
self
.
view
.
addSubview
(
self
.
tableView
)
self
.
tableView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
}
}
}
extension
YHMyGoodFriendsVC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
friendsArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHMyFriendsCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHMyFriendsCell
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
friendsArr
.
count
{
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
101
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
friendsArr
.
count
{
}
}
}
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHPeopleViewController.swift
View file @
0ad28c53
...
...
@@ -14,6 +14,13 @@ class YHPeopleViewController: YHBaseViewController {
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
abc
)
)
self
.
view
.
addGestureRecognizer
(
tap
)
}
@objc
func
abc
()
{
let
vc
=
YHMyGoodFriendsVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyFriendsCell.swift
0 → 100644
View file @
0ad28c53
//
// YHMyFriendsCell.swift
// galaxy
//
// Created by edy on 2024/6/17.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHMyFriendsCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHMyFriendsCell"
lazy
var
headImgV
:
UIImageView
=
{
let
view
=
UIImageView
()
view
.
layer
.
cornerRadius
=
23.0
return
view
}()
lazy
var
nameLabel
:
UILabel
=
{
let
nameLabel
=
UILabel
()
nameLabel
.
textColor
=
UIColor
.
mainTextColor
nameLabel
.
textAlignment
=
.
left
nameLabel
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
16
)
return
nameLabel
}()
lazy
var
signImgV
:
UIImageView
=
{
let
view
=
UIImageView
()
view
.
image
=
UIImage
(
named
:
"people_sign"
)
return
view
}()
lazy
var
lineView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
return
view
}()
lazy
var
professionalLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor70
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
return
label
}()
lazy
var
detailLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor50
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
return
label
}()
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
.
backgroundColor
=
.
white
self
.
contentView
.
addSubview
(
self
.
headImgV
)
self
.
contentView
.
addSubview
(
self
.
nameLabel
)
self
.
contentView
.
addSubview
(
self
.
signImgV
)
self
.
contentView
.
addSubview
(
self
.
professionalLabel
)
self
.
contentView
.
addSubview
(
self
.
detailLabel
)
self
.
contentView
.
addSubview
(
self
.
lineView
)
self
.
headImgV
.
backgroundColor
=
.
red
self
.
nameLabel
.
text
=
"XASAFSDFASDXASAFSDFASDXASAFSDFASDXASAFSDFASD"
self
.
professionalLabel
.
text
=
"咨询副总监 | 资讯科技及电讯"
self
.
detailLabel
.
text
=
"极致服务|创新突破|长期主义|合作共赢|求真务实"
self
.
lineView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
15
)
make
.
right
.
equalTo
(
-
15
)
make
.
top
.
equalTo
(
0
)
make
.
height
.
equalTo
(
1
)
}
self
.
headImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
46.0
)
make
.
left
.
equalTo
(
16
)
make
.
top
.
equalTo
(
16
)
}
self
.
nameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
self
.
headImgV
.
snp
.
right
)
.
offset
(
10
)
make
.
height
.
equalTo
(
22.0
)
make
.
top
.
equalTo
(
self
.
headImgV
)
}
self
.
signImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
49
)
make
.
height
.
equalTo
(
16
)
make
.
centerY
.
equalTo
(
self
.
nameLabel
)
make
.
left
.
equalTo
(
self
.
nameLabel
.
snp
.
right
)
.
offset
(
8
)
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
15
)
}
self
.
professionalLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
self
.
nameLabel
)
make
.
right
.
equalTo
(
self
.
lineView
)
make
.
top
.
equalTo
(
self
.
nameLabel
.
snp
.
bottom
)
.
offset
(
6
)
make
.
height
.
equalTo
(
18
)
}
self
.
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
self
.
nameLabel
)
make
.
right
.
equalTo
(
self
.
lineView
)
make
.
top
.
equalTo
(
self
.
professionalLabel
.
snp
.
bottom
)
.
offset
(
6
)
make
.
height
.
equalTo
(
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
}
galaxy/galaxy/Res/Assets.xcassets/People/Contents.json
0 → 100644
View file @
0ad28c53
{
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/People/people_sign.imageset/Contents.json
0 → 100644
View file @
0ad28c53
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Group 2033194948@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Group 2033194948@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/People/people_sign.imageset/Group 2033194948@2x.png
0 → 100644
View file @
0ad28c53
4.69 KB
galaxy/galaxy/Res/Assets.xcassets/People/people_sign.imageset/Group 2033194948@3x.png
0 → 100644
View file @
0ad28c53
8.55 KB
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