1007395918@qq.com 5 vuotta sitten
vanhempi
commit
80b8ef53cb

+ 1
- 1
src/onlineSelling/components/HouseCard/index.js Näytä tiedosto

@@ -32,7 +32,7 @@ export default function HouseCard(props) {
32 32
           <Text>现价</Text>
33 33
           <Text className="red">{price}</Text>
34 34
         </View>
35
-        <View className="meta">{showDT}</View>
35
+        <View className="meta">{showDT}预选</View>
36 36
         <View className="sign bg-success"></View>
37 37
       </View>
38 38
     </View>

+ 23
- 19
src/onlineSelling/components/HouseCard/index.scss Näytä tiedosto

@@ -1,17 +1,19 @@
1 1
 .housecard {
2
-  width: calc(100% - 32rpx);
3
-  height: 250rpx;
2
+  // width: calc(100% - 32px);
3
+  width: 690px;
4
+  height: 250px;
4 5
   background:#fff;
5
-  border-radius: 8rpx;
6
+  border-radius: 8px;
6 7
   display: flex;
7
-  margin: 16rpx;
8
-  box-shadow: 0 4rpx 15rpx 1rpx rgba(0, 0, 0, 0.12);
8
+  margin: 16px 30px;
9
+  box-shadow: 0 4px 15px 1px rgba(0, 0, 0, 0.12);
10
+  font-weight: 400;
9 11
 
10 12
   .head {
11
-    width: 36%;
13
+    width: 250px;
12 14
     flex: none;
13
-    border-right: 2rpx solid rgba(0, 0, 0, 0.04);
14
-    padding: 10rpx;
15
+    border-right: 2px solid rgba(0, 0, 0, 0.04);
16
+    padding: 20px;
15 17
 
16 18
     .thumb {
17 19
       width: 100%;
@@ -20,40 +22,42 @@
20 22
   }
21 23
 
22 24
   .body {
23
-    width: 64%;
25
+    width: 438px;
24 26
     flex: none;
25 27
     position: relative;
26
-    line-height: 40rpx;
27
-    padding: 20rpx 10rpx;
28
+    line-height: 40px;
29
+    padding: 20px 16px;
28 30
 
29 31
     .badge {
30
-      font-size: 30rpx;
32
+      font-size: 30px;
31 33
       color: #BB9C79;
32 34
       text-align: right;
35
+      margin-right: 12px;
33 36
     }
34 37
 
35 38
     .title {
36
-      font-size: 26rpx;
39
+      font-size: 26px;
37 40
       font-weight: bold;
38 41
       color:#333;
42
+      line-height: 1.8;
39 43
     }
40 44
 
41 45
     .subtitle {
42
-      font-size: 28rpx;
46
+      font-size: 28px;
43 47
       color:#333;
44 48
     }
45 49
 
46 50
     .meta {
47
-      font-size: 24rpx;
51
+      font-size: 24px;
48 52
       color:#999;
49 53
     }
50 54
 
51 55
     .sign {
52
-      width: 86rpx;
53
-      height: 86rpx;
56
+      width: 86px;
57
+      height: 86px;
54 58
       position: absolute;
55
-      right: 10rpx;
56
-      bottom: 10rpx;
59
+      right: 10px;
60
+      bottom: 10px;
57 61
     }
58 62
   }
59 63
 

+ 2
- 2
src/onlineSelling/pages/records/index.scss Näytä tiedosto

@@ -1,9 +1,9 @@
1 1
 .records {
2
-  padding: 0 30rpx;
2
+  padding: 10px 0;
3 3
 
4 4
   .carditem {
5 5
     & + .carditem {
6
-      margin-top: 40rpx;
6
+      margin-top: 40px;
7 7
     }
8 8
   }
9 9
 }

+ 59
- 4
src/onlineSelling/pages/selectionRecord/index.js Näytä tiedosto

@@ -1,5 +1,7 @@
1 1
 import Taro, { Component } from '@tarojs/taro';
2 2
 import './index.scss'
3
+import HouseCard from '../../components/HouseCard'
4
+import Blank from '../../components/Blank'
3 5
 import { AtTabs, AtTabsPane } from 'taro-ui'
4 6
 import "taro-ui/dist/style/components/tabs.scss"
5 7
 import { connect } from '@tarojs/redux'
@@ -15,6 +17,52 @@ export default class selectionRecord extends Component {
15 17
   state = {
16 18
     current: 0,
17 19
     recordId: undefined, // 埋点ID
20
+    testData: [
21
+      {
22
+        preselectionRecordId: 1,
23
+        buildingName: '艾菲国际二期',
24
+        blockName: '6栋',
25
+        unitName: '一单元',
26
+        roomName: '1502',
27
+        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
28
+        price: '234万',
29
+        createDate: '2020-02-8',
30
+        status: 1
31
+      },
32
+      {
33
+        preselectionRecordId: 2,
34
+        buildingName: '艾菲国际二期',
35
+        blockName: '6栋',
36
+        unitName: '一单元',
37
+        roomName: '1502',
38
+        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
39
+        price: '234万',
40
+        createDate: '2020-02-9',
41
+        status: 0
42
+      },
43
+      {
44
+        preselectionRecordId: 3,
45
+        buildingName: '艾菲国际二期',
46
+        blockName: '6栋',
47
+        unitName: '二单元',
48
+        roomName: '1503',
49
+        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
50
+        price: '234万',
51
+        createDate: '2020-02-10',
52
+        status: 1
53
+      },
54
+      {
55
+        preselectionRecordId: 4,
56
+        buildingName: '艾菲国际二期',
57
+        blockName: '6栋',
58
+        unitName: '二单元',
59
+        roomName: '1504',
60
+        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
61
+        price: '234万',
62
+        createDate: '2020-02-11',
63
+        status: 0
64
+      },
65
+    ]
18 66
   }
19 67
 
20 68
   componentWillMount() {
@@ -30,17 +78,24 @@ export default class selectionRecord extends Component {
30 78
 
31 79
 
32 80
   render() {
81
+    const { testData } = this.state
33 82
     return (
34 83
       <View style="height:100vh">
35 84
         <AtTabs className="selectionRecord" scroll current={this.state.current} tabList={[{ title: '预选记录' }, { title: '认筹记录' }]} onClick={this.handleClick.bind(this)}>
36 85
           <AtTabsPane current={this.state.current} index={0} >
37
-            <View >
38
-              1111
39
-            </View>
86
+            {
87
+              testData.map((item) => {
88
+                return (
89
+                  <View className="carditem" key={item.preselectionRecordId}>
90
+                    <HouseCard summary={item} />
91
+                  </View>
92
+                )
93
+              })
94
+            }
40 95
           </AtTabsPane>
41 96
           <AtTabsPane current={this.state.current} index={1}>
42 97
             <View>
43
-              222
98
+              <Blank />
44 99
             </View>
45 100
           </AtTabsPane>
46 101
         </AtTabs>