Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
张丽霞
8 years ago
Commit
232b588b0be595215a7a00c0af930033ae05b845
1 parent
bcde1c87
明星原创品牌图片拉伸, review by redding
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
js/plustar/components/detail/BrandIntro.js
js/plustar/components/detail/BrandIntro.js
View file @
232b588
...
...
@@ -34,6 +34,7 @@ export default class BrandIntro extends Component {
let
detail
=
brandIntro
.
get
(
'detail'
).
toJS
();
let
favIcon
=
brandFav
.
get
(
'isFav'
)
?
require
(
"../../images/red_heart.png"
)
:
require
(
"../../images/gray_heart.png"
);
let
titleFoldArrowIcon
=
brandIntro
.
titleUnfold
?
require
(
"../../images/arrow_small_up.png"
)
:
require
(
"../../images/arrow_small_down.png"
);
let
url
=
SlicedImage
.
getSlicedUrl
(
detail
.
brand_ico
,
brandIconWidth
-
2
,
brandIconWidth
-
2
,
2
);
return
(
<
View
style
=
{
styles
.
container
}
>
<
SlicedImage
style
=
{[
styles
.
coverImage
,
{
width
,
height
:
coverImageHeight
}]}
source
=
{{
uri
:
detail
.
cover_img
}}
/
>
...
...
@@ -67,7 +68,7 @@ export default class BrandIntro extends Component {
<
/TouchableOpacity
>
<
View
style
=
{
styles
.
brandIcon
}
>
<
SlicedImage
resizeMode
=
{
'contain'
}
source
=
{{
uri
:
detail
.
brand_ico
}}
style
=
{{
width
:
brandIconWidth
-
2
,
height
:
brandIconWidth
-
2
,
backgroundColor
:
'white'
}}
/
>
<
Image
resizeMode
=
{
'contain'
}
style
=
{{
width
:
brandIconWidth
-
2
,
height
:
brandIconWidth
-
2
,
backgroundColor
:
'white'
}}
source
=
{{
uri
:
url
}}
/
>
<
/View
>
<
View
style
=
{
styles
.
blackView
}
>
...
...
Please
register
or
login
to post a comment