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
e9da6f13
Commit
e9da6f13
authored
Apr 16, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner 默认
parent
8ae525a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
YHServiceBannerView.swift
...ules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
+4
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
View file @
e9da6f13
...
...
@@ -118,13 +118,15 @@ extension YHServiceBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
public
func
pagerView
(
_
pagerView
:
FSPagerView
,
cellForItemAt
index
:
Int
)
->
FSPagerViewCell
{
let
cell
=
pagerView
.
dequeueReusableCell
(
withReuseIdentifier
:
"cell"
,
at
:
index
)
let
image
=
UIImage
(
named
:
"default_placeholder_image"
)?
.
bs_scaled
(
toWidth
:
UIDevice
.
kScreenW
-
16*
2
,
opaque
:
false
)
cell
.
imageView
?
.
image
=
image
if
index
<
dataArr
.
count
{
let
model
=
dataArr
[
index
]
if
model
.
id
!=
0
{
if
let
url
=
URL
(
string
:
model
.
img_url
)
{
cell
.
imageView
?
.
kf
.
setImage
(
with
:
url
)
}
}
else
{
cell
.
imageView
?
.
image
=
UIImage
(
named
:
model
.
img_url
)
}
// cell.textLabel?.text = model.name
}
cell
.
imageView
?
.
contentMode
=
.
scaleAspectFill
...
...
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