소스 검색

Merge branch 'dev' of http://git.ycjcjy.com/estateagents/pc-channel into dev

zhoulisen 5 년 전
부모
커밋
dff5801ed4
3개의 변경된 파일15개의 추가작업 그리고 7개의 파일을 삭제
  1. 10
    1
      src/pages/fundManagement/AccountDetail.jsx
  2. 5
    5
      src/pages/fundManagement/ConsumeOrder.jsx
  3. 0
    1
      src/pages/fundManagement/RefundOrder.jsx

+ 10
- 1
src/pages/fundManagement/AccountDetail.jsx 파일 보기

@@ -95,6 +95,15 @@ function header(props) {
95 95
         },
96 96
     ]
97 97
 
98
+    const getDetail = (row) => {
99
+        router.push({
100
+            pathname: '/fundManagement/AccountDetail',
101
+            query: {
102
+                id: row.orgId
103
+            },
104
+        });
105
+    }
106
+
98 107
 
99 108
     return (
100 109
 
@@ -113,7 +122,7 @@ function header(props) {
113 122
                         <XForm buttonVisible={false} fields={fields}></XForm>
114 123
                         <div style={{ paddingLeft: '30%', marginTop: '30px' }}>
115 124
                             {/* <Button htmlType="submit" type="primary" style={{ marginRight: '10%', padding: '0' }}> */}
116
-                                <Recharge type="primary" orgId={newsData.orgId || ''} onClick={() => getDetail(orgId)} accountId={newsData.accountId || ''} />
125
+                                <Recharge type="primary" orgId={newsData.orgId || ''} onClick={() => getDetail(newsData)} accountId={newsData.accountId || ''} />
117 126
                             {/* </Button> */}
118 127
                             <Button onClick={() => router.go(-1)}>返回</Button>
119 128
                         </div>

+ 5
- 5
src/pages/fundManagement/ConsumeOrder.jsx 파일 보기

@@ -123,7 +123,7 @@ function header(props) {
123 123
             dataIndex: 'tradingStatus',
124 124
             key: 'tradingStatus',
125 125
             align: 'center',
126
-            render: (x, row) => <><span>{row.tradingStatus == '1' ? '成功' : '失败'}</span></>
126
+            render: (x, row) => <><span>{row.tradingStatus == 'success' ? '成功' : '失败'}</span></>
127 127
         },
128 128
 
129 129
     ];
@@ -175,7 +175,7 @@ function header(props) {
175 175
                 <div style={{ paddingLeft: '36%' }}>
176 176
                     <p>昵称:{personInfo.nickname || ''}</p>
177 177
                     <p>头像:<img src={personInfo.avatarurl || ''} className={styles.touxiang} /></p>
178
-                    <p>姓名:{personInfo.name || ''}</p>
178
+                    <p>姓名:{personInfo.name || personInfo.nickname}</p>
179 179
                     <p>手机号:{personInfo.phone || ''}</p>
180 180
                 </div>
181 181
 
@@ -207,7 +207,7 @@ function header(props) {
207 207
                     {getFieldDecorator('itemType')(
208 208
                         <Select style={{ width: '180px' }} placeholder="消费方式">
209 209
                             <Select.Option value="">全部</Select.Option>
210
-                            <Select.Option value="redPacket">红包</Select.Option>
210
+                            <Select.Option value="RedPacket">红包</Select.Option>
211 211
                         </Select>,
212 212
                     )}
213 213
                 </Form.Item>
@@ -215,8 +215,8 @@ function header(props) {
215 215
                     {getFieldDecorator('tradingStatus')(
216 216
                         <Select style={{ width: '180px' }} placeholder="消费状态">
217 217
                             <Select.Option value="">全部</Select.Option>
218
-                            <Select.Option value="1">成功</Select.Option>
219
-                            <Select.Option value="2">失败</Select.Option>
218
+                            <Select.Option value="success">成功</Select.Option>
219
+                            <Select.Option value="fail">失败</Select.Option>
220 220
                         </Select>,
221 221
                     )}
222 222
                 </Form.Item>

+ 0
- 1
src/pages/fundManagement/RefundOrder.jsx 파일 보기

@@ -24,7 +24,6 @@ function header(props) {
24 24
     const [refundVisible, setRefundVisible] = useState(false)
25 25
     const [inputValue, setValue] = useState('')
26 26
     const [swiperList, setSwiperList] = useState([])
27
-    console.log(props, "propspropspropspropspropsprops")
28 27
 
29 28
     const orgId = props.orgId || ''
30 29