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
6d00cc0a
Commit
6d00cc0a
authored
Jul 02, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI更改
parent
9c7966bd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
13 deletions
+28
-13
YHMatchUserViewController.swift
...s/Modules/Community(社区)/C/YHMatchUserViewController.swift
+3
-10
YHNameCardInfoView.swift
.../Classes/Modules/Community(社区)/V/YHNameCardInfoView.swift
+3
-3
Contents.json
...cassets/People/people_exchange_btn.imageset/Contents.json
+22
-0
Rectangle 30 Copy@2x.png
...ple/people_exchange_btn.imageset/Rectangle 30 Copy@2x.png
+0
-0
Rectangle 30 Copy@3x.png
...ple/people_exchange_btn.imageset/Rectangle 30 Copy@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatchUserViewController.swift
View file @
6d00cc0a
...
@@ -44,9 +44,7 @@ class YHMatchUserViewController: YHBaseViewController {
...
@@ -44,9 +44,7 @@ class YHMatchUserViewController: YHBaseViewController {
btn
.
addTarget
(
self
,
action
:
#selector(
didMatchBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
didMatchBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
return
btn
}()
}()
var
isBottomBtnEnabled
=
true
lazy
var
headLottieView
:
LottieAnimationView
=
{
lazy
var
headLottieView
:
LottieAnimationView
=
{
let
view
=
LottieAnimationView
(
name
:
"people_head"
)
let
view
=
LottieAnimationView
(
name
:
"people_head"
)
view
.
loopMode
=
.
loop
view
.
loopMode
=
.
loop
...
@@ -227,6 +225,7 @@ class YHMatchUserViewController: YHBaseViewController {
...
@@ -227,6 +225,7 @@ class YHMatchUserViewController: YHBaseViewController {
self
.
wingLeftImgV
.
isHidden
=
false
self
.
wingLeftImgV
.
isHidden
=
false
self
.
wingRightImgV
.
isHidden
=
false
self
.
wingRightImgV
.
isHidden
=
false
self
.
topLabel
.
isHidden
=
false
self
.
topLabel
.
isHidden
=
false
self
.
bottomBtn
.
isHidden
=
false
}
}
}
}
...
@@ -238,12 +237,7 @@ extension YHMatchUserViewController: JXSegmentedListContainerViewListDelegate {
...
@@ -238,12 +237,7 @@ extension YHMatchUserViewController: JXSegmentedListContainerViewListDelegate {
extension
YHMatchUserViewController
:
YHMatchProtocol
{
extension
YHMatchUserViewController
:
YHMatchProtocol
{
func
startMatchUsers
()
{
func
startMatchUsers
()
{
self
.
bottomBtn
.
isHidden
=
true
if
!
self
.
isBottomBtnEnabled
{
return
}
self
.
isBottomBtnEnabled
=
false
self
.
headLottieView
.
isHidden
=
true
self
.
headLottieView
.
isHidden
=
true
self
.
launchLottieView
.
isHidden
=
false
self
.
launchLottieView
.
isHidden
=
false
self
.
topLabel
.
isHidden
=
true
self
.
topLabel
.
isHidden
=
true
...
@@ -268,7 +262,6 @@ extension YHMatchUserViewController {
...
@@ -268,7 +262,6 @@ extension YHMatchUserViewController {
func
requestMatchUserList
()
{
func
requestMatchUserList
()
{
self
.
viewModel
.
getMatchUserlist
{
self
.
viewModel
.
getMatchUserlist
{
success
,
error
in
success
,
error
in
self
.
isBottomBtnEnabled
=
true
if
success
,
self
.
viewModel
.
matchUserArr
.
count
>
0
{
if
success
,
self
.
viewModel
.
matchUserArr
.
count
>
0
{
let
vc
=
YHMatchResultListViewController
()
let
vc
=
YHMatchResultListViewController
()
vc
.
delegate
=
self
vc
.
delegate
=
self
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHNameCardInfoView.swift
View file @
6d00cc0a
...
@@ -106,7 +106,7 @@ class YHNameCardInfoView: DragCardView {
...
@@ -106,7 +106,7 @@ class YHNameCardInfoView: DragCardView {
let
nameLabel
=
UILabel
()
let
nameLabel
=
UILabel
()
nameLabel
.
textAlignment
=
.
center
nameLabel
.
textAlignment
=
.
center
nameLabel
.
textColor
=
UIColor
.
mainTextColor
nameLabel
.
textColor
=
UIColor
.
mainTextColor
nameLabel
.
font
=
UIFont
.
PFSC_
B
(
ofSize
:
18
)
nameLabel
.
font
=
UIFont
.
PFSC_
M
(
ofSize
:
21
)
return
nameLabel
return
nameLabel
}()
}()
...
@@ -137,7 +137,7 @@ class YHNameCardInfoView: DragCardView {
...
@@ -137,7 +137,7 @@ class YHNameCardInfoView: DragCardView {
lazy
var
bottomBtn
:
UIButton
=
{
lazy
var
bottomBtn
:
UIButton
=
{
let
btn
=
UIButton
()
let
btn
=
UIButton
()
btn
.
backgroundColor
=
.
brandMainColor
btn
.
setBackgroundImage
(
UIImage
(
named
:
"people_exchange_btn"
),
for
:
.
normal
)
btn
.
setTitle
(
"交换名片"
,
for
:
.
normal
)
btn
.
setTitle
(
"交换名片"
,
for
:
.
normal
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
.
PFSC_M
(
ofSize
:
15
)
btn
.
titleLabel
?
.
font
=
.
PFSC_M
(
ofSize
:
15
)
...
@@ -180,7 +180,7 @@ class YHNameCardInfoView: DragCardView {
...
@@ -180,7 +180,7 @@ class YHNameCardInfoView: DragCardView {
private
func
initUI
()
{
private
func
initUI
()
{
self
.
backgroundColor
=
.
white
self
.
backgroundColor
=
.
white
self
.
layer
.
cornerRadius
=
3
.0
self
.
layer
.
cornerRadius
=
6
.0
self
.
clipsToBounds
=
true
self
.
clipsToBounds
=
true
}
}
...
...
galaxy/galaxy/Res/Assets.xcassets/People/people_exchange_btn.imageset/Contents.json
0 → 100644
View file @
6d00cc0a
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Rectangle 30 Copy@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Rectangle 30 Copy@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/People/people_exchange_btn.imageset/Rectangle 30 Copy@2x.png
0 → 100644
View file @
6d00cc0a
41.7 KB
galaxy/galaxy/Res/Assets.xcassets/People/people_exchange_btn.imageset/Rectangle 30 Copy@3x.png
0 → 100644
View file @
6d00cc0a
90.1 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