Commit d7157399 by zhanghaozhe

定金支付页

parent 2b925964
...@@ -5,10 +5,8 @@ import { OrderItem, HeaderBar } from '@/common/index' ...@@ -5,10 +5,8 @@ import { OrderItem, HeaderBar } from '@/common/index'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import './index.scss' import './index.scss'
import { VList } from '@/common' import { VList } from '@/common'
import { WithFullSize } from '@/HOCs'
const Item = List.Item
const Brief = Item.Brief
const RadioItem = Radio.RadioItem const RadioItem = Radio.RadioItem
let mockData = [] let mockData = []
...@@ -24,7 +22,7 @@ if (browser.isWeixin) { ...@@ -24,7 +22,7 @@ if (browser.isWeixin) {
} }
export default class PayOrder extends Component { class PayOrder extends Component {
constructor(props) { constructor(props) {
super(props) super(props)
this.state = { this.state = {
...@@ -327,8 +325,7 @@ export default class PayOrder extends Component { ...@@ -327,8 +325,7 @@ export default class PayOrder extends Component {
}*/ }*/
} }
toggleAgree = (e) => { changeAgreement = () => {
console.log(e)
this.setState((prevState) => ({agree: !prevState.agree})) this.setState((prevState) => ({agree: !prevState.agree}))
} }
...@@ -419,16 +416,18 @@ export default class PayOrder extends Component { ...@@ -419,16 +416,18 @@ export default class PayOrder extends Component {
))} ))}
</List> </List>
<Flex> <Flex>
<Flex.Item> <Flex.Item className={'agreement'}>
<Checkbox.AgreeItem> <Checkbox.AgreeItem onChange={this.changeAgreement}>
我已同意定金不退 我已同意定金不退
</Checkbox.AgreeItem> </Checkbox.AgreeItem>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div> {/*<div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>*/}
<div className='pay-button' onClick={this.pay}>确认支付</div> <div className='pay-button' onClick={this.pay}>确认支付</div>
</div> </div>
) )
} }
} }
export default WithFullSize(PayOrder)
.pay-order { .pay-order {
width: 100%; width: 100%;
height: calc(100% - 44px);
background-color: #f5f5f5; background-color: #f5f5f5;
margin-bottom: 50px;
.order-number { .order-number {
background-color: #fff; background-color: #fff;
...@@ -74,12 +74,25 @@ ...@@ -74,12 +74,25 @@
display: block; display: block;
} }
.am-checkbox-agree .am-checkbox{ }
.agreement {
margin-top: 8px;
background: #fff;
.am-checkbox-agree{
.am-checkbox {
left: unset; left: unset;
right: 10px; right: 6px;
}
.am-checkbox-agree-label{
margin-left: 3px;
} }
} }
}
.pay-tip { .pay-tip {
width: 100%; width: 100%;
height: 30px; height: 30px;
...@@ -226,7 +239,8 @@ ...@@ -226,7 +239,8 @@
background-color: rgba(224, 46, 36, 0.6); background-color: rgba(224, 46, 36, 0.6);
} }
} }
.price-des{
.price-des {
color: #999; color: #999;
font-size: 11px; font-size: 11px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment