1002884655 3 лет назад
Родитель
Сommit
ebefa87652

+ 9
- 9
src/components/ProjectListItem/index.scss Просмотреть файл

@@ -52,18 +52,18 @@
52 52
       white-space: nowrap;
53 53
       overflow: hidden;
54 54
       text-overflow: ellipsis;
55
-      margin-top: 20px;
55
+      margin-top: 16px;
56 56
     }
57 57
     > .Tags {
58 58
       font-size: 0;
59 59
       white-space: nowrap;
60
-      margin-top: 18px;
60
+      margin-top: 12px;
61 61
       > text {
62 62
         display: inline-block;
63 63
         vertical-align: middle;
64
-        font-size: 16px;
64
+        font-size: 22px;
65 65
         padding: 0 10px;
66
-        line-height: 28px;
66
+        line-height: 36px;
67 67
         background: rgba(251, 171, 87, 0.3);
68 68
         color: #333;
69 69
         margin-left: 20px;
@@ -75,11 +75,11 @@
75 75
     > .ShareInfo {
76 76
       font-size: 0;
77 77
       white-space: nowrap;
78
-      margin-top: 20px;
78
+      margin-top: 12px;
79 79
       > text {
80 80
         display: inline-block;
81 81
         vertical-align: middle;
82
-        font-size: 16px;
82
+        font-size: 22px;
83 83
         color: #333;
84 84
         line-height: 1;
85 85
         margin-left: 10px;
@@ -99,11 +99,11 @@
99 99
         > view {
100 100
           display: inline-block;
101 101
           vertical-align: middle;
102
-          width: 24px;
103
-          height: 24px;
102
+          width: 30px;
103
+          height: 30px;
104 104
           background: #eee;
105 105
           border-radius: 100%;
106
-          margin-left: -6px;
106
+          margin-left: -10px;
107 107
           position: relative;
108 108
           overflow: hidden;
109 109
           &:nth-child(1) {

+ 5
- 3
src/pages/index/buildingDetail/components/BasicInfo/index.scss Просмотреть файл

@@ -38,15 +38,17 @@
38 38
     >text {
39 39
       display: inline-block;
40 40
       vertical-align: middle;
41
-      margin-top: 20px;
42
-      margin-right: 6px;
41
+      margin-top: 16px;
42
+      margin-right: 12px;
43 43
       font-size: 22px;
44 44
       color: #666;
45
-      padding: 0 12px;
45
+      padding: 0 10px;
46 46
       line-height: 36px;
47 47
       color: #666;
48 48
       background: rgba(251, 171, 87, 0.3);
49 49
       border-radius: 8px;
50
+      min-width: 90px;
51
+      text-align: center;
50 52
     }
51 53
   }
52 54
   >.ProjectList {

+ 19
- 0
src/pages/index/buildingDetail/components/SpecialPriceHouse/index.jsx Просмотреть файл

@@ -16,6 +16,25 @@ export default function SpecialPriceHouse (props) {
16 16
         <text className='iconfont icon-jiantouright'></text>
17 17
       </view>
18 18
 
19
+      <view className='List'>
20
+        <ScrollView scroll-x={true}>
21
+          {
22
+            ['', '', '', '', ''].map((item, index) => (
23
+              <view className='ListItem' key={`List-${index}`}>
24
+                <text className='Tips'>省17.8万</text>
25
+                <view className='Price'>
26
+                  <text>867.3万</text>
27
+                  <text>888.1万</text>
28
+                </view>
29
+                <text className='Time'>距结束还有06天10时14分</text>
30
+                <text className='HouseType'>4室2厅2卫 23433元/㎡</text>
31
+                <text className='DoorNumber'>1#-5单元-401</text>
32
+              </view>
33
+            ))
34
+          }
35
+        </ScrollView>
36
+      </view>
37
+
19 38
     </view>
20 39
   )
21 40
 }

+ 86
- 1
src/pages/index/buildingDetail/components/SpecialPriceHouse/index.scss Просмотреть файл

@@ -1,9 +1,10 @@
1 1
 .components.SpecialPriceHouse {
2 2
   position: relative;
3 3
   overflow: hidden;
4
-  padding: 40px 30px;
4
+  padding: 40px 0;
5 5
   >.Title {
6 6
     align-items: center;
7
+    padding: 0 30px;
7 8
     >.flex-item {
8 9
       >text {
9 10
         display: block;
@@ -19,4 +20,88 @@
19 20
       color: #A1A1A1;
20 21
     }
21 22
   }
23
+  >.List {
24
+    position: relative;
25
+    overflow: hidden;
26
+    margin-top: 28px;
27
+    height: 222px;
28
+    >scroll-view {
29
+      width: 100%;
30
+      height: 100%;
31
+      font-size: 0;
32
+      white-space: nowrap;
33
+      .ListItem {
34
+        width: 336px;
35
+        height: 100%;
36
+        box-sizing: border-box;
37
+        border: 2px solid rgba(0, 0, 0, 0.2);
38
+        margin-right: 20px;
39
+        display: inline-block;
40
+        vertical-align: middle;
41
+        position: relative;
42
+        overflow: hidden;
43
+        border-radius: 10px;
44
+        &:first-child {
45
+          margin-left: 30px;
46
+        }
47
+        >.Tips {
48
+          min-width: 90px;
49
+          display: inline-block;
50
+          padding: 0 10px;
51
+          font-size: 16px;
52
+          color: #fff;
53
+          background: #193C83;
54
+          border-radius: 0 0 0 10px;
55
+          text-align: center;
56
+          position: absolute;
57
+          right: 0;
58
+          top: 0;
59
+          line-height: 24px;
60
+        }
61
+        >.Price {
62
+          white-space: nowrap;
63
+          margin-top: 30px;
64
+          padding: 0 20px;
65
+          >text {
66
+            display: inline-block;
67
+            vertical-align: middle;
68
+            font-size: 32px;
69
+            font-weight: bold;
70
+            color: red;
71
+            line-height: 1;
72
+            &:last-child {
73
+              color: #ccc;
74
+              text-decoration: line-through;
75
+              margin-left: 20px;
76
+              font-size: 28px;
77
+            }
78
+          }
79
+        }
80
+        >.Time {
81
+          display: block;
82
+          padding: 0 20px;
83
+          font-size: 20px;
84
+          color: red;
85
+          line-height: 1;
86
+          margin-top: 20px;
87
+        }
88
+        >.HouseType {
89
+          display: block;
90
+          padding: 0 20px;
91
+          font-size: 24px;
92
+          line-height: 1;
93
+          margin-top: 30px;
94
+          font-weight: bold;
95
+        }
96
+        >.DoorNumber {
97
+          display: block;
98
+          padding: 0 20px;
99
+          font-size: 20px;
100
+          line-height: 1;
101
+          margin-top: 20px;
102
+          color: #999;
103
+        }
104
+      }
105
+    }
106
+  }
22 107
 }

+ 16
- 3
src/pages/index/index.jsx Просмотреть файл

@@ -24,20 +24,20 @@ export default withLayout((props) => {
24 24
   const [PullTimer, setPullTimer] = useState(null)
25 25
 
26 26
   useEffect(() => {
27
-    if(city.curCity.name) {
27
+    if (city.curCity.name) {
28 28
       GetBanner()
29 29
       GetProjectList()
30 30
     }
31 31
   }, [city])
32 32
 
33 33
   const GetBanner = () => { // 获取banner
34
-    fetch({url: `${API_BANNER_LIST}/banner`, method: 'get', payload: {cityId: city.curCity.id, showPosition: 'index'}}).then((res) => {
34
+    fetch({ url: `${API_BANNER_LIST}/banner`, method: 'get', payload: { cityId: city.curCity.id, showPosition: 'index' } }).then((res) => {
35 35
       setBannerList(res || [])
36 36
     })
37 37
   }
38 38
 
39 39
   const GetProjectList = () => { // 获取项目列表
40
-    fetch({url: API_INDEX_PROJECTS, method: 'get', payload: {cityId: city.curCity.id, pageNum: 1, pageSize: 10}}).then((res) => {
40
+    fetch({ url: API_INDEX_PROJECTS, method: 'get', payload: { cityId: city.curCity.id, pageNum: 1, pageSize: 10 } }).then((res) => {
41 41
       setProjectList(res.records || [])
42 42
     })
43 43
   }
@@ -109,6 +109,19 @@ export default withLayout((props) => {
109 109
             <text>已经到底了~</text>
110 110
           </view>
111 111
 
112
+          <view className='Bottom'>
113
+            <view>
114
+              <view>
115
+                <text className='iconfont icon-shengming'></text>
116
+                <text>免责声明</text>
117
+              </view>
118
+              <view>
119
+                <text>&emsp;&emsp;以上价格仅供参考,具体一房一价的信息以售楼处展示为准。房屋位置交通、医疗、教育、商业等配套信息,来源于第三方不作为要约,仅供参考,双方具体权利义务应以法律规定及买卖合同约定为准。本平台对项目周边文化教育的介绍旨在提供相关信息1 意味着信息发布方对就学安排作出承诺。相关教育资首页信息存在调整的可能,应以政府教育主管部门门及办学颁布的政策规定为准。详情请仔细阅读</text>
120
+                <text className='active'>《新联家使用免责条款》</text>
121
+              </view>
122
+            </view>
123
+          </view>
124
+
112 125
         </view>
113 126
       </ScrollView>
114 127
 

+ 23
- 0
src/pages/index/index.scss Просмотреть файл

@@ -74,6 +74,29 @@
74 74
           margin: 20px auto;
75 75
         }
76 76
       }
77
+      >.Bottom {
78
+        padding: 0 30px 30px;
79
+        position: relative;
80
+        overflow: hidden;
81
+        >view {
82
+          padding: 30px;
83
+          position: relative;
84
+          overflow: hidden;
85
+          background: #F8F8F8;
86
+          border-radius: 8px;
87
+          >view {
88
+            >text {
89
+              font-size: 20px;
90
+              color: #999;
91
+              line-height: 30px;
92
+              letter-spacing: 2px;
93
+              &.active {
94
+                color: #193C83;
95
+              }
96
+            }
97
+          }
98
+        }
99
+      }
77 100
     }
78 101
   }
79 102
 }