dingxin vor 5 Jahren
Ursprung
Commit
6a3de8b46f

+ 24
- 0
config/config.js Datei anzeigen

@@ -112,6 +112,30 @@ export default {
112 112
               name: '首页',
113 113
               component: './Welcome',
114 114
             },
115
+            {
116
+              path: '/building',
117
+              name: '项目管理',
118
+              component: '../layouts/BlankLayout',
119
+              routes: [
120
+                {
121
+                  path: '/building/list',
122
+                  name: '项目列表',
123
+                  component: './building/list/index',
124
+                },
125
+              ],
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
+            // },
115 139
             {
116 140
               path: '/integralMall',
117 141
               name: '积分商城',

+ 83
- 0
src/pages/building/list/index.jsx Datei anzeigen

@@ -0,0 +1,83 @@
1
+import React from 'react';
2
+import { Form, Icon, Input, Button, DatePicker, Select } from 'antd';
3
+import Styles from './style.less';
4
+
5
+const { Option } = Select;
6
+
7
+// 提交事件
8
+function handleSubmit(e, props) {
9
+  console.log(props)
10
+  e.preventDefault();
11
+}
12
+
13
+// Change 事件
14
+function handleSelectChange(props) {
15
+  console.log(props)
16
+}
17
+
18
+// 搜索
19
+function header(props) {
20
+  return (
21
+    <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
22
+      <Form.Item>
23
+        {
24
+          <Input
25
+            prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
26
+            placeholder="楼盘编号"
27
+          />
28
+        }
29
+      </Form.Item>
30
+      <Form.Item>
31
+        {
32
+          <Input
33
+            prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
34
+            type="password"
35
+            placeholder="楼盘名称"
36
+          />
37
+        }
38
+      </Form.Item>
39
+      <Form.Item>{<DatePicker placeholder="开盘时间" />}</Form.Item>
40
+      <Form.Item>
41
+        {
42
+          <Select style={{ width: '180px' }} placeholder="楼盘状态" onChange={handleSelectChange}>
43
+            <Option value="1">发布</Option>
44
+            <Option value="0">未发布</Option>
45
+          </Select>
46
+        }
47
+      </Form.Item>
48
+      <Form.Item>
49
+        {
50
+          <Select style={{ width: '180px' }} placeholder="销售状态" onChange={handleSelectChange}>
51
+            <Option value="1">已销售</Option>
52
+            <Option value="0">未销售</Option>
53
+          </Select>
54
+        }
55
+      </Form.Item>
56
+      <Form.Item>
57
+        {
58
+          <Select style={{ width: '180px' }} placeholder="城市" onChange={handleSelectChange}>
59
+            <Option value="male">male</Option>
60
+            <Option value="female">female</Option>
61
+          </Select>
62
+        }
63
+      </Form.Item>
64
+      <Form.Item>
65
+        {
66
+          <Select style={{ width: '180px' }} placeholder="首页推荐" onChange={handleSelectChange}>
67
+            <Option value="1">首页推荐</Option>
68
+            <Option value="0">首页未推荐</Option>
69
+          </Select>
70
+        }
71
+      </Form.Item>
72
+      <Form.Item>
73
+        <Button type="primary" htmlType="submit" className={Styles.SubmitButton}>
74
+          搜索
75
+        </Button>
76
+      </Form.Item>
77
+    </Form>
78
+  );
79
+}
80
+
81
+const WrappedHorizontalLoginForm = Form.create({ name: 'horizontal_login' })(header);
82
+
83
+export default WrappedHorizontalLoginForm;

+ 11
- 0
src/pages/building/list/style.css Datei anzeigen

@@ -0,0 +1,11 @@
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
+}

+ 14
- 0
src/pages/building/list/style.less Datei anzeigen

@@ -0,0 +1,14 @@
1
+// @import '~antd/es/style/themes/default.less';
2
+
3
+.SubmitButton {
4
+  background: rgba(58, 145, 213, 1);
5
+  border-radius: 7px;
6
+  border: 0px;
7
+}
8
+
9
+.SelectFrom {
10
+  width: 180px;
11
+  background: rgba(255, 255, 255, 1);
12
+  border-radius: 7px;
13
+  border: 1px solid rgba(219, 219, 219, 1);
14
+}

+ 11
- 0
src/pages/building/list/style.wxss Datei anzeigen

@@ -0,0 +1,11 @@
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
+}