ProtocolContainer.js 2.47 KB
'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);