zhoulisen 5 år sedan
förälder
incheckning
7920d60d64

+ 1
- 1
src/pages/activity/drainage/DrainageList.jsx Visa fil

339
             { required: true, message: '请选择是否投放小程序' },
339
             { required: true, message: '请选择是否投放小程序' },
340
           ],
340
           ],
341
         })(
341
         })(
342
-          <Radio.Group onChange={changeMiniapp}>
342
+          <Radio.Group onChange={changeMiniapp} disabled={!!formsDate.activityId}>
343
             <Radio value={1}>是</Radio>
343
             <Radio value={1}>是</Radio>
344
             <Radio value={0}>否</Radio>
344
             <Radio value={0}>否</Radio>
345
           </Radio.Group>
345
           </Radio.Group>

+ 14
- 9
src/pages/activity/drainage/components/Basic.jsx Visa fil

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Slider, Row, Col, Checkbox, Input, Button, InputNumber } from 'antd';
2
+import { Form, Slider, Row, Col, Checkbox, Input, Button, InputNumber, message } from 'antd';
3
 import router from 'umi/router';
3
 import router from 'umi/router';
4
 import apis from '../../../../services/apis';
4
 import apis from '../../../../services/apis';
5
 import request from '../../../../utils/request';
5
 import request from '../../../../utils/request';
46
     }
46
     }
47
 
47
 
48
     const updateRedPacket = data => {
48
     const updateRedPacket = data => {
49
+        console.log('123123')
49
         request({ ...apis.redPacket.update, data: { ...data } }).then(data => {
50
         request({ ...apis.redPacket.update, data: { ...data } }).then(data => {
50
             // setData(data)
51
             // setData(data)
52
+            console.log('123123')
53
+            message.success('操作成功')
54
+        }).catch((e) => {
55
+            message.error('操作失败')
51
         })
56
         })
52
     }
57
     }
53
 
58
 
96
 
101
 
97
     };
102
     };
98
 
103
 
99
-    const handleInputConfirm = () => {
100
-        setregistrationFormOption([
101
-            { label: '姓名', value: 'name' },
102
-            { label: '电话', value: 'tel' },
103
-            { label: registrationInputValue, value: 'abc' },
104
-        ])
104
+    // const handleInputConfirm = () => {
105
+    //     setregistrationFormOption([
106
+    //         { label: '姓名', value: 'name' },
107
+    //         { label: '电话', value: 'tel' },
108
+    //         { label: registrationInputValue, value: 'abc' },
109
+    //     ])
105
 
110
 
106
 
111
 
107
-        setInputVisible(!inputVisible)
108
-    }
112
+    //     setInputVisible(!inputVisible)
113
+    // }
109
 
114
 
110
     const { getFieldDecorator } = props.form
115
     const { getFieldDecorator } = props.form
111
 
116
 

+ 4
- 2
src/pages/activity/drainage/components/Help.jsx Visa fil

7
 
7
 
8
 const { RangePicker } = DatePicker;
8
 const { RangePicker } = DatePicker;
9
 
9
 
10
-function validatorNum (rule, value, callback) {
10
+function validatorNum(rule, value, callback) {
11
     callback(value < 1 || value > 1000 ? '人数必须大于0 小于 1000' : undefined);
11
     callback(value < 1 || value > 1000 ? '人数必须大于0 小于 1000' : undefined);
12
 }
12
 }
13
 
13
 
37
         values.endDate = `${moment(endDate).format('YYYY-MM-DDT00:00:00.000')}Z`
37
         values.endDate = `${moment(endDate).format('YYYY-MM-DDT00:00:00.000')}Z`
38
         values.activityId = id
38
         values.activityId = id
39
         request({ ...apis.redPacket.updateHelp, urlData: { id }, data: { ...values } }).then(data => {
39
         request({ ...apis.redPacket.updateHelp, urlData: { id }, data: { ...values } }).then(data => {
40
-
40
+            message.info('操作成功')
41
+        }).catch(() => {
42
+            message.error('操作失败')
41
         })
43
         })
42
     }
44
     }
43
 
45
 

+ 4
- 3
src/pages/activity/drainage/components/Ranking.jsx Visa fil

28
             if (!err) {
28
             if (!err) {
29
                 // eslint-disable-next-line no-console
29
                 // eslint-disable-next-line no-console
30
                 console.log('提交数据: ', values)
30
                 console.log('提交数据: ', values)
31
+                getList({ pageNum: 1, pageSize: 10, ...values })
31
             }
32
             }
32
         });
33
         });
33
     }
34
     }
52
             dataIndex: 'avatarurl',
53
             dataIndex: 'avatarurl',
53
             key: 'avatarurl',
54
             key: 'avatarurl',
54
             align: 'center',
55
             align: 'center',
55
-            render: (x, row) => <img src={row.qrCodeUrl} alt="" width="100px"></img >,
56
+            render: (x, row) => <img src={row.avatarurl} alt="" width="50px"></img >,
56
         },
57
         },
57
         {
58
         {
58
             title: '昵称',
59
             title: '昵称',
74
         },
75
         },
75
         {
76
         {
76
             title: '发起时间',
77
             title: '发起时间',
77
-            dataIndex: 'targetName',
78
-            key: 'targetName',
78
+            dataIndex: 'createDate',
79
+            key: 'createDate',
79
             align: 'center',
80
             align: 'center',
80
             render: (x, row) => <><span>{`${moment(row.createDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
81
             render: (x, row) => <><span>{`${moment(row.createDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
81
         },
82
         },

+ 2
- 1
src/pages/activity/drainage/components/RedPacket.jsx Visa fil

31
     const updateRedPacket = data => {
31
     const updateRedPacket = data => {
32
         request({ ...apis.redPacket.updateMoney, urlData: { id }, data: { ...data } }).then(data => {
32
         request({ ...apis.redPacket.updateMoney, urlData: { id }, data: { ...data } }).then(data => {
33
             // setData(data)
33
             // setData(data)
34
+            message.info('操作成功')
34
         })
35
         })
35
     }
36
     }
36
 
37
 
73
                 <Col span={8} style={{ padding: '0 10px' }}>
74
                 <Col span={8} style={{ padding: '0 10px' }}>
74
                     <div className={Styles.redHeader}>
75
                     <div className={Styles.redHeader}>
75
                         {/* packetSendedNum */}
76
                         {/* packetSendedNum */}
76
-                        <div className={Styles.redHeaderTop}><span className={Styles.redHeaderTopText}>已发送红包总数量/个</span><span className={Styles.redHeaderTopNum}>{data.sendNum / 100 || 0}</span></div>
77
+                        <div className={Styles.redHeaderTop}><span className={Styles.redHeaderTopText}>已发送红包总数量/个</span><span className={Styles.redHeaderTopNum}>{data.sendNum || 0}</span></div>
77
                         <div className={Styles.redHeaderBottom}><Navigate onClick={() => props.toDetail()}>查看详情</Navigate></div>
78
                         <div className={Styles.redHeaderBottom}><Navigate onClick={() => props.toDetail()}>查看详情</Navigate></div>
78
                     </div>
79
                     </div>
79
                 </Col>
80
                 </Col>

+ 6
- 5
src/pages/activity/drainage/components/RedPacketRecord.jsx Visa fil

6
 import request from '../../../../utils/request';
6
 import request from '../../../../utils/request';
7
 
7
 
8
 const TradingStatus = {
8
 const TradingStatus = {
9
-    processing: '进行中',
9
+    // processing: '进行中',
10
     success: '成功',
10
     success: '成功',
11
     fail: '失败',
11
     fail: '失败',
12
 }
12
 }
77
             dataIndex: 'avatarurl',
77
             dataIndex: 'avatarurl',
78
             key: 'avatarurl',
78
             key: 'avatarurl',
79
             align: 'center',
79
             align: 'center',
80
-            render: (x, row) => <img src={row.qrCodeUrl} alt="" width="100px"></img >,
80
+            render: (x, row) => <img src={row.avatarurl} alt="" width="50px"></img >,
81
         },
81
         },
82
         {
82
         {
83
             title: '手机号',
83
             title: '手机号',
93
         },
93
         },
94
         {
94
         {
95
             title: '金额(元)',
95
             title: '金额(元)',
96
-            dataIndex: 'packetAmount',
97
-            key: 'packetAmount',
96
+            dataIndex: 'amount',
97
+            key: 'amount',
98
             align: 'center',
98
             align: 'center',
99
+            render: x => <span>{x / 100}</span >,
99
         },
100
         },
100
         {
101
         {
101
             title: '发送状态',
102
             title: '发送状态',
102
             dataIndex: 'tradingStatus',
103
             dataIndex: 'tradingStatus',
103
             key: 'tradingStatus',
104
             key: 'tradingStatus',
104
             align: 'center',
105
             align: 'center',
105
-            render: x => <span>{ TradingStatus[x] || ''}</span>,
106
+            render: x => <span>{TradingStatus[x] || ''}</span>,
106
         },
107
         },
107
     ]
108
     ]
108
 
109
 

+ 10
- 8
src/pages/activity/groupActivity/editGroupActivity.jsx Visa fil

35
     {
35
     {
36
       label: '选择项目',
36
       label: '选择项目',
37
       name: 'buildingId',
37
       name: 'buildingId',
38
-      render: <BuildSelect disabled={disable}/>,
38
+      render: <BuildSelect disabled={disable} />,
39
       value: dynamicData.buildingId,
39
       value: dynamicData.buildingId,
40
       rules: [
40
       rules: [
41
         { required: true, message: '请选择项目' },
41
         { required: true, message: '请选择项目' },
126
       label: '权重',
126
       label: '权重',
127
       name: 'heavy',
127
       name: 'heavy',
128
       type: FieldTypes.Number,
128
       type: FieldTypes.Number,
129
-      render: <Input type="number" style={{ width: 80}} />,
129
+      render: <Input type="number" style={{ width: 80 }} />,
130
       value: dynamicData.heavy,
130
       value: dynamicData.heavy,
131
       rules: [
131
       rules: [
132
         { required: true, message: '请输入权重' },
132
         { required: true, message: '请输入权重' },
268
             WebkitBoxOrient: 'vertical',
268
             WebkitBoxOrient: 'vertical',
269
             overflow: 'hidden',
269
             overflow: 'hidden',
270
             textOverflow: 'ellipsis',
270
             textOverflow: 'ellipsis',
271
-          }}>{ textAreaValue || '海报描述'}</p>
271
+          }}>{textAreaValue || '海报描述'}</p>
272
           <div style={{ backgroundColor: '#f1f1f1', padding: '22px 30px', boxShadow: '0px 6px 12px -4px #dcdcdc', position: 'relative' }}>
272
           <div style={{ backgroundColor: '#f1f1f1', padding: '22px 30px', boxShadow: '0px 6px 12px -4px #dcdcdc', position: 'relative' }}>
273
             <p style={{ margin: '0', fontSize: '18px', color: '#888' }}>长按识别小程序码</p>
273
             <p style={{ margin: '0', fontSize: '18px', color: '#888' }}>长按识别小程序码</p>
274
             <p style={{ margin: '0', fontSize: '18px', color: '#888' }}>进入活动查看详情</p>
274
             <p style={{ margin: '0', fontSize: '18px', color: '#888' }}>进入活动查看详情</p>
283
           <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>拼团海报图</p>
283
           <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>拼团海报图</p>
284
           <ImageUploader value={imgValue} onChange={e => changeImg(e)} />
284
           <ImageUploader value={imgValue} onChange={e => changeImg(e)} />
285
         </div>
285
         </div>
286
-        <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600,比例5:4,格式:jpg,用于拼团活动海报</p>
286
+        <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px' }}>建议图片尺寸:750*600,比例5:4,格式:jpg,用于拼团活动海报</p>
287
         <div style={{ display: 'flex', alignItems: 'center', width: '100%', marginBottom: '60px' }}>
287
         <div style={{ display: 'flex', alignItems: 'center', width: '100%', marginBottom: '60px' }}>
288
           <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报标题</p>
288
           <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报标题</p>
289
           <Input style={{ width: '20vw' }} value={inputValue} placeholder="请输入海报标题" onChange={e => changeInput(e.target.value)} />
289
           <Input style={{ width: '20vw' }} value={inputValue} placeholder="请输入海报标题" onChange={e => changeInput(e.target.value)} />
302
 
302
 
303
 
303
 
304
 const Share = props => {
304
 const Share = props => {
305
+  console.log(props, 'props')
305
   const { groupActivityId } = props
306
   const { groupActivityId } = props
306
   const [inputValue, changeInput] = useState('')
307
   const [inputValue, changeInput] = useState('')
307
   const [imgValue, changeImg] = useState('')
308
   const [imgValue, changeImg] = useState('')
308
   const [shareContentId, setShareContentId] = useState('')
309
   const [shareContentId, setShareContentId] = useState('')
309
 
310
 
310
   useEffect(() => {
311
   useEffect(() => {
311
-      if (groupActivityId) {
312
+    if (groupActivityId) {
312
       request({ ...apis.activity.shareContent, params: { targetId: groupActivityId, targetType: 'groupActivity' } }).then(data => {
313
       request({ ...apis.activity.shareContent, params: { targetId: groupActivityId, targetType: 'groupActivity' } }).then(data => {
313
         if (data.length > 0) {
314
         if (data.length > 0) {
314
           setShareContentId(data[0].shareContentId)
315
           setShareContentId(data[0].shareContentId)
322
   }, [])
323
   }, [])
323
 
324
 
324
   const submitShare = () => {
325
   const submitShare = () => {
326
+    console.log(groupActivityId)
325
     if (groupActivityId) {
327
     if (groupActivityId) {
326
       if (shareContentId) {
328
       if (shareContentId) {
327
         request({ ...apis.activity.updateShareContent, urlData: { id: shareContentId }, data: { targetId: groupActivityId, shareContentType: 'groupActivity', shareContentImg: imgValue, shareContentTitle: inputValue } }).then(data => {
329
         request({ ...apis.activity.updateShareContent, urlData: { id: shareContentId }, data: { targetId: groupActivityId, shareContentType: 'groupActivity', shareContentImg: imgValue, shareContentTitle: inputValue } }).then(data => {
359
       <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>拼团分享图</p>
361
       <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>拼团分享图</p>
360
       <ImageUploader value={imgValue} onChange={e => changeImg(e)} />
362
       <ImageUploader value={imgValue} onChange={e => changeImg(e)} />
361
     </div>
363
     </div>
362
-    <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于拼团活动分享好友</p>
364
+    <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px' }}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于拼团活动分享好友</p>
363
     <Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
365
     <Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
364
     <Button onClick={() => cancelPage()}>取消</Button>
366
     <Button onClick={() => cancelPage()}>取消</Button>
365
   </div>
367
   </div>
417
       </div>
419
       </div>
418
       <div>
420
       <div>
419
         {tab === 'basic' && <Basic dynamicData={dynamicData} disable={disable} activityStatus={activityStatus} scoreData={scoreData} groupActivityId={groupActivityId} />}
421
         {tab === 'basic' && <Basic dynamicData={dynamicData} disable={disable} activityStatus={activityStatus} scoreData={scoreData} groupActivityId={groupActivityId} />}
420
-        {tab === 'poster' && <Poster groupActivityId={groupActivityId}/>}
421
-        {tab === 'share' && <Share />}
422
+        {tab === 'poster' && <Poster groupActivityId={groupActivityId} />}
423
+        {tab === 'share' && <Share groupActivityId={groupActivityId} />}
422
       </div>
424
       </div>
423
       <Prompt message={location =>
425
       <Prompt message={location =>
424
         (location.pathname.startsWith('/activity/groupActivity')
426
         (location.pathname.startsWith('/activity/groupActivity')

+ 1
- 0
src/pages/funds/accountfunds/components/ConsumerOrder.jsx Visa fil

78
             dataIndex: 'amount',
78
             dataIndex: 'amount',
79
             key: 'amount',
79
             key: 'amount',
80
             align: 'center',
80
             align: 'center',
81
+            render: x => <><span>{x / 100 || ''}</span></>,
81
         },
82
         },
82
         {
83
         {
83
             title: '消费方式',
84
             title: '消费方式',

+ 10
- 17
src/pages/funds/accountfunds/components/Contact.jsx Visa fil

1
-import React, { useState } from 'react';
2
-import { Button, Input, Row, Col } from 'antd';
3
-import Styles from './styles.less';
4
-import Navigate from '@/components/Navigate';
1
+import React from 'react';
2
+import ContactText from './contactText'
5
 
3
 
6
-const Recharge = props => {
7
-
8
-    const [value, setValue] = useState()
9
-
10
-    return (
11
-        <>
12
-            <span style={{ fontSize: '22px', color: '#979797', lineHeight: '30px' }}>重要说明:</span>
13
-            <div style={{ fontSize: '18px', color: '#333', lineHeight: '34px', marginTop: '20px' }}>
14
-                您已充值成功,微信充值到账为T+7,因此,充值金额7日后才能到账,为不影响客户使用,实际活动金额由橙蕉预先充值垫付,需要在使用预算前和运营人员确认橙蕉余额是否充足, <Navigate>请联系我们</Navigate>
15
-            </div>
16
-        </>
17
-    )
18
-}
4
+const Recharge = () => (
5
+    <>
6
+        <span style={{ fontSize: '22px', color: '#979797', lineHeight: '30px' }}>重要说明:</span>
7
+        <div style={{ fontSize: '18px', color: '#333', lineHeight: '34px', marginTop: '20px' }}>
8
+            您已充值成功,微信充值到账为T+7,因此,充值金额7日后才能到账,为不影响客户使用,实际活动金额由橙蕉预先充值垫付,需要在使用预算前和运营人员确认橙蕉余额是否充足,<ContactText />
9
+        </div>
10
+    </>
11
+)
19
 export default Recharge
12
 export default Recharge

+ 10
- 44
src/pages/funds/accountfunds/components/Pay.jsx Visa fil

11
     console.log(amount, 'amount')
11
     console.log(amount, 'amount')
12
     const { orderInfo } = amount
12
     const { orderInfo } = amount
13
     console.log(orderInfo, 'orderInfo')
13
     console.log(orderInfo, 'orderInfo')
14
+    useEffect(() => {
15
+        console.log(props.visible, 'props.visible')
16
+
17
+        return () => clearInterval(getByInfo);
18
+        // setTimeout(() => { getByInfo() }, 1000)
19
+    }, [props.visible])
14
     const getByInfo = setInterval(() => {
20
     const getByInfo = setInterval(() => {
15
 
21
 
16
 
22
 
22
                 // props.value()
28
                 // props.value()
23
                 // if (!visible) { clearInterval(getByInfo) }
29
                 // if (!visible) { clearInterval(getByInfo) }
24
             } else if (data.tradingStatus === 'success') {
30
             } else if (data.tradingStatus === 'success') {
25
-                mmessage.info('充值成功')
26
-
27
-                props.value('success')
31
+                message.info('充值成功')
28
                 clearInterval(getByInfo)
32
                 clearInterval(getByInfo)
33
+                props.value('success')
29
             } else {
34
             } else {
30
-                mmessage.info('充值失败')
31
-
32
-                props.value('fail')
35
+                message.info('充值失败')
33
                 clearInterval(getByInfo)
36
                 clearInterval(getByInfo)
37
+                props.value('fail')
34
             }
38
             }
35
             // tradingStatus
39
             // tradingStatus
36
             // setTimeout(() => { getByInfo() }, 1000)
40
             // setTimeout(() => { getByInfo() }, 1000)
40
         })
44
         })
41
     }, 1000)
45
     }, 1000)
42
 
46
 
43
-
44
-    useEffect(() => {
45
-        console.log(props.visible, 'props.visible')
46
-
47
-        return () => clearInterval(getByInfo);
48
-        // setTimeout(() => { getByInfo() }, 1000)
49
-    }, [props.visible])
50
-
51
-
52
-
53
-    // {
54
-    //     request({ ...apis.funds.getByInfo, params: { orderId: orderInfo.orderId } }).then(data => {
55
-    //         if (data.tradingStatus === 'processing') {
56
-    //             setTimeout(() => { getByInfo() }, 1000)
57
-    //         } else if (data.tradingStatus === 'success') {
58
-    //             mmessage.info('充值成功')
59
-    //         } else {
60
-    //             mmessage.info('充值失败')
61
-    //         }
62
-
63
-    //         // tradingStatus
64
-    //         // setTimeout(() => { getByInfo() }, 1000)
65
-    //     }).catch(err => {
66
-    //         console.log(err)
67
-    //     })
68
-    // }
69
-    // getByInfo
70
-
71
-
72
-    // const [value, setValue] = useState()
73
-
74
-    // function onChange(e) {
75
-    //     if (e.target.value <= 0) return
76
-    //     if (e.target.value > 99999.99) { setValue(99999.99); return }
77
-    //     console.log('changed', e.target.value);
78
-    //     setValue(e.target.value)
79
-
80
-    // }
81
     return (
47
     return (
82
         <>
48
         <>
83
             <div style={{ fontSize: '18px', fontWeight: '400', color: '#333333' }}>
49
             <div style={{ fontSize: '18px', fontWeight: '400', color: '#333333' }}>

+ 1
- 1
src/pages/funds/accountfunds/components/Recharge.jsx Visa fil

25
                     <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px', marginTop: '20px' }}>1.充值流程:输入充值金额-点击确定-扫码支付-支付成功。</p>
25
                     <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px', marginTop: '20px' }}>1.充值流程:输入充值金额-点击确定-扫码支付-支付成功。</p>
26
                     <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px' }}>2.因微信限制,微信充值有手续费,因此充值金额中应包含手续费,费率1%。</p>
26
                     <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px' }}>2.因微信限制,微信充值有手续费,因此充值金额中应包含手续费,费率1%。</p>
27
                     <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px' }}>3.微信充值到账为T+7,因此,充值金额7日后才能到账,为不影响客户使用,实际活动金额由橙蕉预先充值垫付,需要在使用预算前和运营人员确认橙蕉余额是否充足。充值后请联系我们。</p>
27
                     <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px' }}>3.微信充值到账为T+7,因此,充值金额7日后才能到账,为不影响客户使用,实际活动金额由橙蕉预先充值垫付,需要在使用预算前和运营人员确认橙蕉余额是否充足。充值后请联系我们。</p>
28
-                    <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px' }}>4.您也可使用银行卡转账/支付宝支付/对公账户打款/现金支付等方式充值,具体方式<ContactText /></p>
28
+                    <p style={{ fontSize: '18px', color: '#333', marginBottom: '8px' }}>4.您也可使用银行卡转账/支付宝支付/对公账户打款/现金支付等方式充值,具体方式<ContactText /></p>
29
                 </Col>
29
                 </Col>
30
             </Row>
30
             </Row>
31
             <div style={{ textAlign: 'center', marginTop: '40px' }}>
31
             <div style={{ textAlign: 'center', marginTop: '40px' }}>

+ 3
- 2
src/pages/funds/accountfunds/components/RechargeOrder.jsx Visa fil

89
             dataIndex: 'amount',
89
             dataIndex: 'amount',
90
             key: 'amount',
90
             key: 'amount',
91
             align: 'center',
91
             align: 'center',
92
+            render: x => <><span>{x / 100 || ''}</span></>,
92
         },
93
         },
93
         {
94
         {
94
             title: '充值方式',
95
             title: '充值方式',
116
             dataIndex: 'tradingStatus',
117
             dataIndex: 'tradingStatus',
117
             key: 'tradingStatus',
118
             key: 'tradingStatus',
118
             align: 'center',
119
             align: 'center',
119
-            render: (x, row) => <><span>{row.tradingStatus == 'processing' ? '待支付' : (row.tradingStatus == 'success' ? '已支付' : '已超时')}</span></>,
120
+            render: (x, row) => <><span>{row.tradingStatus == 'processing' ? '待支付' : (row.tradingStatus == 'success' ? '已支付' : '失败')}</span></>,
120
         },
121
         },
121
         {
122
         {
122
             title: '支付时间',
123
             title: '支付时间',
192
                             <Option value="">全部</Option>
193
                             <Option value="">全部</Option>
193
                             <Option value="processing">待支付</Option>
194
                             <Option value="processing">待支付</Option>
194
                             <Option value="success">已支付</Option>
195
                             <Option value="success">已支付</Option>
195
-                            <Option value="fail">已超时</Option>
196
+                            <Option value="fail">失败</Option>
196
                         </Select>,
197
                         </Select>,
197
                     )}
198
                     )}
198
                 </Form.Item>
199
                 </Form.Item>

+ 2
- 1
src/pages/funds/financialContact/index.jsx Visa fil

50
             dataIndex: 'sex',
50
             dataIndex: 'sex',
51
             key: 'sex',
51
             key: 'sex',
52
             align: 'center',
52
             align: 'center',
53
+            render: x => <span>{x == 1 ? '男' : x === 2 ? '女' : '未知'}</span >,
53
         },
54
         },
54
         {
55
         {
55
             title: '头像',
56
             title: '头像',
56
             dataIndex: 'avatar',
57
             dataIndex: 'avatar',
57
             key: 'avatar',
58
             key: 'avatar',
58
             align: 'center',
59
             align: 'center',
59
-            render: (x, row) => <img src={row.qrCodeUrl} alt="" width="100px"></img >,
60
+            render: (x, row) => <img src={row.avatar} alt="" width="50px"></img >,
60
         },
61
         },
61
         {
62
         {
62
             title: '固话',
63
             title: '固话',

+ 35
- 3
src/pages/h5SampleManager/h5Sample/addH5.jsx Visa fil

7
 import request from '../../../utils/request';
7
 import request from '../../../utils/request';
8
 import AuthButton from '@/components/AuthButton';
8
 import AuthButton from '@/components/AuthButton';
9
 import ImageUploader from '../../../components/XForm/ImageUpload';
9
 import ImageUploader from '../../../components/XForm/ImageUpload';
10
+import BuildSelect from '../../../components/SelectButton/BuildSelect2'
10
 
11
 
11
 const header = props => {
12
 const header = props => {
12
     const sampleId = props.location.query.id;
13
     const sampleId = props.location.query.id;
13
 
14
 
15
+    const [data, setData] = useState({})
16
+
14
     const [visible, setVisible] = useState(false)
17
     const [visible, setVisible] = useState(false)
15
     // const sampleName = props.location.query.sampleName;
18
     // const sampleName = props.location.query.sampleName;
16
     // const [sampleData, setSampleData] = useState({})
19
     // const [sampleData, setSampleData] = useState({})
50
                 values.fromH5Sample = true
53
                 values.fromH5Sample = true
51
                 request({ ...apis.activity.addtaDrainage, data: { ...values } }).then(data => {
54
                 request({ ...apis.activity.addtaDrainage, data: { ...values } }).then(data => {
52
                     message.info('操作成功')
55
                     message.info('操作成功')
53
-
54
-
56
+                    setData(data)
57
+                    setVisible(true)
55
 
58
 
56
                 }).catch(err => {
59
                 }).catch(err => {
57
                     message.error(err.msg || err.message)
60
                     message.error(err.msg || err.message)
117
         }
120
         }
118
     };
121
     };
119
 
122
 
123
+    const toH5Edit = () => {
124
+        router.push({
125
+            pathname: '/activity/drainage/h5edit',
126
+            query: {
127
+                id: data.activityId,
128
+                name: data.name,
129
+                drainageId: data.drainageId,
130
+            },
131
+        });
132
+    }
133
+
134
+    const toDrainageDetail = () => {
135
+        router.push({
136
+            pathname: '/activity/drainage/DetailDrainage',
137
+            query: {
138
+                drainageId: data.drainageId,
139
+            },
140
+        });
141
+    }
142
+
120
     const { getFieldDecorator } = props.form;
143
     const { getFieldDecorator } = props.form;
121
 
144
 
122
     return (
145
     return (
132
                         ],
155
                         ],
133
                     })(<Input placeholder="H5活动名称" />)}
156
                     })(<Input placeholder="H5活动名称" />)}
134
                 </Form.Item>
157
                 </Form.Item>
158
+                <Form.Item label="选择项目">
159
+                    {getFieldDecorator('buildingId')(
160
+                        <BuildSelect />,
161
+                    )}
162
+                </Form.Item>
135
                 <Form.Item label="下架时间">
163
                 <Form.Item label="下架时间">
136
                     {getFieldDecorator('endDate', {
164
                     {getFieldDecorator('endDate', {
137
                         // initialValue: formsdate.endDate ? moment(formsdate.endDate, 'YYYY-MM-DD HH:mm:ss') : null,
165
                         // initialValue: formsdate.endDate ? moment(formsdate.endDate, 'YYYY-MM-DD HH:mm:ss') : null,
181
             <Button onClick={() => router.go(-1)}>取消</Button>
209
             <Button onClick={() => router.go(-1)}>取消</Button>
182
                 </Form.Item>
210
                 </Form.Item>
183
             </Form>
211
             </Form>
184
-            {/* <Button onClick={() => setVisible(true)}>234</Button> */}
185
             <Modal
212
             <Modal
186
                 title="新增成功"
213
                 title="新增成功"
187
                 visible={visible}
214
                 visible={visible}
193
             // maskClosable={false}
220
             // maskClosable={false}
194
             >
221
             >
195
                 建议修改内容以适合您的项目,若有红包等需要消费的内容,请到资金管理中查看余额是否充足
222
                 建议修改内容以适合您的项目,若有红包等需要消费的内容,请到资金管理中查看余额是否充足
223
+                <div style={{ width: '300px', margin: '30px auto', display: 'flex', justifyContent: 'space-between' }}>
224
+                    <Button type="primary" style={{ width: '140px' }} onClick={toH5Edit}>修改配置</Button>
225
+
226
+                    <Button style={{ width: '140px' }} onClick={toDrainageDetail}>查看H5活动详情</Button>
227
+                </div>
196
             </Modal>
228
             </Modal>
197
         </>
229
         </>
198
     )
230
     )