许静 5 年之前
父節點
當前提交
e383f833f8

+ 52
- 51
src/pages/building/list/index.jsx 查看文件

@@ -103,59 +103,60 @@ function header(props) {
103 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 158
         </Col>
119 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 161
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
161 162
         <Pagination showQuickJumper defaultCurrent={1} total={500} onChange={onChange} />

+ 0
- 31
src/pages/building/list/style.css 查看文件

@@ -1,31 +0,0 @@
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 查看文件

@@ -1,37 +1,48 @@
1
-// @import '~antd/es/style/themes/default.less';
2
-
3 1
 .SubmitButton {
4
-  background: rgba(58, 145, 213, 1);
2
+  background: #3a91d5;
5 3
   border-radius: 7px;
6 4
   border: 0px;
7 5
 }
8
-
9 6
 .SelectFrom {
10 7
   width: 180px;
11
-  background: rgba(255, 255, 255, 1);
8
+  background: #ffffff;
12 9
   border-radius: 7px;
13
-  border: 1px solid rgba(219, 219, 219, 1);
10
+  border: 1px solid #dbdbdb;
14 11
 }
15
-
16 12
 .addButton {
17
-  background:rgba(80,190,0,1);
18
-  border-radius:4px;
13
+  background: #50be00;
14
+  border-radius: 4px;
19 15
   border: 0px;
20 16
   margin: 10px 0px;
21 17
 }
22
-
23 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 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 查看文件

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

+ 2
- 2
src/pages/integralMall/GoodsList.jsx 查看文件

@@ -155,11 +155,11 @@ export default () => (
155 155
       <App />
156 156
       <Input placeholder="最小积分" className={styles.searchItem} />
157 157
       <Input placeholder="最大积分" className={styles.searchItem} />
158
-      <Button type="primary" size="small">
158
+      <Button type="primary" className={styles.searchBtn}>
159 159
         查询
160 160
       </Button>
161 161
     </div>
162
-    <Button className={styles.addBtn}>新增</Button>
162
+    <Button type="primary" className={styles.addBtn}>新增</Button>
163 163
     <Table dataSource={dataSource} columns={columns} />
164 164
 
165 165
   </>

+ 15
- 0
src/pages/style/GoodsList.less 查看文件

@@ -21,6 +21,21 @@
21 21
   background-color: #50be00;
22 22
   color: #fff;
23 23
   margin: 30px 0;
24
+  border-color: #50be00;
25
+}
26
+.addBtn:focus {
27
+  color: #fff;
28
+  background-color: #50be00;
29
+  border-color: #50be00;
30
+}
31
+.searchBtn{
32
+ background-color: #3A91D5;
33
+ border-color: #3A91D5;
34
+}
35
+.searchBtn:focus {
36
+  color: #fff;
37
+  background-color: #3A91D5;
38
+  border-color: #3A91D5;
24 39
 }
25 40
 .touxiang {
26 41
   width: 93px;