zhoulisen 5 년 전
부모
커밋
9c3c7a4407
1개의 변경된 파일6개의 추가작업 그리고 7개의 파일을 삭제
  1. 6
    7
      src/pages/funds/accountfunds/components/Refund.jsx

+ 6
- 7
src/pages/funds/accountfunds/components/Refund.jsx 파일 보기

@@ -1,18 +1,17 @@
1 1
 import React, { useState } from 'react';
2 2
 import { Button, Input, Row, Col } from 'antd';
3 3
 import Styles from './styles.less';
4
-import Navigate from '@/components/Navigate';
4
+import ContactText from './contactText'
5 5
 
6 6
 const Recharge = props => {
7
-
8 7
     const { balance } = props
9 8
 
10 9
     const [value, setValue] = useState()
11 10
 
12 11
     function onChange(e) {
13
-        // if (e.target.value <= 0) return
14
-        // if (e.target.value > balance) { setValue(balance); return }
15
-        console.log('changed', e.target.value);
12
+        if (e.target.value <= 0) return
13
+        if (e.target.value > balance) { setValue(balance); return }
14
+        // console.log('changed', e.target.value);
16 15
         setValue(e.target.value)
17 16
 
18 17
     }
@@ -23,11 +22,11 @@ const Recharge = props => {
23 22
                 <Col span={17} offset={1}>
24 23
                     <Input type="number" min={0} step={0.01} value={value} onChange={onChange} style={{ marginBottom: '40px' }}></Input>
25 24
                     <span style={{ fontSize: '20px', color: '#979797', lineHeight: '30px' }}>账户余额:{balance}元</span>
26
-                    <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px', marginTop: '20px' }}>因微信商户平台限制,需先提交退款申请,提交后会冻结退款额对应余额资金,冻结金额无法使用,若您的平台有正在举办的活动等需要消费的地方,请预留充足的余额。如有疑问, <Navigate>请联系我们</Navigate></p>
25
+                    <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px', marginTop: '20px' }}>因微信商户平台限制,需先提交退款申请,提交后会冻结退款额对应余额资金,冻结金额无法使用,若您的平台有正在举办的活动等需要消费的地方,请预留充足的余额。如有疑问, <ContactText /></p>
27 26
                 </Col>
28 27
             </Row>
29 28
             <div style={{ textAlign: 'center', marginTop: '40px' }}>
30
-                <Button className={Styles.btn} type="primary" htmlType="submit" onClick={() => props.value(value)}>确认申请</Button>
29
+                <Button className={Styles.btn} type="primary" htmlType="submit" onClick={() => props.value(value * 100)}>确认申请</Button>
31 30
 
32 31
             </div>
33 32
         </>