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
246a4000
Commit
246a4000
authored
May 17, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加测试代码
parent
0830b624
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
2 deletions
+68
-2
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHScorePersonInfoCell.swift
...Service(服务中心)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
+0
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+7
-1
YHTestViewController.swift
...axy/Classes/Modules/Mine(我的)/C/YHTestViewController.swift
+57
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
246a4000
...
...
@@ -412,6 +412,7 @@
A5D335F92BCE51E700236F21
/* YHServiceCenterProgressModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5D335F82BCE51E700236F21
/* YHServiceCenterProgressModel.swift */
;
};
A5D5ADEF2BB90FBC0039FA6B
/* YHCheckEamilAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5D5ADEE2BB90FBB0039FA6B
/* YHCheckEamilAlertView.swift */
;
};
A5DE0D3C2BB9016200976FE1
/* YHEmailInputAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5DE0D3B2BB9016200976FE1
/* YHEmailInputAlertView.swift */
;
};
A5DF3D462BF72BA1003D5F03
/* YHTestViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5DF3D452BF72BA0003D5F03
/* YHTestViewController.swift */
;
};
A5E69D512BA304D400411932
/* DIN Alternate Bold.ttf in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5E69D502BA304D400411932
/* DIN Alternate Bold.ttf */
;
};
A5EF21312BA6DF94005027E6
/* YHMineSchemeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5EF21302BA6DF94005027E6
/* YHMineSchemeViewController.swift */
;
};
A5EF21332BA6E030005027E6
/* YHFileListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5EF21322BA6E030005027E6
/* YHFileListViewController.swift */
;
};
...
...
@@ -875,6 +876,7 @@
A5D335F82BCE51E700236F21
/* YHServiceCenterProgressModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceCenterProgressModel.swift
;
sourceTree
=
"<group>"
;
};
A5D5ADEE2BB90FBB0039FA6B
/* YHCheckEamilAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCheckEamilAlertView.swift
;
sourceTree
=
"<group>"
;
};
A5DE0D3B2BB9016200976FE1
/* YHEmailInputAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEmailInputAlertView.swift
;
sourceTree
=
"<group>"
;
};
A5DF3D452BF72BA0003D5F03
/* YHTestViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTestViewController.swift
;
sourceTree
=
"<group>"
;
};
A5E69D502BA304D400411932
/* DIN Alternate Bold.ttf */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file
;
path
=
"DIN Alternate Bold.ttf"
;
sourceTree
=
"<group>"
;
};
A5EF21302BA6DF94005027E6
/* YHMineSchemeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMineSchemeViewController.swift
;
sourceTree
=
"<group>"
;
};
A5EF21322BA6E030005027E6
/* YHFileListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFileListViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2104,6 +2106,7 @@
049A48A72B49417300D0C641
/* YHAboutUsViewController.swift */
,
048B2A492BC7D9DC00A93BF0
/* YHMyLikeViewController.swift */
,
04174D632BCD52BD000BA46D
/* YHDeviceInfoViewController.swift */
,
A5DF3D452BF72BA0003D5F03
/* YHTestViewController.swift */
,
);
path
=
C
;
sourceTree
=
"<group>"
;
...
...
@@ -2854,6 +2857,7 @@
0445E6B42BEA15C4003C52F9
/* YHAppVersionManager.swift in Sources */
,
04EA230C2BB5199D009DA928
/* YHDocumentToActionTableViewCell.swift in Sources */
,
A5ACE9572B4564F7002C94D2
/* YHBasicContentView.swift in Sources */
,
A5DF3D462BF72BA1003D5F03
/* YHTestViewController.swift in Sources */
,
A517A4E52BB6C4BB000DEECD
/* YHDocumentFileItemView.swift in Sources */
,
045EEEFE2B9F171A0022A143
/* YHFormItemInputTextCell.swift in Sources */
,
045EEEDD2B9F171A0022A143
/* YHCollegeNameCell.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
View file @
246a4000
...
...
@@ -268,7 +268,6 @@ extension YHScorePersonInfoCell {
guard
let
self
=
self
else
{
return
}
guard
success
!=
nil
else
{
return
}
self
.
headImagV
.
kf
.
setImage
(
with
:
URL
(
string
:
success
),
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
246a4000
...
...
@@ -268,6 +268,12 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
if
(
indexPath
.
row
>=
items
.
count
)
{
return
}
#if DEBUG
let
vc
=
YHTestViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
return
#endif
if
!
checkLogin
()
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginViewController
())
vc
.
modalPresentationStyle
=
.
custom
...
...
@@ -286,7 +292,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
if
let
param
=
YHLoginManager
.
shared
.
userModel
?
.
token
,
param
.
count
>
5
{
printLog
(
param
)
var
token
:
String
=
param
var
url
=
YHBaseUrlManager
.
shared
.
curH5URL
()
+
"superApp/integral"
let
addtionString
=
randomAlphanumericString
(
6
)
//随机6个字母或者数字
let
indexToInsert
=
token
.
index
(
token
.
startIndex
,
offsetBy
:
6
)
//插入位置,这里以第六个字符后面为例
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHTestViewController.swift
0 → 100644
View file @
246a4000
//
// YHTestViewController.swift
// galaxy
//
// Created by davidhuangA on 2024/5/17.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHTestViewController
:
YHBaseViewController
{
var
gradientLayer
:
CAGradientLayer
=
{
let
gradientLayer
=
CAGradientLayer
()
gradientLayer
.
colors
=
[
UIColor
(
hex
:
0xFFF9E3
,
alpha
:
1.0
)
.
cgColor
,
UIColor
(
hex
:
0xFFE895
,
alpha
:
1.0
)
.
cgColor
]
gradientLayer
.
startPoint
=
CGPoint
(
x
:
0.5
,
y
:
0
)
gradientLayer
.
endPoint
=
CGPoint
(
x
:
0.5
,
y
:
1
)
gradientLayer
.
locations
=
[
NSNumber
(
value
:
0.2
)]
gradientLayer
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
200
,
height
:
60
)
return
gradientLayer
}()
lazy
var
numLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
black
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
80
)
label
.
text
=
"90"
return
label
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
let
width
=
numLabel
.
requiredWidth
gradientLayer
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
width
,
height
:
80
)
self
.
numLabel
.
layer
.
frame
=
gradientLayer
.
bounds
gradientLayer
.
mask
=
self
.
numLabel
.
layer
let
testView
=
UIView
()
view
.
addSubview
(
testView
)
testView
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
centerY
.
equalToSuperview
()
make
.
width
.
equalTo
(
width
)
make
.
height
.
equalTo
(
80
)
}
testView
.
layer
.
insertSublayer
(
gradientLayer
,
at
:
0
)
// testView.backgroundColor = .red//for test hjl
}
}
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