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
5840a8b8570504f3c1ca3bc45de5370a5155e332
1 parent
6a7b968d
学生认证协议页面h5实现,review by Redding
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
98 deletions
js/studentCertification/StudentCertification.js
js/studentCertification/containers/ProtocolContainer.js
js/studentCertification/reducers/student/studentActions.js
js/studentCertification/StudentCertification.js
View file @
5840a8b
...
...
@@ -22,7 +22,6 @@ import studentInitialState from './reducers/student/studentInitialState';
import
StudentContainer
from
'./containers/StudentContainer'
;
import
ZimaContainer
from
'./containers/ZimaContainer'
;
import
ProtocolContainer
from
'./containers/ProtocolContainer'
;
import
{
setPlatform
,
setChannel
,
...
...
@@ -62,13 +61,7 @@ export default function native(platform) {
<
StudentContainer
/>
<
/Provider
>
);
}
else
if
(
registerType
==
'protocol'
){
return
(
<
Provider
store
=
{
store
}
>
<
ProtocolContainer
/>
<
/Provider
>
);
}
}
}
});
...
...
js/studentCertification/containers/ProtocolContainer.js
deleted
100644 → 0
View file @
6a7b968
'use strict'
import
React
,
{
Component
}
from
'react'
;
import
ReactNative
,
{
StyleSheet
,
Dimensions
,
Platform
,
View
,
NativeModules
,
InteractionManager
,
NativeAppEventEmitter
,
Text
,
}
from
'react-native'
import
{
bindActionCreators
}
from
'redux'
;
import
{
connect
}
from
'react-redux'
;
import
{
Map
}
from
'immutable'
;
import
*
as
studentActions
from
'../reducers/student/studentActions'
;
let
WEBVIEW_REF
=
'webview'
;
const
actions
=
[
studentActions
,
];
function
mapStateToProps
(
state
)
{
return
{
...
state
};
}
function
mapDispatchToProps
(
dispatch
)
{
const
creators
=
Map
()
.
merge
(...
actions
)
.
filter
(
value
=>
typeof
value
===
'function'
)
.
toObject
();
return
{
actions
:
bindActionCreators
(
creators
,
dispatch
),
dispatch
};
}
class
ZimaContainer
extends
Component
{
constructor
(
props
)
{
super
(
props
);
}
render
()
{
let
{
student
}
=
this
.
props
;
let
{
registerPageInfo
,
zimaRegisterUrl
}
=
student
;
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
title
}
>
认证资格说明
<
/Text
>
<
Text
style
=
{
styles
.
content
}
>
1
、全日制大学及硕士博士研究生
<
/Text
>
<
Text
style
=
{
styles
.
content
}
>
2
、学校在可选范围内,有部分学校可能暂未收录,后期会尽快添加
<
/Text
>
<
Text
style
=
{
styles
.
content
}
>
3
、每个学号只能认证一个有货账户
<
/Text
>
<
Text
style
=
{
styles
.
title
}
>
特权详细说明
<
/Text
>
<
Text
style
=
{
styles
.
content
}
>
1
、学生购买指定商品,可享受
0
折优惠,与
vip
折扣不可同时享受,但取低
<
/Text
>
<
Text
style
=
{
styles
.
content
}
>
2
、每满¥
100
(商品金额)返
100
有货币
<
/Text
>
<
Text
style
=
{
styles
.
content
}
>
3
、学生所在学校购物金额当月累计最高,可获得
3
个免单名额,每月抽奖
<
/Text
>
<
Text
style
=
{
styles
.
content
}
>
3
、不定期学生专享活动
<
/Text
>
<
/View
>
);
}
}
let
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
},
title
:
{
fontSize
:
17
,
marginTop
:
30
,
marginLeft
:
15
,
marginBottom
:
15
,
color
:
'#444444'
,
},
content
:
{
fontSize
:
14
,
marginLeft
:
15
,
marginRight
:
15
,
lineHeight
:
18
,
color
:
'#444444'
,
}
});
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
ZimaContainer
);
js/studentCertification/reducers/student/studentActions.js
View file @
5840a8b
...
...
@@ -593,7 +593,8 @@ export function registerNow() {
export
function
gotoProtocol
()
{
return
(
dispatch
,
getState
)
=>
{
ReactNative
.
NativeModules
.
YH_StudentHelper
.
jumpToRegisterProtocolPage
();
let
url
=
`
:
//m.yohobuy.com/activity/student/detail/renzhen?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http://m.yohobuy.com/activity/student/detail/renzhen"}}`;
ReactNative
.
NativeModules
.
YH_CommonHelper
.
jumpWithUrl
(
url
);
};
}
...
...
Please
register
or
login
to post a comment