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
张文文
6 years ago
Commit
e57245867a3960dca8a35aff385b1545b41fc677
1 parent
28b88192
bug fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
js/message/components/content/ContentLikedListCell.js
js/message/components/content/ContentMessageCell.js
js/message/components/content/ContentLikedListCell.js
View file @
e572458
...
...
@@ -16,9 +16,8 @@ export default class ContentLikedListCell extends Component {
render
()
{
let
rowData
=
this
.
props
.
data
;
let
resource
=
rowData
.
coverImg
;
resource
=
resource
?
JSON
.
parse
(
resource
)
:
''
;
let
picItem
=
resource
.
data
?
JSON
.
parse
(
resource
.
data
)
:
''
;;
let
resource
=
rowData
.
coverImg
?
typeof
rowData
.
coverImg
===
'string'
?
JSON
.
parse
(
rowData
.
coverImg
)
:
rowData
.
coverImg
:
''
;
let
picItem
=
resource
?
typeof
resource
.
data
===
'string'
?
JSON
.
parse
(
resource
.
data
)
:
resource
.
data
:
''
;
let
imageUrl
=
YH_Image
.
getSlicedUrl
(
picItem
.
src
,
50
*
DEVICE_HEIGHT_RATIO
,
50
*
DEVICE_HEIGHT_RATIO
,
2
);
...
...
js/message/components/content/ContentMessageCell.js
View file @
e572458
...
...
@@ -17,8 +17,8 @@ export default class ContentMessageCell extends Component {
let
{
rowData
}
=
this
.
props
;
let
status
=
rowData
.
businessType
===
1003
?
true
:
false
;
let
resource
=
typeof
rowData
.
coverImg
===
'string'
?
JSON
.
parse
(
rowData
.
coverImg
)
:
rowData
.
coverImg
;
let
picItem
=
typeof
resource
.
data
===
'string'
?
JSON
.
parse
(
resource
.
data
)
:
resource
.
data
;
let
resource
=
rowData
.
coverImg
?
typeof
rowData
.
coverImg
===
'string'
?
JSON
.
parse
(
rowData
.
coverImg
)
:
rowData
.
coverImg
:
''
;
let
picItem
=
resource
?
typeof
resource
.
data
===
'string'
?
JSON
.
parse
(
resource
.
data
)
:
resource
.
data
:
''
;
let
imageUrl
=
YH_Image
.
getSlicedUrl
(
picItem
.
src
,
50
*
DEVICE_HEIGHT_RATIO
,
50
*
DEVICE_HEIGHT_RATIO
,
2
);
...
...
Please
register
or
login
to post a comment