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
盖剑秋
7 years ago
Commit
a042201b0c0e80849c1b6c9ed9a6409ecc8cbfdb
1 parent
62a6a862
Support load more for discount products section of second kill page.
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
js/seckill/components/seckill/Seckill.js
js/seckill/containers/SeckillContainer.js
js/seckill/services/SeckillService.js
js/seckill/components/seckill/Seckill.js
View file @
a042201
...
...
@@ -187,6 +187,9 @@ export default class Seckill extends Component {
renderSectionHeader
=
{
this
.
renderSectionHeader
}
stickySectionHeadersEnabled
=
{
false
}
onRefreshData
=
{()
=>
this
.
props
.
onRefresh
&&
this
.
props
.
onRefresh
()}
onEndReached
=
{()
=>
{
this
.
props
.
onEndReached
&&
this
.
props
.
onEndReached
();
}}
sections
=
{[
{
title
:
null
,
type
:
SECTION_TYPE_SECKILL
,
data
:
queryProductList
?
queryProductList
:
[]},
{
...
...
js/seckill/containers/SeckillContainer.js
View file @
a042201
...
...
@@ -44,6 +44,7 @@ class SeckillContainer extends Component {
this
.
_onClearTipMessage
=
this
.
_onClearTipMessage
.
bind
(
this
);
this
.
_onFocusToCurStartedActivity
=
this
.
_onFocusToCurStartedActivity
.
bind
(
this
);
this
.
_onFetchDiscountProductList
=
this
.
_onFetchDiscountProductList
.
bind
(
this
);
this
.
_onEndReached
=
this
.
_onEndReached
.
bind
(
this
);
}
_onPressTimeItem
(
activity
)
{
...
...
@@ -84,6 +85,9 @@ class SeckillContainer extends Component {
this
.
props
.
actions
.
getDiscountProductList
()
}
_onEndReached
()
{
this
.
props
.
actions
.
getDiscountProductList
()
}
render
()
{
...
...
@@ -120,6 +124,7 @@ class SeckillContainer extends Component {
onPressRemindBtn
=
{
this
.
_onPressRemindBtn
}
onPressGuangShopWithURL
=
{
this
.
_onPressGuangShopWithURL
}
onRefresh
=
{
this
.
_onRefresh
}
onEndReached
=
{
this
.
_onEndReached
}
onFetchDiscountProductList
=
{
this
.
_onFetchDiscountProductList
}
onClearTipMessage
=
{
this
.
_onClearTipMessage
}
onFocusToCurStartedActivity
=
{
this
.
_onFocusToCurStartedActivity
}
...
...
js/seckill/services/SeckillService.js
View file @
a042201
...
...
@@ -7,10 +7,8 @@ export default class SeckillService {
constructor
(
host
)
{
console
.
log
(
host
);
let
baseURL
=
'http://apigray.yoho.cn'
;
if
(
host
){
console
.
log
(
'lalalallala lalalla '
);
let
baseURL
=
'http://api.yoho.cn'
;
if
(
host
){
baseURL
=
host
;
}
...
...
Please
register
or
login
to post a comment