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
2036c94c
Commit
2036c94c
authored
Jan 14, 2025
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
银河甄选
parent
b1700ef6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
12 deletions
+50
-12
YHHomeKingKongBlockView.swift
.../Classes/Modules/Home(首页)/V/YHHomeKingKongBlockView.swift
+31
-5
YHSelectViewController.swift
.../Modules/Home(首页)/YHSelect/C/YHSelectViewController.swift
+16
-4
YHSelectLookHeadView.swift
...es/Modules/Home(首页)/YHSelect/V/YHSelectLookHeadView.swift
+3
-3
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeKingKongBlockView.swift
View file @
2036c94c
...
...
@@ -94,17 +94,43 @@ private extension YHHomeKingKongBlockView {
let
vc
=
YHHKEventCenterViewController
()
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
6
:
if
YHLoginManager
.
shared
.
isLogin
()
{
}
else
{
YHOneKeyLoginManager
.
shared
.
oneKeyLogin
()
return
}
YHAnalytics
.
track
(
"APP_Home_KingKong_6"
)
let
vc
=
YHHomeWebViewController
()
var
url
=
""
#if DEBUG
vc
.
url
=
"https://test-hklife-business-uni.galaxy-immi.com/"
url
=
"https://test-hklife-business-uni.galaxy-immi.com/"
#elseif TESTENV
vc
.
url
=
"https://test-hklife-business-uni.galaxy-immi.com/"
url
=
"https://test-hklife-business-uni.galaxy-immi.com/"
#elseif UATENV
vc
.
url
=
"https://hklife-business-uni.galaxy-immi.com/"
url
=
"https://hklife-business-uni.galaxy-immi.com/"
#else
vc
.
url
=
"https://hklife-business-uni.galaxy-immi.com/"
url
=
"https://hklife-business-uni.galaxy-immi.com/"
#endif
if
YHLoginManager
.
shared
.
isLogin
()
{
let
token
=
YHLoginManager
.
shared
.
h5Token
url
=
url
+
"?param="
+
token
let
urlHasParam
=
String
.
hasQueryParameters
(
urlString
:
url
)
if
urlHasParam
{
url
=
url
+
"¶m="
+
token
}
}
//2.增加导航栏高度
var
tUrl
=
url
if
!
url
.
contains
(
"navigationH="
)
{
tUrl
=
url
+
"?navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
if
url
.
contains
(
"?"
)
{
tUrl
=
url
+
"&navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
}
}
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
tUrl
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
default
:
break
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/YHSelect/C/YHSelectViewController.swift
View file @
2036c94c
...
...
@@ -123,7 +123,7 @@ extension YHSelectViewController {
sectionView
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
92
)
headView
=
{
let
head
=
YHSelectLookHeadView
()
head
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
66
)
head
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
78
)
head
.
block
=
{
index
in
self
.
selectItem
=
index
self
.
buttonItem
=
0
...
...
@@ -186,12 +186,16 @@ extension YHSelectViewController: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHSelectLookTableViewCell
.
self
)
cell
.
number
=
indexPath
.
row
cell
.
dataSource
=
self
.
viewModel
.
goodsArray
[
indexPath
.
row
]
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
108
if
indexPath
.
row
==
0
{
return
102
}
return
114
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
...
...
@@ -265,9 +269,17 @@ class YHSelectLookTableViewCell: UITableViewCell {
var
subTitleLabel
:
UILabel
!
var
flagLabel
:
UILabel
!
var
itemView
:
UIView
!
var
number
:
Int
=
100
var
dataSource
:
YHSelectGoodsModel
?
{
didSet
{
guard
let
dataSource
=
dataSource
else
{
return
}
if
number
==
0
{
centerImageView
.
snp
.
remakeConstraints
{
make
in
make
.
bottom
.
equalTo
(
-
20
)
make
.
left
.
equalTo
(
20
)
make
.
height
.
width
.
equalTo
(
74
)
}
}
self
.
titleLabel
.
text
=
dataSource
.
name
flagLabel
.
isHidden
=
true
if
dataSource
.
catAttr
==
2
{
...
...
@@ -275,7 +287,7 @@ class YHSelectLookTableViewCell: UITableViewCell {
}
let
a
:
ASAttributedString
=
.
init
(
"¥"
,
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
14
)
??
UIFont
()),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"
\(
dataSource
.
linePrice
)
"
,
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
20
)
??
UIFont
()),
.
foreground
(
UIColor
.
mainTextColor
))
let
c
:
ASAttributedString
=
.
init
(
"¥
\(
dataSource
.
price
)
"
,
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
20
)
??
UIFont
()),
.
foreground
(
UIColor
(
hex
:
0x8993a2
)),
.
strikethrough
(
.
single
))
let
c
:
ASAttributedString
=
.
init
(
"¥
\(
dataSource
.
price
)
"
,
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
14
)
??
UIFont
()),
.
foreground
(
UIColor
(
hex
:
0x8993a2
)),
.
strikethrough
(
.
single
))
if
dataSource
.
linePrice
==
dataSource
.
price
{
self
.
subTitleLabel
.
attributed
.
text
=
a
+
b
}
else
{
...
...
@@ -340,7 +352,7 @@ class YHSelectLookTableViewCell: UITableViewCell {
centerImageView
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalTo
(
20
)
make
.
height
.
width
.
equalTo
(
68
)
make
.
height
.
width
.
equalTo
(
74
)
}
titleLabel
=
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/YHSelect/V/YHSelectLookHeadView.swift
View file @
2036c94c
...
...
@@ -104,7 +104,7 @@ class YHSelectLookHeadView: UIView {
addSubview
(
normalButton
)
normalButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
bottom
.
equalTo
Superview
(
)
make
.
bottom
.
equalTo
(
-
7
)
make
.
height
.
equalTo
(
16
)
make
.
width
.
equalTo
(
24
)
}
...
...
@@ -123,7 +123,7 @@ class YHSelectLookHeadView: UIView {
addSubview
(
hotButton
)
hotButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
normalButton
.
snp
.
right
)
.
offset
(
20
)
make
.
bottom
.
equalTo
Superview
(
)
make
.
bottom
.
equalTo
(
-
7
)
make
.
height
.
equalTo
(
16
)
make
.
width
.
equalTo
(
24
)
}
...
...
@@ -142,7 +142,7 @@ class YHSelectLookHeadView: UIView {
addSubview
(
priceButton
)
priceButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
hotButton
.
snp
.
right
)
.
offset
(
20
)
make
.
bottom
.
equalTo
Superview
(
)
make
.
bottom
.
equalTo
(
-
7
)
make
.
height
.
equalTo
(
16
)
make
.
width
.
equalTo
(
40
)
}
...
...
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