├── .gitignore ├── README.md ├── app ├── components │ ├── App.jsx │ ├── common │ │ ├── Alert.jsx │ │ ├── Grid.jsx │ │ ├── Header.jsx │ │ ├── InputBox.jsx │ │ ├── Progress.jsx │ │ ├── js │ │ │ ├── Store.js │ │ │ └── qrcode.js │ │ └── mixin │ │ │ └── AlertMixin.jsx │ ├── index │ │ └── Index.jsx │ ├── product │ │ ├── ProductList.jsx │ │ ├── ProductListItem.jsx │ │ ├── Purchase.jsx │ │ └── PurchaseAmount.jsx │ └── users │ │ ├── AboutUs.jsx │ │ ├── Assets.jsx │ │ ├── Invite.jsx │ │ ├── Login.jsx │ │ ├── ModifyPwd.jsx │ │ ├── PersonalSetting.jsx │ │ ├── Rebate.jsx │ │ ├── Register.jsx │ │ ├── TransactionRecord.jsx │ │ └── TransactionRecordItem.jsx ├── images │ ├── aboutUs │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ └── 6.jpg │ ├── arrow-right.png │ ├── house.png │ ├── icon-alarm.png │ ├── icon-i.png │ ├── icon-incrementAmt.png │ ├── icon-interestEndDate.png │ ├── icon-interestStartDate.png │ ├── icon-investLowerAmt.png │ ├── icon-investUpperAmt.png │ ├── icon-inviteCode.png │ ├── icon-key.png │ ├── icon-phone.png │ ├── icon-safe.png │ ├── icon-verificationCode.png │ ├── index_icon.png │ ├── loading.gif │ ├── logo.png │ └── share-friends.png ├── main.js └── scss │ ├── common │ ├── Button.scss │ ├── Header.scss │ ├── Tool.scss │ ├── animate.scss │ ├── common.scss │ ├── components │ │ ├── Alert.scss │ │ ├── Grid.scss │ │ └── InputBox.scss │ └── reset.scss │ ├── index │ └── index.scss │ ├── product │ ├── ProductList.scss │ ├── Purchase.scss │ └── PurchaseAmount.scss │ └── users │ ├── AboutUs.scss │ ├── Assets.scss │ ├── Invite.scss │ ├── Login.scss │ ├── PersonalSetting.scss │ ├── Register.scss │ └── TransactionRecord.scss ├── build ├── assets.json ├── index.html ├── index_production.html ├── jquery-2.1.4.min.js ├── productList.json ├── purchase.json ├── qrcode.png ├── test.html └── transactionRecord.json ├── dist ├── all.a7e8fd9c.css ├── app.a7e8fd9c.js ├── app │ └── images │ │ ├── aboutUs │ │ ├── 1.dcb1d929.jpg │ │ ├── 2.b0de9ab2.jpg │ │ ├── 3.df25dadb.jpg │ │ ├── 4.a440884e.jpg │ │ ├── 5.6ba6bd3a.jpg │ │ └── 6.e49b00a3.jpg │ │ ├── icon-i.3c6f4443.png │ │ ├── icon-interestEndDate.f4389313.png │ │ ├── icon-interestStartDate.761be474.png │ │ ├── icon-investLowerAmt.4961db1f.png │ │ ├── icon-investUpperAmt.89822701.png │ │ ├── icon-safe.8ef83251.png │ │ ├── icon-verificationCode.164727ad.png │ │ ├── index_icon.d50c0901.png │ │ ├── loading.00218280.gif │ │ ├── logo.7d1b35f3.png │ │ └── share-friends.85c90899.png ├── assets.json ├── commons.a7e8fd9c.js ├── index.html ├── jquery-2.1.4.min.js ├── productList.json ├── purchase.json ├── test.html └── transactionRecord.json ├── gulpfile.js ├── package.json ├── webpack.config.js └── webpack.production.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /.idea/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ReactProject 2 | 3 | 该项目是移动端项目 4 | 5 | 安装 $ npm install 6 | 7 | 1:开发 8 | 执行 $ gulp 9 | 访问路径 http://localhost:8080/build/index.html 10 | 11 | 12 | 2:生产 13 | 执行 $ gulp build 14 | 15 | 16 | 3:在线预览:http://springalskey.github.io/ReactProject/dist/test.html 17 | 18 | 19 | 4:扫描二维码: 20 |  21 | 22 | 23 | 关于项目: 24 | 25 | 1.main.js配置路由 26 | 27 | 2.App.jsx是路由中的写法 28 | 29 | 3.css 30 | 1) reset.scss在App.jsx中引入且仅此一次。 31 | 2) common.scss在App.jsx中引入且仅此一次。 32 | 3) Tool.scss在每一个component中都可以作为“工具集公共项”来引入,不会添加到css文件中,是以变量的形式存在 33 | 34 | 4.js和jsx 35 | 1) 通用的js放在app/components/common/js目录下 36 | 2) mixin放需要mix到component中的公共组件,详情参考AlertMixin 37 | 38 | 5.html 39 | index_production.html是在执行gulp build命令时用的 40 | 41 | 6.dist目录 42 | 是最终gulp build的结果 43 | 若使用webstorm可直接选择dist/index.html在浏览器里运行,不需要安装环境。 44 | 45 | 46 | -------------------------------------------------------------------------------- /app/components/App.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Link } from 'react-router'; 3 | import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; 4 | 5 | require("../scss/common/reset.scss"); 6 | require("../scss/common/animate.scss"); 7 | require("../scss/common/common.scss"); 8 | 9 | export default class App extends React.Component { 10 | 11 | render() { 12 | return
{item.name} | ) } 131 |
---|
117 |
118 | 天
119 | 时
120 | 分
121 | 秒
122 |
134 |
135 |
136 |
输入购买金额(元):
32 |预期收益:
37 | 0.00元 38 |快速选择金额(元):
41 |累计总资产(元)
34 | 1000000.00 35 |扫一扫 邀请好友来注册
23 |我的邀请码
25 |点击注册按钮表示您同意《注册协议》
87 |