Przeglądaj źródła

时间空间加秒

dingxin 5 lat temu
rodzic
commit
21899a8e42

+ 36
- 0
src/components/ZmageImg/ZmageImg.jsx Wyświetl plik

@@ -0,0 +1,36 @@
1
+import React from 'react'
2
+import Zmage from 'react-zmage'
3
+
4
+function body(props) {
5
+  return (
6
+    <>
7
+      <Zmage
8
+        style={props.style}
9
+        src={props.src}
10
+        // alt="0"
11
+        backdrop="linear-gradient(90deg, rgba(86,81,81,0.7) 0%, rgba(86,81,81, 0.7) 100%)"
12
+        radius={5}
13
+        edge={20}
14
+        animate={{
15
+          flip: 'fade',
16
+        }}
17
+        controller={{
18
+          // 关闭按钮
19
+          close: false,
20
+          // 缩放按钮
21
+          zoom: false,
22
+          // 下载按钮
23
+          download: false,
24
+          // 旋转按钮
25
+          rotate: false,
26
+          // 翻页按钮
27
+          flip: true,
28
+          // 多页指示
29
+          pagination: true,
30
+        }}
31
+      />
32
+    </>
33
+  )
34
+}
35
+
36
+export default body

+ 4
- 3
src/pages/activity/helpActivity/edithelpActivity.jsx Wyświetl plik

@@ -99,8 +99,9 @@ const header = props => {
99 99
       }
100 100
         const { activityTime, signupTime, ...submitValue } = values
101 101
         const [startDate, endDate] = activityTime
102
-        submitValue.startDate = moment(startDate).format('YYYY-MM-DD HH:mm');
103
-        submitValue.endDate = moment(endDate).format('YYYY-MM-DD HH:mm');
102
+        console.log('startDate', activityTime)
103
+        submitValue.startDate = moment(startDate).format('YYYY-MM-DD HH:mm:ss');
104
+        submitValue.endDate = moment(endDate).format('YYYY-MM-DD HH:mm:ss');
104 105
         // const [enlistStart, enlistEnd] = signupTime
105 106
         // submitValue.enlistStart = moment(enlistStart).format('YYYY-MM-DD HH:mm');
106 107
         // submitValue.enlistEnd = moment(enlistEnd).format('YYYY-MM-DD HH:mm');
@@ -171,7 +172,7 @@ const header = props => {
171 172
               message: '请选择活动时间',
172 173
             },
173 174
           ],
174
-        })(<RangePicker format="YYYY-MM-DD HH:mm" />)}
175
+        })(<RangePicker format="YYYY-MM-DD HH:mm:ss" showTime={{ format: 'HH:mm:ss' }}/>)}
175 176
         </Form.Item>
176 177
 
177 178
         <Form.Item label="助力邀请人数" min={1} max={10}>

+ 1
- 1
src/pages/activity/helpActivity/list.jsx Wyświetl plik

@@ -59,7 +59,7 @@ const toEditGoods = (helpActivityId) => () => {
59 59
       dataIndex: 'startDate',
60 60
       key: 'startDate',
61 61
       align: 'center',
62
-      render: (x, row) => <><span>{`${moment(row.startDate).format('YYYY-MM-DD HH:mm')} —— ${moment(row.endDate).format('YYYY-MM-DD HH:mm')}`}</span></>,
62
+      render: (x, row) => <><span>{`${moment(row.startDate).format('YYYY-MM-DD HH:mm:ss')} —— ${moment(row.endDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
63 63
     },
64 64
     {
65 65
       title: '已参加人数',

+ 14
- 27
src/pages/system/document/audit.jsx Wyświetl plik

@@ -1,35 +1,22 @@
1 1
 import React from 'react'
2
-import { Button } from 'antd'
3
-import Zmage from 'react-zmage'
2
+import { Col, Row, Button } from 'antd'
3
+import ZmageImg from '../../../components/ZmageImg/ZmageImg'
4 4
 
5 5
 function body(props) {
6 6
   return (
7 7
     <>
8
-      <Zmage
9
-        style={{ width: '300px', height: '400px' }}
10
-        src={props.src}
11
-        // alt="0"
12
-        backdrop="linear-gradient(90deg, rgba(86,81,81,0.7) 0%, rgba(86,81,81, 0.7) 100%)"
13
-        radius={5}
14
-        edge={20}
15
-        animate={{
16
-          flip: 'fade',
17
-        }}
18
-        controller={{
19
-          // 关闭按钮
20
-          close: false,
21
-          // 缩放按钮
22
-          zoom: false,
23
-          // 下载按钮
24
-          download: false,
25
-          // 旋转按钮
26
-          rotate: false,
27
-          // 翻页按钮
28
-          flip: true,
29
-          // 多页指示
30
-          pagination: true,
31
-        }}
32
-      />
8
+      <div style={{ background: '#ECECEC', padding: '30px' }}>
9
+        <Row gutter={16}>
10
+          <Col span={6}>
11
+            <ZmageImg style={{ width: '300px', height: '400px' }} src="https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1571303731819-1.jpg" />
12
+          </Col>
13
+        </Row>
14
+      </div>
15
+      <div style={{ marginTop: '10px', display: 'flex', justifyContent: 'center' }}>
16
+        <Button type="primary">通过</Button>
17
+        &nbsp;&nbsp;&nbsp;&nbsp;
18
+        <Button>不通过</Button>
19
+      </div>
33 20
     </>
34 21
   )
35 22
 }