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
2f548844
Commit
2f548844
authored
Jun 27, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 人脉
parent
f07d7667
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
30 deletions
+37
-30
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+12
-12
YHCommunityViewController.swift
...s/Modules/Community(社区)/C/YHCommunityViewController.swift
+1
-1
YHMatchResultListViewController.swift
...les/Community(社区)/C/YHMatchResultListViewController.swift
+5
-5
YHMatchUserViewController.swift
...s/Modules/Community(社区)/C/YHMatchUserViewController.swift
+5
-5
YHMyGoodFriendsVC.swift
...y/Classes/Modules/Community(社区)/C/YHMyGoodFriendsVC.swift
+1
-1
YHNameCardViewController.swift
...es/Modules/Community(社区)/C/YHNameCardViewController.swift
+11
-4
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+2
-2
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
2f548844
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHCommunityViewController.swift
View file @
2f548844
...
...
@@ -131,7 +131,7 @@ class YHCommunityViewController: YHBaseViewController {
let
vc
=
YHActivityListViewController
()
arrItemVCs
.
append
(
vc
)
}
else
{
let
vc
=
YH
People
ViewController
()
let
vc
=
YH
MatchUser
ViewController
()
arrItemVCs
.
append
(
vc
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatch
People
ViewController.swift
→
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatch
ResultList
ViewController.swift
View file @
2f548844
...
...
@@ -13,7 +13,7 @@ protocol YHMatchProtocol: NSObjectProtocol {
func
startMatchUsers
()
}
class
YHMatch
People
ViewController
:
YHBaseViewController
{
class
YHMatch
ResultList
ViewController
:
YHBaseViewController
{
let
viewModel
=
YHMatchUserViewModel
()
let
loginViewModel
=
YHLoginViewModel
()
...
...
@@ -159,7 +159,7 @@ class YHMatchPeopleViewController: YHBaseViewController {
}
if
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
,
!
userId
.
isEmpty
{
let
vc
=
YH
My
NameCardViewController
()
let
vc
=
YHNameCardViewController
()
vc
.
userId
=
userId
self
.
navigationController
?
.
pushViewController
(
vc
)
}
else
{
...
...
@@ -170,7 +170,7 @@ class YHMatchPeopleViewController: YHBaseViewController {
guard
let
self
=
self
else
{
return
}
if
!
uid
.
isEmpty
{
YHLoginManager
.
shared
.
userModel
?
.
id
=
uid
let
vc
=
YH
My
NameCardViewController
()
let
vc
=
YHNameCardViewController
()
vc
.
userId
=
uid
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
@@ -347,7 +347,7 @@ class YHMatchPeopleViewController: YHBaseViewController {
}
}
extension
YHMatch
People
ViewController
:
DragCardDataSource
{
extension
YHMatch
ResultList
ViewController
:
DragCardDataSource
{
public
func
numberOfCards
(
_
dragCard
:
DragCardContainer
)
->
Int
{
return
matchUsersArr
.
count
...
...
@@ -384,7 +384,7 @@ extension YHMatchPeopleViewController: DragCardDataSource {
}
}
extension
YHMatch
People
ViewController
:
DragCardDelegate
{
extension
YHMatch
ResultList
ViewController
:
DragCardDelegate
{
public
func
dragCard
(
_
dragCard
:
DragCardContainer
,
displayTopCardAt
index
:
Int
,
with
cardView
:
DragCardView
)
{
print
(
"displayTopCardAt:
\(
index
)
"
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YH
People
ViewController.swift
→
galaxy/galaxy/Classes/Modules/Community(社区)/C/YH
MatchUser
ViewController.swift
View file @
2f548844
...
...
@@ -10,7 +10,7 @@ import UIKit
import
JXSegmentedView
import
Lottie
class
YH
People
ViewController
:
YHBaseViewController
{
class
YH
MatchUser
ViewController
:
YHBaseViewController
{
let
viewModel
=
YHMatchUserViewModel
()
var
informationAuthorizeViewModel
:
YHInformationAuthorizeViewModel
=
YHInformationAuthorizeViewModel
()
...
...
@@ -186,13 +186,13 @@ class YHPeopleViewController: YHBaseViewController {
}
}
extension
YH
People
ViewController
:
JXSegmentedListContainerViewListDelegate
{
extension
YH
MatchUser
ViewController
:
JXSegmentedListContainerViewListDelegate
{
func
listView
()
->
UIView
{
return
view
}
}
extension
YH
People
ViewController
:
YHMatchProtocol
{
extension
YH
MatchUser
ViewController
:
YHMatchProtocol
{
func
startMatchUsers
()
{
self
.
headLottieView
.
isHidden
=
true
self
.
launchLottieView
.
isHidden
=
false
...
...
@@ -209,13 +209,13 @@ extension YHPeopleViewController: YHMatchProtocol {
}
}
extension
YH
People
ViewController
{
extension
YH
MatchUser
ViewController
{
func
requestMatchUserList
()
{
self
.
viewModel
.
getMatchUserlist
{
success
,
error
in
if
success
,
self
.
viewModel
.
matchUserArr
.
count
>
0
{
let
vc
=
YHMatch
People
ViewController
()
let
vc
=
YHMatch
ResultList
ViewController
()
vc
.
delegate
=
self
vc
.
matchUsersArr
=
self
.
viewModel
.
matchUserArr
self
.
navigationController
?
.
pushViewController
(
vc
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMyGoodFriendsVC.swift
View file @
2f548844
...
...
@@ -151,7 +151,7 @@ extension YHMyGoodFriendsVC: UITableViewDelegate, UITableViewDataSource {
if
indexPath
.
section
==
1
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
friendsArr
.
count
{
let
friend
=
self
.
friendsArr
[
indexPath
.
row
]
let
vc
=
YH
My
NameCardViewController
()
let
vc
=
YHNameCardViewController
()
vc
.
userId
=
friend
.
yhId
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YH
My
NameCardViewController.swift
→
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHNameCardViewController.swift
View file @
2f548844
...
...
@@ -8,7 +8,7 @@
import
UIKit
class
YH
My
NameCardViewController
:
YHBaseViewController
{
class
YHNameCardViewController
:
YHBaseViewController
{
var
userId
:
String
=
""
var
cardInfoArr
:[
YHUserNameCardInfo
]
=
[]
...
...
@@ -46,7 +46,7 @@ class YHMyNameCardViewController: YHBaseViewController {
lazy
var
navBar
:
YHCustomNavigationBar
=
{
let
bar
=
YHCustomNavigationBar
.
navBar
()
bar
.
backgroundColor
=
.
clear
bar
.
title
=
"我的
名片"
bar
.
title
=
self
.
isCurrentUser
?
"我的名片"
:
"好友
名片"
bar
.
titleColor
=
.
white
bar
.
rightButton
.
setImage
(
UIImage
(
named
:
"people_card_authorized"
),
for
:
.
normal
)
bar
.
rightButton
.
setTitle
(
"授权"
,
for
:
.
normal
)
...
...
@@ -111,7 +111,7 @@ class YHMyNameCardViewController: YHBaseViewController {
}
}
extension
YH
My
NameCardViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHNameCardViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
self
.
cardInfoArr
.
count
...
...
@@ -230,7 +230,7 @@ extension YHMyNameCardViewController: UITableViewDelegate, UITableViewDataSource
}
extension
YH
My
NameCardViewController
{
extension
YHNameCardViewController
{
func
requestAuthorization
()
{
self
.
authorModel
.
requestUserAuthorization
{
success
,
error
in
...
...
@@ -258,18 +258,21 @@ extension YHMyNameCardViewController {
self
.
cardInfoArr
.
removeAll
()
// 姓名头像信息
let
model1
=
YHUserNameCardInfo
()
model1
.
type
=
.
avatar
model1
.
isCurrentUser
=
self
.
isCurrentUser
model1
.
updateModel
(
self
.
viewModel
.
nameCardInfo
)
self
.
cardInfoArr
.
append
(
model1
)
// 个人简介信息
let
model2
=
YHUserNameCardInfo
()
model2
.
type
=
.
introduce
model2
.
isCurrentUser
=
self
.
isCurrentUser
model2
.
updateModel
(
self
.
viewModel
.
nameCardInfo
)
self
.
cardInfoArr
.
append
(
model2
)
// 教育经历信息
if
!
self
.
isCurrentUser
{
if
!
self
.
viewModel
.
nameCardInfo
.
isHiddenEducation
{
let
model3
=
YHUserNameCardInfo
()
...
...
@@ -286,6 +289,8 @@ extension YHMyNameCardViewController {
self
.
cardInfoArr
.
append
(
model3
)
}
// 工作经历信息
if
!
self
.
isCurrentUser
{
if
!
self
.
viewModel
.
nameCardInfo
.
isHiddenWorkExperience
{
let
model4
=
YHUserNameCardInfo
()
...
...
@@ -302,12 +307,14 @@ extension YHMyNameCardViewController {
self
.
cardInfoArr
.
append
(
model4
)
}
// 荣誉奖项信息
let
model5
=
YHUserNameCardInfo
()
model5
.
type
=
.
honor
model5
.
isCurrentUser
=
self
.
isCurrentUser
model5
.
updateModel
(
self
.
viewModel
.
nameCardInfo
)
self
.
cardInfoArr
.
append
(
model5
)
// 兴趣话题
let
model6
=
YHUserNameCardInfo
()
model6
.
type
=
.
topics
model6
.
isCurrentUser
=
self
.
isCurrentUser
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
2f548844
...
...
@@ -289,7 +289,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
switch
item
.
type
{
case
.
myCard
:
//我的名片
if
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
,
!
userId
.
isEmpty
{
let
vc
=
YH
My
NameCardViewController
()
let
vc
=
YHNameCardViewController
()
vc
.
userId
=
userId
self
.
navigationController
?
.
pushViewController
(
vc
)
}
else
{
...
...
@@ -300,7 +300,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
guard
let
self
=
self
else
{
return
}
if
!
uid
.
isEmpty
{
YHLoginManager
.
shared
.
userModel
?
.
id
=
uid
let
vc
=
YH
My
NameCardViewController
()
let
vc
=
YHNameCardViewController
()
vc
.
userId
=
uid
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
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