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
5211c5e451ae33006fa4086c3ccbbb16ad8ff26f
1 parent
75955338
按钮事件区分,review by redding
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
js/seckill/components/seckill/ProductListView.js
js/seckill/components/seckill/TimeListView.js
js/seckill/components/seckill/ProductListView.js
View file @
5211c5e
...
...
@@ -83,7 +83,11 @@ export default class ProductListView extends Component {
}
<
/View
>
<
TouchableOpacity
onPress
=
{()
=>
{
this
.
props
.
onPressRemindBtn
&&
this
.
props
.
onPressRemindBtn
(
rowData
);
if
(
rowData
.
wait
)
{
this
.
props
.
onPressRemindBtn
&&
this
.
props
.
onPressRemindBtn
(
rowData
);
}
else
{
this
.
props
.
onPressProductItem
&&
this
.
props
.
onPressProductItem
(
rowData
);
}
}}
>
{
(
tipState
==
'取消提醒'
)?
...
...
js/seckill/components/seckill/TimeListView.js
View file @
5211c5e
...
...
@@ -49,7 +49,7 @@ export default class SeckillTimeListView extends Component {
});
// if (curFocusIndex > 1 && curFocusIndex < listLength-2) {
scrollX
=
(
curFocusIndex
-
1
)
*
rowContainerWidth
;
this
.
listView
&&
this
.
listView
.
scrollTo
({
x
:
scrollX
,
y
:
0
,
animated
:
fals
e
});
this
.
listView
&&
this
.
listView
.
scrollTo
({
x
:
scrollX
,
y
:
0
,
animated
:
tru
e
});
// }
}
...
...
@@ -215,6 +215,7 @@ export default class SeckillTimeListView extends Component {
dataSource
=
{
this
.
dataSource
.
cloneWithRows
(
resource
)}
renderSeparator
=
{
this
.
_renderSeparator
}
renderRow
=
{
this
.
_renderRow
}
showsHorizontalScrollIndicator
=
{
false
}
scrollEnabled
=
{
true
}
horizontal
=
{
true
}
scrollsToTop
=
{
false
}
...
...
Please
register
or
login
to post a comment