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
8050d6ac
Commit
8050d6ac
authored
Oct 14, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// fix
parent
90c1c835
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
YHNewProductCell.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHNewProductCell.swift
+5
-2
YHSelectCategoryModel.swift
...s/Modules/Home(首页)/YHSelect/M/YHSelectCategoryModel.swift
+6
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHNewProductCell.swift
View file @
8050d6ac
...
@@ -14,6 +14,7 @@ class YHNewProductCell: UITableViewCell {
...
@@ -14,6 +14,7 @@ class YHNewProductCell: UITableViewCell {
lazy
var
imgView
:
UIImageView
=
{
lazy
var
imgView
:
UIImageView
=
{
let
v
=
UIImageView
()
let
v
=
UIImageView
()
v
.
contentMode
=
.
scaleAspectFill
v
.
clipsToBounds
=
true
v
.
clipsToBounds
=
true
return
v
return
v
}()
}()
...
@@ -35,8 +36,10 @@ class YHNewProductCell: UITableViewCell {
...
@@ -35,8 +36,10 @@ class YHNewProductCell: UITableViewCell {
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
self
.
contentView
.
addSubview
(
self
.
imgView
)
self
.
contentView
.
addSubview
(
self
.
imgView
)
self
.
imgView
.
snp
.
makeConstraints
{
make
in
self
.
imgView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
left
.
equalTo
(
20
)
make
.
height
.
equalTo
(
160
)
make
.
right
.
equalTo
(
-
20
)
make
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
YHSelectGoodsModel
.
fix_new_productRatio
*
(
KScreenWidth
-
20.0
*
2
))
make
.
bottom
.
equalTo
(
-
12
)
make
.
bottom
.
equalTo
(
-
12
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/YHSelect/M/YHSelectCategoryModel.swift
View file @
8050d6ac
...
@@ -35,6 +35,8 @@ class YHSelectGoodModel: SmartCodable {
...
@@ -35,6 +35,8 @@ class YHSelectGoodModel: SmartCodable {
class
YHSelectGoodsModel
:
SmartCodable
{
class
YHSelectGoodsModel
:
SmartCodable
{
static
let
fix_new_productRatio
=
160.0
/
(
KScreenWidth
-
20.0
*
2
)
var
id
:
String
=
""
var
id
:
String
=
""
var
name
:
String
=
""
var
name
:
String
=
""
var
products
:
[
Int
]
=
[]
var
products
:
[
Int
]
=
[]
...
@@ -66,7 +68,11 @@ class YHSelectGoodsModel: SmartCodable {
...
@@ -66,7 +68,11 @@ class YHSelectGoodsModel: SmartCodable {
var
currency
:
String
=
""
var
currency
:
String
=
""
var
goodsCategoryType
:
Int
=
0
// 产品的分类类型:0 默认普通,1 新品商品
var
goodsCategoryType
:
Int
=
0
// 产品的分类类型:0 默认普通,1 新品商品
// 新品图片宽高比
var
ratio
:
CGFloat
=
YHSelectGoodsModel
.
fix_new_productRatio
required
init
()
{
required
init
()
{
}
}
}
}
...
...
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