|
@@ -20,6 +20,12 @@ import xiaochengxu from '../../../assets/xiaochengxu.png'
|
20
|
20
|
const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
21
|
21
|
const { TextArea } = Input;
|
22
|
22
|
|
|
23
|
+const cancelPage = () => {
|
|
24
|
+ router.push({
|
|
25
|
+ pathname: '/activity/helpActivity/list',
|
|
26
|
+ });
|
|
27
|
+}
|
|
28
|
+
|
23
|
29
|
const header = props => {
|
24
|
30
|
const [isEnlist, setIsEnlist] = useState(1)
|
25
|
31
|
// 新增成功后拿到返回的ID
|
|
@@ -71,13 +77,6 @@ const header = props => {
|
71
|
77
|
// })
|
72
|
78
|
// }
|
73
|
79
|
|
74
|
|
-
|
75
|
|
- const cancelPage = () => {
|
76
|
|
- router.push({
|
77
|
|
- pathname: '/activity/helpActivity/list',
|
78
|
|
- });
|
79
|
|
- }
|
80
|
|
-
|
81
|
80
|
function handleSubmit(e) {
|
82
|
81
|
e.preventDefault();
|
83
|
82
|
props.form.validateFields((err, values) => {
|
|
@@ -274,7 +273,7 @@ const header = props => {
|
274
|
273
|
确认
|
275
|
274
|
</Button>
|
276
|
275
|
|
277
|
|
- <Button onClick={() => router.go(-1)}>
|
|
276
|
+ <Button onClick={() => cancelPage()}>
|
278
|
277
|
取消
|
279
|
278
|
</Button>
|
280
|
279
|
</Form.Item>
|
|
@@ -314,12 +313,6 @@ const Edit = props => {
|
314
|
313
|
})
|
315
|
314
|
}
|
316
|
315
|
|
317
|
|
-
|
318
|
|
- const cancelPage = () => {
|
319
|
|
- router.push({
|
320
|
|
- pathname: '/activity/helpActivity/list',
|
321
|
|
- });
|
322
|
|
- }
|
323
|
316
|
const radioOnChange = e => {
|
324
|
317
|
console.log(e.target.value)
|
325
|
318
|
setDynamicData({ ...dynamicData, isEnlist: e.target.value })
|
|
@@ -436,7 +429,7 @@ const Edit = props => {
|
436
|
429
|
</div>
|
437
|
430
|
</div>
|
438
|
431
|
<Button type="primary" onClick={submitPoster} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
|
439
|
|
- <Button onClick={() => router.go(-1)}>取消</Button>
|
|
432
|
+ <Button onClick={() => cancelPage()}>取消</Button>
|
440
|
433
|
</div>
|
441
|
434
|
|
442
|
435
|
}
|
|
@@ -503,7 +496,7 @@ const Edit = props => {
|
503
|
496
|
</div>
|
504
|
497
|
<p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于助力活动分享好友</p>
|
505
|
498
|
<Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
|
506
|
|
- <Button onClick={() => router.go(-1)}>取消</Button>
|
|
499
|
+ <Button onClick={() => cancelPage()}>取消</Button>
|
507
|
500
|
</div>
|
508
|
501
|
}
|
509
|
502
|
|