Authored by 盖剑秋

Kick off. reviewed by redding.

... ... @@ -8,6 +8,7 @@ import QRCode from './qrcode/QRCode';
import BrandStore from './brandStore/BrandStore';
import Classify from './classify/Classify';
import Seckill from './seckill/Seckill';
import Home from './home/Home'
// import Search from './search/Search';
export default function native(platform) {
... ... @@ -15,6 +16,7 @@ export default function native(platform) {
BrandStore(platform);
Classify(platform);
Seckill(platform);
Home(platform)
if (Platform.OS === 'ios') {
Community(platform);
... ...
... ... @@ -65,10 +65,10 @@ export default class Home extends Component {
render() {
let {list, ptr, isFetching, endReached, showLoginTip, cachedList} = this.props.data;
let dataSource = list.size == 0 ? cachedList.toArray() : list.toArray();
let dataSource = [];
let isPullToRefresh = ptr && isFetching;
let isLoadingMore = list.size != 0 && !ptr && isFetching;
let isLoadingMore = false;
return (
<View style={styles.container}>
... ...
'use strict';
import ReactNative from 'react-native';
import HomeService from '../../services/Home';
import HomeService from '../../services/HomeService';
import store from 'react-native-simple-store';
const {
SET_CHANNEL,
} = require('../../constants/actionTypes').default;
... ...
... ... @@ -2,8 +2,27 @@
import {Record, List, Map} from 'immutable';
let templet = new Record({
ptr: false, // 是否下拉刷新
isFetching: false,
error: null,
cachedList: List(),
list: List(),
currentPage: 0,
pageCount: 0,
pageSize: 10,
total: 0,
endReached: false,
sourceType: 0, // 0 - 默认,1 - 全球购,2 - 奥莱
md5:'',
});
let InitialState = Record({
boy: templet,
girl: templet,
kid: timplet,
lifeStyle: templet,
});
export default InitialState;
... ...
... ... @@ -14,7 +14,7 @@
"moment": "^2.13.0",
"object-assign": "^4.1.0",
"query-string": "^4.2.2",
"react": "^15.3.1",
"react": "15.3.1",
"react-immutable-proptypes": "^2.1.0",
"react-native": "0.32.0",
"react-native-device-info": "0.9.5",
... ...