dingxin 5 gadus atpakaļ
vecāks
revīzija
e850e9e7ac

+ 22
- 17
config/config.js Parādīt failu

30
       // },
30
       // },
31
       pwa: pwa
31
       pwa: pwa
32
         ? {
32
         ? {
33
-            workboxPluginMode: 'InjectManifest',
34
-            workboxOptions: {
35
-              importWorkboxFrom: 'local',
36
-            },
37
-          }
33
+          workboxPluginMode: 'InjectManifest',
34
+          workboxOptions: {
35
+            importWorkboxFrom: 'local',
36
+          },
37
+        }
38
         : false, // default close dll, because issue https://github.com/ant-design/ant-design-pro/issues/4665
38
         : false, // default close dll, because issue https://github.com/ant-design/ant-design-pro/issues/4665
39
       // dll features https://webpack.js.org/plugins/dll-plugin/
39
       // dll features https://webpack.js.org/plugins/dll-plugin/
40
       // dll: {
40
       // dll: {
124
                 },
124
                 },
125
               ],
125
               ],
126
             },
126
             },
127
-            // {
128
-            //   path: '/welcome2',
129
-            //   name: '首页2',
130
-            //   component: '../layouts/BlankLayout',
131
-            //   routes:[
132
-            //     {
133
-            //       path: '/welcome3',
134
-            //       name: '首页3',
135
-            //       component: './Welcome',
136
-            //     },
137
-            //   ]
138
-            // },
139
             {
127
             {
140
               path: '/integralMall',
128
               path: '/integralMall',
141
               name: '积分商城',
129
               name: '积分商城',
146
                   name: '商品列表',
134
                   name: '商品列表',
147
                   component: './integralMall/GoodsList',
135
                   component: './integralMall/GoodsList',
148
                 },
136
                 },
137
+                {
138
+                  path: '/integralMall/editGoods',
139
+                  name: '',
140
+                  component: './integralMall/editGoods',
141
+                },
149
               ],
142
               ],
150
             },
143
             },
151
             {
144
             {
165
                 // },
158
                 // },
166
               ],
159
               ],
167
             },
160
             },
161
+            {
162
+              path: '/activity',
163
+              name: '活动管理',
164
+              component: '../layouts/BlankLayout',
165
+              routes: [
166
+                {
167
+                  path: '/activity/ActivityList',
168
+                  name: '活动列表',
169
+                  component: './activity/ActivityList',
170
+                },
171
+              ],
172
+            },
168
             {
173
             {
169
               component: './404',
174
               component: './404',
170
             },
175
             },

+ 120
- 0
src/pages/activity/ActivityList.jsx Parādīt failu

1
+import React from 'react';
2
+import { Input, Menu, Dropdown, Button, Icon, message, Table, Divider, Tag } from 'antd';
3
+import { FormattedMessage } from 'umi-plugin-react/locale';
4
+import styles from '../style/GoodsList.less';
5
+const menu = (
6
+  <Menu onClick={handleMenuClick}>
7
+    <Menu.Item key="1">
8
+      <Icon type="user" />
9
+      1st menu item
10
+    </Menu.Item>
11
+    <Menu.Item key="2">
12
+      <Icon type="user" />
13
+      2nd menu item
14
+    </Menu.Item>
15
+    <Menu.Item key="3">
16
+      <Icon type="user" />
17
+      3rd item
18
+    </Menu.Item>
19
+  </Menu>
20
+);
21
+const dataSource = [
22
+  {
23
+    key: '1',
24
+    img: 'http://img0.imgtn.bdimg.com/it/u=4246326797,2657995307&fm=26&gp=0.jpg',
25
+    name: '123',
26
+    age: 32,
27
+    address: '西湖区湖底公园1号',
28
+  },
29
+  {
30
+    key: '2',
31
+    img: '',
32
+    age: 42,
33
+    address: '西湖区湖底公园1号',
34
+  },
35
+];
36
+
37
+const columns = [
38
+  {
39
+    title: '商品图片',
40
+    dataIndex: 'img',
41
+    key: 'img',
42
+    align: 'center',
43
+
44
+    render: (text, record) => <img src={record.img} className={styles.touxiang} />,
45
+  },
46
+  {
47
+    title: '商品名称',
48
+    dataIndex: 'name',
49
+    key: 'name',
50
+    align: 'center',
51
+    render: text => <a>{text}</a>,
52
+  },
53
+  {
54
+    title: '所属积分',
55
+    dataIndex: 'integral',
56
+    key: 'integral',
57
+    align: 'center',
58
+  },
59
+  {
60
+    title: '总数量',
61
+    dataIndex: 'total',
62
+    key: 'total',
63
+    align: 'center',
64
+  },
65
+  {
66
+    title: '已兑换数量',
67
+    dataIndex: 'exchanged',
68
+    key: 'exchanged',
69
+    align: 'center',
70
+  },
71
+  {
72
+    title: '剩余数量',
73
+    dataIndex: 'rest',
74
+    key: 'rest',
75
+    align: 'center',
76
+  },
77
+  {
78
+    title: '状态',
79
+    dataIndex: 'state',
80
+    key: 'state',
81
+    align: 'center',
82
+  },
83
+  {
84
+    title: '操作',
85
+    dataIndex: 'handle',
86
+    key: 'handle',
87
+    align: 'center',
88
+    render: () => <a>Delete</a>,
89
+  },
90
+];
91
+
92
+export default () => (
93
+  <>
94
+    <div className={styles.searchBox}>
95
+      <Input placeholder="商品名称" className={styles.searchItem} />
96
+      <Dropdown overlay={menu} className={styles.searchItem}>
97
+        <Button>
98
+          Button <Icon type="down" />
99
+        </Button>
100
+      </Dropdown>
101
+      <Dropdown overlay={menu} className={styles.searchItem}>
102
+        <Button>
103
+          Button <Icon type="down" />
104
+        </Button>
105
+      </Dropdown>
106
+      <Input placeholder="商品名称" className={styles.searchItem} />
107
+      <Input placeholder="商品名称" className={styles.searchItem} />
108
+      <Button type="primary" size="small">
109
+        查询
110
+      </Button>
111
+    </div>
112
+    <Button className={styles.addBtn}>新增</Button>
113
+    <Table dataSource={dataSource} columns={columns} />
114
+  </>
115
+);
116
+
117
+function handleMenuClick(e) {
118
+  message.info('Click on menu item.');
119
+  console.log('click', e);
120
+}

+ 52
- 51
src/pages/building/list/index.jsx Parādīt failu

103
       </Button>
103
       </Button>
104
 
104
 
105
       {/* 卡片内容,显示楼盘项目  */}
105
       {/* 卡片内容,显示楼盘项目  */}
106
-      <Card
107
-        hoverable
108
-        style={{ width: '300px', height: '400px', borderRadius: '12px', boxShadow: '0px 0px 20px #e7e7e7e7' }}
109
-        cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" style={{ width: '299px', height: '203px' }}></img>}
110
-        bodyStyle={{ padding: '10px' }}
111
-      >
112
-       <Row className={ Styles.cardText }>
113
-        <Col span={7}>楼盘编号:</Col>
114
-        <Col span={12}>S101</Col>
115
-        <Col span={5}>
116
-          <span className={ Styles.ediText }>编辑</span>
117
-          <Icon type="form" style={{ color: '#C0C4CC' }}/>
106
+      <Row style={{ padding: ' 0 10px' }}>
107
+        <Col span={8}>
108
+          <Card
109
+            hoverable
110
+            style={{ minWidth: '400px', borderRadius: '12px',margin:'10px', boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)', }}
111
+            cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" style={{ borderRadius: '12px 12px 0 0', width: '100%', height: '14vw' }}></img>}
112
+            bodyStyle={{ padding: '10px 20px' }}
113
+          >
114
+            <p className={Styles.cardText}>
115
+              <span className={Styles.title}>楼盘编号</span>
116
+              <span >:S101</span>
117
+              <span className={Styles.ediText}>
118
+                编辑
119
+                <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '10px' }} />
120
+              </span>
121
+            </p>
122
+            <p className={Styles.cardText}>
123
+              <span className={Styles.title}>楼盘名称</span>
124
+              <span >:城开花园</span>
125
+            </p>
126
+            <p className={Styles.cardItem}>
127
+              <span className={Styles.title}>均价</span>
128
+              <span >
129
+                :约<span style={{ color: '#FF0707', fontSize: '20px' }}> 111 </span>元/m
130
+        </span>
131
+            </p>
132
+            <p className={Styles.cardItem}>
133
+              <span className={Styles.title}>项目地址</span>
134
+              <span >:顾戴路1801弄</span>
135
+            </p>
136
+            <p className={Styles.cardItem}>
137
+              <span className={Styles.title}>发布状态</span>
138
+              <span >:已发布</span>
139
+            </p>
140
+            <p className={Styles.cardItem}>
141
+              <span className={Styles.title}>录入时间</span>
142
+              <span >:2019-08-28 17</span>
143
+            </p>
144
+            <p style={{ margin: '15px 0', position: 'relative', fontSize: '18px' }}>
145
+              <span style={{ color: '#1990FF' }}>
146
+                取消发布
147
+                <Icon type="close-circle" style={{ color: '#C0C4CC', marginLeft: '8px' }} />
148
+              </span>
149
+              <span style={{
150
+                color: '#FF4A4A', position: 'absolute',
151
+                right: '0'
152
+              }} >
153
+                删除
154
+                <Icon type="rest" style={{ color: '#C0C4CC', marginLeft: '8px' }} />
155
+              </span>
156
+            </p>
157
+          </Card>
118
         </Col>
158
         </Col>
119
       </Row>
159
       </Row>
120
-      <Row>
121
-        <Col span={7}>楼盘名称:</Col>
122
-        <Col span={17}>城开花园</Col>
123
-      </Row>
124
-      <Row>
125
-        <Col span={7}>均&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价:</Col>
126
-        <Col span={17}>
127
-          约<span style={{ color: '#FF0707', fontWeight: 'bold' }}>111</span>元/m
128
-        </Col>
129
-      </Row>
130
-      <Row>
131
-        <Col span={7}>项目地址:</Col>
132
-        <Col span={17}>顾戴路1801弄</Col>
133
-      </Row>
134
-      <Row>
135
-        <Col span={7}>发布状态:</Col>
136
-        <Col span={17}>已发布</Col>
137
-      </Row>
138
-      <Row>
139
-        <Col span={7}>录入时间:</Col>
140
-        <Col span={17}>2019-08-28 17</Col>
141
-      </Row>
142
-      <Row style={{ marginTop: '15px' }}>
143
-        <Col span={7}>
144
-          <span style={{ color: '#1990FF', fontWeight: 'bold' }}>
145
-            取消发布
146
-          </span>
147
-          <Icon type="close-circle" style={{ color: '#C0C4CC' }} />
148
-        </Col>
149
-        <Col span={12}></Col>
150
-        <Col span={5}>
151
-          <span style={{ color: '#FF4A4A', fontWeight: 'bold' }}>
152
-            删除
153
-          </span>
154
-          <Icon type="rest" style={{ color: '#C0C4CC' }} />
155
-        </Col>
156
-      </Row>
157
-      </Card>
158
-
159
       {/* 分页 */}
160
       {/* 分页 */}
160
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
161
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
161
         <Pagination showQuickJumper defaultCurrent={1} total={500} onChange={onChange} />
162
         <Pagination showQuickJumper defaultCurrent={1} total={500} onChange={onChange} />

+ 0
- 31
src/pages/building/list/style.css Parādīt failu

1
-.SubmitButton {
2
-  background: #3a91d5;
3
-  border-radius: 7px;
4
-  border: 0px;
5
-}
6
-.SelectFrom {
7
-  width: 180px;
8
-  background: #ffffff;
9
-  border-radius: 7px;
10
-  border: 1px solid #dbdbdb;
11
-}
12
-.addButton {
13
-  background: #50be00;
14
-  border-radius: 4px;
15
-  border: 0px;
16
-  margin: 10px 0px;
17
-}
18
-.cardText {
19
-  font-size: 14px;
20
-  font-family: 'PingFangSC';
21
-  font-weight: 400;
22
-  color: #666666;
23
-  line-height: 25px;
24
-}
25
-.ediText {
26
-  font-size: 14px;
27
-  font-family: 'PingFangSC';
28
-  font-weight: 400;
29
-  color: #ff925c;
30
-  line-height: 25px;
31
-}

+ 32
- 21
src/pages/building/list/style.less Parādīt failu

1
-// @import '~antd/es/style/themes/default.less';
2
-
3
 .SubmitButton {
1
 .SubmitButton {
4
-  background: rgba(58, 145, 213, 1);
2
+  background: #3a91d5;
5
   border-radius: 7px;
3
   border-radius: 7px;
6
   border: 0px;
4
   border: 0px;
7
 }
5
 }
8
-
9
 .SelectFrom {
6
 .SelectFrom {
10
   width: 180px;
7
   width: 180px;
11
-  background: rgba(255, 255, 255, 1);
8
+  background: #ffffff;
12
   border-radius: 7px;
9
   border-radius: 7px;
13
-  border: 1px solid rgba(219, 219, 219, 1);
10
+  border: 1px solid #dbdbdb;
14
 }
11
 }
15
-
16
 .addButton {
12
 .addButton {
17
-  background:rgba(80,190,0,1);
18
-  border-radius:4px;
13
+  background: #50be00;
14
+  border-radius: 4px;
19
   border: 0px;
15
   border: 0px;
20
   margin: 10px 0px;
16
   margin: 10px 0px;
21
 }
17
 }
22
-
23
 .cardText {
18
 .cardText {
24
-  font-size:14px;
25
-  font-family:'PingFangSC';
26
-  font-weight:400;
27
-  color:rgba(102,102,102,1);
28
-  line-height:25px;
29
-}
19
+  font-size: 18px;
20
+  color: #333;
21
+  line-height: 24px;
22
+  display: flex;
23
+  align-items: center;
24
+  position: relative;
30
 
25
 
26
+}
27
+.cardItem{
28
+  font-size: 18px;
29
+  font-weight: 400;
30
+  color: #666;
31
+  line-height: 24px;
32
+  display: flex;
33
+  align-items: center;  
34
+}
31
 .ediText {
35
 .ediText {
32
-  font-size:14px;
33
-  font-family:'PingFangSC';
34
-  font-weight:400;
35
-  color:rgba(255,146,92,1);
36
-  line-height:25px;
36
+  font-size: 18px;
37
+  color: #ff925c;
38
+  line-height: 24px;
39
+  position: absolute;
40
+  right: 0;
41
+}
42
+.title{
43
+  display: inline-block;
44
+  width: 84px;
45
+  justify-content: space-between;
46
+  text-align: justify;
47
+  text-align-last:justify
37
 }
48
 }

+ 0
- 31
src/pages/building/list/style.wxss Parādīt failu

1
-.SubmitButton {
2
-  background: #3a91d5;
3
-  border-radius: 7px;
4
-  border: 0px;
5
-}
6
-.SelectFrom {
7
-  width: 180px;
8
-  background: #ffffff;
9
-  border-radius: 7px;
10
-  border: 1px solid #dbdbdb;
11
-}
12
-.addButton {
13
-  background: #50be00;
14
-  border-radius: 4px;
15
-  border: 0px;
16
-  margin: 10px 0px;
17
-}
18
-.cardText {
19
-  font-size: 14px;
20
-  font-family: 'PingFangSC';
21
-  font-weight: 400;
22
-  color: #666666;
23
-  line-height: 25px;
24
-}
25
-.ediText {
26
-  font-size: 14px;
27
-  font-family: 'PingFangSC';
28
-  font-weight: 400;
29
-  color: #ff925c;
30
-  line-height: 25px;
31
-}

+ 118
- 52
src/pages/integralMall/GoodsList.jsx Parādīt failu

1
 import React from 'react';
1
 import React from 'react';
2
-import { Input, Menu, Dropdown, Button, Icon, message, Table, Divider, Tag } from 'antd';
2
+import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal } from 'antd';
3
 import { FormattedMessage } from 'umi-plugin-react/locale';
3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4
 import styles from '../style/GoodsList.less';
4
 import styles from '../style/GoodsList.less';
5
-const menu = (
6
-  <Menu onClick={handleMenuClick}>
7
-    <Menu.Item key="1">
8
-      <Icon type="user" />
9
-      1st menu item
10
-    </Menu.Item>
11
-    <Menu.Item key="2">
12
-      <Icon type="user" />
13
-      2nd menu item
14
-    </Menu.Item>
15
-    <Menu.Item key="3">
16
-      <Icon type="user" />
17
-      3rd item
18
-    </Menu.Item>
19
-  </Menu>
20
-);
5
+import router from 'umi/router';
6
+
7
+const { Option } = Select;
8
+// 提交事件
9
+function handleSubmit(e, props) {
10
+  e.preventDefault();
11
+  props.form.validateFields((err, values) => {
12
+    if (!err) {
13
+      console.log('提交数据: ', values)
14
+    }
15
+  });
16
+}
17
+// Change 事件
18
+function handleSelectChange(props) {
19
+  console.log(props)
20
+}
21
+
22
+// 分页
23
+function onChange(pageNumber) {
24
+  console.log('Page: ', pageNumber);
25
+}
26
+// 跳转到编辑商品
27
+function toEditGoods() {
28
+  router.push({
29
+    pathname: '/integralMall/editGoods',
30
+    query: {
31
+      a: 'b',
32
+    },
33
+  });
34
+}
35
+
36
+/**
37
+ *
38
+ *
39
+ * @param {*} props
40
+ * @returns
41
+ */
42
+
21
 const dataSource = [
43
 const dataSource = [
22
   {
44
   {
23
     key: '1',
45
     key: '1',
24
     img: 'http://img0.imgtn.bdimg.com/it/u=4246326797,2657995307&fm=26&gp=0.jpg',
46
     img: 'http://img0.imgtn.bdimg.com/it/u=4246326797,2657995307&fm=26&gp=0.jpg',
25
-    name: '123',
26
-    age: 32,
27
-    address: '西湖区湖底公园1号',
47
+    name: '华为P30 Pro',
28
   },
48
   },
29
   {
49
   {
30
     key: '2',
50
     key: '2',
31
     img: '',
51
     img: '',
32
-    age: 42,
33
-    address: '西湖区湖底公园1号',
52
+    name: '大米',
34
   },
53
   },
35
 ];
54
 ];
36
 
55
 
40
     dataIndex: 'img',
59
     dataIndex: 'img',
41
     key: 'img',
60
     key: 'img',
42
     align: 'center',
61
     align: 'center',
43
-
44
     render: (text, record) => <img src={record.img} className={styles.touxiang} />,
62
     render: (text, record) => <img src={record.img} className={styles.touxiang} />,
45
   },
63
   },
46
   {
64
   {
48
     dataIndex: 'name',
66
     dataIndex: 'name',
49
     key: 'name',
67
     key: 'name',
50
     align: 'center',
68
     align: 'center',
51
-    render: text => <a>{text}</a>,
69
+
52
   },
70
   },
53
   {
71
   {
54
     title: '所属积分',
72
     title: '所属积分',
85
     dataIndex: 'handle',
103
     dataIndex: 'handle',
86
     key: 'handle',
104
     key: 'handle',
87
     align: 'center',
105
     align: 'center',
88
-    render: () => <a>Delete</a>,
106
+    render: () => <><span style={{ color: '#1990FF', marginRight: '20px' }} onClick={confirm}>下架<Icon type="shopping-cart" className={styles.shoppingCart} /></span><span style={{ color: '#FF925C' }}>编辑<Icon type="form" className={styles.edit} /></span></>,
89
   },
107
   },
90
 ];
108
 ];
109
+function confirm() {
110
+  Modal.confirm({
111
+    title: '确认下架该商品?',
112
+    okText: '确认',
113
+    cancelText: '取消',
114
+    onOk() {
115
+      console.log('OK');
116
+    },
117
+    onCancel() {
118
+      console.log('Cancel');
119
+    },
120
+  });
91
 
121
 
92
-export default () => (
93
-  <>
94
-    <div className={styles.searchBox}>
95
-      <Input placeholder="商品名称" className={styles.searchItem} />
96
-      <Dropdown overlay={menu} className={styles.searchItem}>
97
-        <Button>
98
-          Button <Icon type="down" />
99
-        </Button>
100
-      </Dropdown>
101
-      <Dropdown overlay={menu} className={styles.searchItem}>
102
-        <Button>
103
-          Button <Icon type="down" />
104
-        </Button>
105
-      </Dropdown>
106
-      <Input placeholder="商品名称" className={styles.searchItem} />
107
-      <Input placeholder="商品名称" className={styles.searchItem} />
108
-      <Button type="primary" size="small">
109
-        查询
110
-      </Button>
111
-    </div>
112
-    <Button className={styles.addBtn}>新增</Button>
113
-    <Table dataSource={dataSource} columns={columns} />
114
-  </>
115
-);
122
+}
123
+function header(props) {
124
+  const { getFieldDecorator } = props.form
125
+  return (
116
 
126
 
117
-function handleMenuClick(e) {
118
-  message.info('Click on menu item.');
119
-  console.log('click', e);
127
+    <>
128
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
129
+        <Form.Item>
130
+          {getFieldDecorator('name')(
131
+            <Input
132
+              prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
133
+              placeholder="商品名称"
134
+            />,
135
+          )}
136
+        </Form.Item>
137
+        <Form.Item>
138
+          {getFieldDecorator('goodState')(
139
+            <Select style={{ width: '180px' }} placeholder="状态" onChange={handleSelectChange}>
140
+              <Option value="1">上架</Option>
141
+              <Option value="0">下架</Option>
142
+            </Select>,
143
+          )}
144
+        </Form.Item>
145
+        <Form.Item>
146
+          {getFieldDecorator('isMain')(
147
+            <Select style={{ width: '180px' }} placeholder="所属项目" onChange={handleSelectChange}>
148
+              <Option value="1">首页推荐</Option>
149
+              <Option value="0">首页未推荐</Option>
150
+            </Select>,
151
+          )}
152
+        </Form.Item>
153
+        <Form.Item>
154
+          {getFieldDecorator('min')(
155
+            <Input
156
+              prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
157
+              placeholder="最小积分"
158
+            />,
159
+          )}
160
+        </Form.Item>
161
+        <Form.Item>
162
+          {getFieldDecorator('max')(
163
+            <Input
164
+              prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
165
+              placeholder="最大积分"
166
+            />,
167
+          )}
168
+        </Form.Item>
169
+        <Form.Item>
170
+          <Button type="primary" htmlType="submit" className={styles.searchBtn}>
171
+            搜索
172
+          </Button>
173
+        </Form.Item>
174
+      </Form>
175
+      <Button type="primary" className={styles.addBtn} onClick={toEditGoods}>新增</Button>
176
+      <Table dataSource={dataSource} columns={columns} />
177
+      {/* 分页 */
178
+      /* <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
179
+        <Pagination showQuickJumper defaultCurrent={1} total={500} onChange={onChange} />
180
+      </div> */}
181
+    </>
182
+  )
120
 }
183
 }
184
+const WrappedHeader = Form.create({ name: 'header' })(header);
185
+
186
+export default WrappedHeader

+ 27
- 0
src/pages/integralMall/editGoods.jsx Parādīt failu

1
+import React from 'react';
2
+import { Form, Input, Button, Icon, Select } from 'antd';
3
+import { FormattedMessage } from 'umi-plugin-react/locale';
4
+import styles from '../style/GoodsList.less';
5
+
6
+
7
+
8
+/**
9
+ *
10
+ *
11
+ * @param {*} props
12
+ * @returns
13
+ */
14
+
15
+
16
+function header(props) {
17
+  const { getFieldDecorator } = props.form
18
+  return (
19
+
20
+    <>
21
+     <div>编辑商品</div>
22
+    </>
23
+  )
24
+}
25
+const WrappedHeader = Form.create({ name: 'header' })(header);
26
+
27
+export default WrappedHeader

+ 25
- 17
src/pages/style/GoodsList.less Parādīt failu

1
-.searchBox {
2
-  font-size: 30px;
3
-  color: red;
4
-  display: flex;
5
-  display: flex;
6
-  justify-items: center;
7
-  align-items: center;
8
-  justify-content: space-between;
9
-  .searchItem {
10
-    min-width: 200px;
11
-    margin-right: 20px;
12
-    text-align: left;
13
-    .anticon-down {
14
-      float: right !important;
15
-    }
16
-  }
17
-}
18
 .addBtn {
1
 .addBtn {
19
   padding: 0 30px;
2
   padding: 0 30px;
20
   height: 36px;
3
   height: 36px;
21
   background-color: #50be00;
4
   background-color: #50be00;
22
   color: #fff;
5
   color: #fff;
23
   margin: 30px 0;
6
   margin: 30px 0;
7
+  border-color: #50be00;
8
+}
9
+.addBtn:focus {
10
+  color: #fff;
11
+  background-color: #50be00;
12
+  border-color: #50be00;
13
+}
14
+.searchBtn{
15
+ background-color: #3A91D5;
16
+ border-color: #3A91D5;
17
+}
18
+.searchBtn:focus {
19
+  color: #fff;
20
+  background-color: #3A91D5;
21
+  border-color: #3A91D5;
24
 }
22
 }
25
 .touxiang {
23
 .touxiang {
26
   width: 93px;
24
   width: 93px;
29
 .ant-table-column-title {
27
 .ant-table-column-title {
30
   font-weight: 600;
28
   font-weight: 600;
31
 }
29
 }
30
+.shoppingCart{
31
+  color: #dcdcdc;
32
+  margin-left: 6px;
33
+  font-size: 16px;
34
+}
35
+.edit{
36
+  color: #dcdcdc;
37
+  margin-left: 6px;
38
+  font-size: 15px;
39
+}