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
chenl
8 years ago
Commit
822d37877d80ae810712809b0b28bea334827da9
1 parent
c8066cfa
删除了一些测试代码和IOS下拉刷新报错的问题。review by 庄佳佳。
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
24 deletions
js/common/components/YH_PtrRefresh.js
js/vip/components/birth/Birth.js
js/vip/components/fastExpress/FastExpress.js
js/vip/reducers/birth/birthActions.js
js/vip/reducers/fastExpress/fastExpressActions.js
js/vip/reducers/yearActivity/yearActivityActions.js
js/vip/reducers/yearActivity/yearActivityInitialState.js
js/vip/services/birthService.js
js/vip/services/fastExpressService.js
js/common/components/YH_PtrRefresh.js
View file @
822d378
...
...
@@ -10,10 +10,6 @@ import ReactNative from 'react-native';
export
default
class
YH_PtrRefresh
extends
React
.
Component
{
static
propTypes
=
{
...
View
.
propTypes
// 包含默认的View的属性
};
constructor
(
props
)
{
super
(
props
);
}
...
...
js/vip/components/birth/Birth.js
View file @
822d378
...
...
@@ -40,7 +40,7 @@ export default class Birth extends Component {
this
.
props
.
onPressComplete
&&
this
.
props
.
onPressComplete
();}}
>
<
Text
style
=
{
styles
.
completeButton
}
>
完善生日信息
<
/Text
>
<
/TouchableOpacity
>
<
HeadTitleCell
title
=
{
"
你可能喜欢
"
}
/
>
<
HeadTitleCell
title
=
{
"
新品推荐
"
}
/
>
<
/View
>
);
}
...
...
js/vip/components/fastExpress/FastExpress.js
View file @
822d378
...
...
@@ -36,11 +36,7 @@ export default class FastExpress extends Component {
let
desc1
=
"白金会员可享受快速送达服务。订单将采用最快速度进行配送(比如航空快件),保证您可以尽快获得心仪的商品。"
;
let
desc2
=
"※ 如果您的收件区域位于可提供快速送达服务的快递范围外或订单内的商品包含航空禁运品,我们仍将统一采用可送达快递进行配送,敬请谅解。"
;
return
(
<
View
style
=
{
styles
.
headerContainer
}
>
...
...
js/vip/reducers/birth/birthActions.js
View file @
822d378
...
...
@@ -32,12 +32,12 @@ export function getBirthProductList() {
return
;
}
let
userLevel
=
app
.
userLev
el
;
let
channel
=
app
.
chann
el
;
let
page
=
birth
.
get
(
'currentPage'
)
+
1
;
dispatch
(
getBirthProductRequest
());
return
new
BirthService
(
app
.
host
).
getBirthProductList
(
userLev
el
,
page
)
return
new
BirthService
(
app
.
host
).
getBirthProductList
(
chann
el
,
page
)
.
then
(
json
=>
{
let
payload
=
parseUtils
.
parsePageInfoList
(
json
);
...
...
js/vip/reducers/fastExpress/fastExpressActions.js
View file @
822d378
...
...
@@ -54,12 +54,12 @@ export function getFastProductList() {
return
;
}
let
userLevel
=
app
.
userLev
el
;
let
channel
=
app
.
chann
el
;
let
page
=
fastExpress
.
get
(
'currentPage'
)
+
1
;
dispatch
(
getFastProductRequest
());
return
new
FastExpressService
(
app
.
host
).
getFastExpressProduct
(
userLev
el
,
page
)
return
new
FastExpressService
(
app
.
host
).
getFastExpressProduct
(
chann
el
,
page
)
.
then
(
json
=>
{
let
payload
=
parseUtils
.
parsePageInfoList
(
json
);
...
...
js/vip/reducers/yearActivity/yearActivityActions.js
View file @
822d378
...
...
@@ -35,12 +35,13 @@ export function getYearActivityProductList() {
return
;
}
let
userLevel
=
app
.
userLev
el
;
let
channel
=
app
.
chann
el
;
let
page
=
yearActivity
.
get
(
'currentPage'
)
+
1
;
let
pageSize
=
yearActivity
.
get
(
'pageSize'
);
dispatch
(
getYearProductRequest
());
return
new
yearActivityService
(
app
.
host
).
getYearProductList
(
userLevel
,
page
)
return
new
yearActivityService
(
app
.
host
).
getYearProductList
(
channel
,
pageSize
,
page
)
.
then
(
json
=>
{
let
payload
=
parseUtils
.
parsePageInfoList
(
json
);
...
...
js/vip/reducers/yearActivity/yearActivityInitialState.js
View file @
822d378
...
...
@@ -9,7 +9,7 @@ let InitialState = Record({
endReached
:
false
,
similarIndex
:
-
1
,
total
:
0
,
pageSize
:
50
,
pageSize
:
12
,
pageCount
:
0
,
});
...
...
js/vip/services/birthService.js
View file @
822d378
...
...
@@ -12,12 +12,12 @@ export default class birthService {
this
.
api
=
new
Request
(
baseURL
);
}
async
getBirthProductList
(
userLev
el
,
page
){
async
getBirthProductList
(
chann
el
,
page
){
return
await
this
.
api
.
get
({
url
:
''
,
body
:
{
method
:
'app.product.vip'
,
user_vip_level
:
userLevel
,
method
:
'app.firstpage.recproduct'
,
yh_channel
:
channel
,
page
,
}
})
...
...
js/vip/services/fastExpressService.js
View file @
822d378
...
...
@@ -9,7 +9,7 @@ export default class fastExpressService {
if
(
host
){
baseURL
=
host
;
}
this
.
api
=
new
Request
(
"http://192.168.103.59:8080/gateway/"
);
this
.
api
=
new
Request
(
baseURL
);
}
async
getFastExpressInfo
(){
...
...
@@ -27,12 +27,12 @@ export default class fastExpressService {
});
}
async
getFastExpressProduct
(
userLev
el
,
page
){
async
getFastExpressProduct
(
chann
el
,
page
){
return
await
this
.
api
.
get
({
url
:
''
,
body
:
{
method
:
'app.product.vip'
,
user_vip_level
:
userLevel
,
method
:
'app.firstpage.recproduct'
,
yh_channel
:
channel
,
page
,
}
})
...
...
Please
register
or
login
to post a comment