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
8dba997712a194dae620a775c8e4feadd130c2d8
1 parent
3dfcec5a
master
...
6.9.9_invite
V6.10.1
V6.10.2
V6.9.5
V6.9.6
V6.9.6_Alliance
V6.9.7
V6.9.8
V6.9.8_shoudan
V6.9.9
feature/rn_update61
gerry/v6.9.14_panicBuying
gerry/v6.9.16_bugfixed
v6.10.0
v6.9.10
v6.9.11
v6.9.12
v6.9.13
v6.9.14
v6.9.16
v6.9.17
v6.9.19
v6.9.20
v6.9.21
v6.9.22
v6.9.24
6.9.8
6.9.7
6.9.6
添加审核不通过跳转 reviewd by 朱傲哲
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
35 deletions
js/message/components/content/ContentNotifyListCell.js
js/message/components/content/ContentNotifyListCell.js
View file @
8dba997
...
...
@@ -4,7 +4,7 @@
'use strict'
;
import
React
,
{
Component
}
from
'react'
;
import
{
Dimensions
,
Image
,
ListView
,
StyleSheet
,
Text
,
TouchableOpacity
,
View
,
NativeModules
}
from
'react-native'
;
import
ReactNative
,
{
Dimensions
,
Image
,
ListView
,
StyleSheet
,
Text
,
TouchableOpacity
,
View
,
NativeModules
}
from
'react-native'
;
import
{
Immutable
}
from
"immutable"
;
import
YH_Image
from
'../../../common/components/YH_Image'
;
import
SlicedImage
from
'../../../common/components/SlicedImage'
...
...
@@ -21,6 +21,8 @@ export default class ContentNotifyListCell extends Component {
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
);
let
pass
=
data
.
businessType
===
1005
?
true
:
false
;
return
(
<
View
style
=
{
styles
.
cellContainer
}
>
...
...
@@ -32,39 +34,48 @@ export default class ContentNotifyListCell extends Component {
<
/View
>
<
View
style
=
{
styles
.
editContainer
}
>
<
TouchableOpacity
activeOpacity
=
{
1
}
// onLongPress={() =>{
// this.props.onLongPressListItem && this.props.onLongPressListItem(data);
// }}
onPress
=
{()
=>
{
this
.
props
.
jumpToGrassDetailPage
&&
this
.
props
.
jumpToGrassDetailPage
(
data
);
}}
>
<
View
style
=
{
styles
.
contentContainer
}
>
<
YH_Image
style
=
{
styles
.
iconStyle
}
url
=
{
imageUrl
}
resizeMode
=
"contain"
/>
<
View
style
=
{
styles
.
textContainer
}
>
<
Text
style
=
{
styles
.
detail
}
numberOfLines
=
{
2
}
>
{
data
.
content
}
<
/Text
>
<
/View
>
<
/View
>
{
pass
?
<
TouchableOpacity
activeOpacity
=
{
1
}
onPress
=
{()
=>
{
this
.
props
.
jumpToGrassDetailPage
&&
this
.
props
.
jumpToGrassDetailPage
(
data
);
}}
>
<
View
style
=
{
styles
.
contentContainer
}
>
<
YH_Image
style
=
{
styles
.
iconStyle
}
url
=
{
imageUrl
}
resizeMode
=
"contain"
/>
<
View
style
=
{
styles
.
textContainer
}
>
<
Text
style
=
{
styles
.
detail
}
>
{
data
.
content
}
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
:
<
TouchableOpacity
activeOpacity
=
{
1
}
onPress
=
{()
=>
{
let
params
=
{
action
:
'go.h5'
,
params
:
{
url
:
data
.
link
,
}
}
let
path
=
'http://m.yohobuy.com?openby:yohobuy='
+
JSON
.
stringify
(
params
);
ReactNative
.
NativeModules
.
YH_CommonHelper
.
jumpWithUrl
(
path
);
}}
>
<
View
style
=
{
styles
.
contentContainer
}
>
<
YH_Image
style
=
{
styles
.
iconStyle
}
url
=
{
imageUrl
}
resizeMode
=
"contain"
/>
<
View
style
=
{
styles
.
textContainer
}
>
<
Text
numberOfLines
=
{
3
}
style
=
{
styles
.
textStyle
}
>
<
Text
style
=
{{
color
:
'#444444'
}}
>
{
data
.
content
}
<
/Text
>
<
Text
style
=
{
styles
.
underTextStyle
}
>
《有货社区发帖规范》
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
}
<
TouchableOpacity
activeOpacity
=
{
1
}
onPress
=
{()
=>
{
this
.
props
.
jumpToGrassDetailPage
&&
this
.
props
.
jumpToGrassDetailPage
(
data
)
}
<
TouchableOpacity
activeOpacity
=
{
1
}
onPress
=
{()
=>
{
this
.
props
.
jumpToGrassDetailPage
&&
this
.
props
.
jumpToGrassDetailPage
(
data
)
}
>
}
>
<
View
style
=
{
styles
.
footContainer
}
>
<
View
style
=
{
styles
.
footSeparator
}
/
>
<
View
style
=
{
styles
.
footextContainer
}
>
...
...
@@ -135,14 +146,24 @@ let styles = StyleSheet.create({
justifyContent
:
'space-between'
,
alignItems
:
'flex-start'
,
},
detail
:{
textStyle
:
{
fontSize
:
12
,
fontFamily
:
'PingFang-SC-Regular'
,
width
:
width
-
15
-
50
-
10
-
18
,
},
detail
:
{
fontSize
:
12
,
fontFamily
:
'PingFang-SC-Regular'
,
color
:
'#444444'
,
maxWidth
:
width
-
15
-
50
-
10
-
18
,
backgroundColor
:
'transparent'
backgroundColor
:
'transparent'
,
width
:
width
-
15
-
50
-
10
-
18
,
},
underTextStyle
:
{
color
:
'#2a5083'
,
textDecorationLine
:
'underline'
,
textDecorationStyle
:
'solid'
,
textDecorationColor
:
'#2a5083'
,
},
footContainer
:
{
flexDirection
:
'column'
,
height
:
44
,
...
...
Please
register
or
login
to post a comment