From 7d83742788154fe3d39c8937590292ce90b45669 Mon Sep 17 00:00:00 2001 From: enggar_ganteng Date: Thu, 3 Jan 2019 15:29:25 +0700 Subject: [PATCH] cart belum selesai keburu pindah ke yang lain --- src/common/pages/App/routes.js | 4 +- src/common/pages/CartDetail/index.js | 248 +++++++++++++++++++++++++++ src/common/routes.js | 1 + 3 files changed, 252 insertions(+), 1 deletion(-) create mode 100644 src/common/pages/CartDetail/index.js diff --git a/src/common/pages/App/routes.js b/src/common/pages/App/routes.js index 2b37d38..e1df443 100644 --- a/src/common/pages/App/routes.js +++ b/src/common/pages/App/routes.js @@ -29,7 +29,8 @@ import Tasks from './../Tasks/index'; import HotelComponent from '../Hotel'; import HotelSearch from './../Hotel/HotelSearch'; import CarComponent from '../Car'; -import CarSearch from './../Car/CarSearch' +import CarSearch from './../Car/CarSearch'; +import CartDetail from '../CartDetail/index'; import CustomerComponent from "../Customers/index"; import CustomerDetail from "../CustomerDetail/index"; import WalletCostumer from '../CustomerDetail/Wallet/index'; @@ -78,6 +79,7 @@ export default class ComponentName extends React.Component { + diff --git a/src/common/pages/CartDetail/index.js b/src/common/pages/CartDetail/index.js new file mode 100644 index 0000000..655c751 --- /dev/null +++ b/src/common/pages/CartDetail/index.js @@ -0,0 +1,248 @@ +import React from 'react'; +import {inject, observer} from 'mobx-react'; +import { + FlatButton +} from 'material-ui'; +import { Affix, Card, Slider, Select, Row, Col, Icon, Tag,Rate, Button, Checkbox ,Divider, DatePicker, TimePicker, List } from 'antd'; +import {startCase} from 'lodash'; +import LoadingDialog from "../LoadingDialog"; +import Loader from 'react-loader-advanced'; +// import './style.scss'; +import {DIALOG} from "../../stores/global_ui"; +import EmptyComponent from '../EmptyComponent'; +import DeleteIcon from 'material-ui/svg-icons/action/delete'; +import Search from 'material-ui/svg-icons/action/search'; + +const format = 'HH:mm'; + + + +@inject('appstate') +@observer +export default class CartDetail extends React.Component { + constructor(props) { + super(props); + this.props = props; + this.state = { + value: 1, + valueMinimal: 0, + valueMaximal: 0, + changeSearch:false, + }; + this.defaultState = Object.assign({}, this.state); + this.http = props.appstate.http; + this.authStore = props.appstate.auth; + this.globalUI = props.appstate.globalUI; + } + + componentDidMount() { + + } + + handleChangeMinimal = (valueMinimal) => { + this.setState({ valueMinimal }); + }; + + handleChangeMaximal = (valueMaximal) => { + this.setState({ valueMaximal }); + }; + + handleBlur = () => { + console.log('blur'); + } + + handleFocus = () => { + console.log('focus'); + } + + handleChangeSearch = () => { + this.setState({ + changeSearch : true + }) + } + + handleChangeSearchFalse = () => { + this.setState({ + changeSearch : false + }) + } + + + + render() { + const { valueMinimal, valueMaximal } = this.state; + + const dataAgya = [ + 'Full to full gasoline', + '4 people', + '4 door', + ]; + + const dataAvanza = [ + 'Full to full gasoline', + '4 people', + '5 door', + ]; + + const dataInova = [ + 'Full to full gasoline', + '6 people', + '4 door', + ]; + + return ( +
+
+
+ + + +
+ Pilih Semua Product +
+
+
+
+ + Penjual : Xiomi shop} + style={{marginRight:20,marginBottom:20}} + > + + + example + + + + +

Toyota Agya

+
+ + +

At Airport

+
+ Air Conditional + Mini + Automatic +
+

99,643 Poin

+ + + ({item})} + /> + +
+ + + + + + +
+
+
+ + + + + + example + + + + +

Toyota Avanza

+
+ + +

At Airport

+
+ Air Conditional + Special + Automatic +
+

109,132 Poin

+ + + ({item})} + /> + +
+ + + + + + +
+
+
+ + + + + example + + + + +

Toyota Inova

+
+ + +

At Airport

+
+ Air Conditional + Special + Automatic +
+

147,091 Poin

+ + + ({item})} + /> + +
+ + + + + + +
+
+
+
+
+ + +
+

Total Poin

+

150,100 Poin

+
+ + +
+
+
+
+ + +
+ ) + } +} diff --git a/src/common/routes.js b/src/common/routes.js index b0bb2bc..8969b46 100644 --- a/src/common/routes.js +++ b/src/common/routes.js @@ -111,6 +111,7 @@ export const LINKS = { CAR:'/app/car', CAR_SEARCH:'/app/car/search', VOUCHERS: '/app/vouchers', + CART_DETAIL: '/app/cart', }; @inject('appstate')