李志伟 3 years ago
parent
commit
fc1afdd1de

src/pages/index/components/Card.js → src/pages/index/components/Card/index.jsx View File

@@ -7,6 +7,7 @@ import glTip from '@/assets/icons/housemantj/gltip.png'
7 7
 import location from '@/assets/icons/housemantj/location.png'
8 8
 import onlove from '@/assets/icons/housemantj/onlove.png'
9 9
 import love from '@/assets/icons/housemantj/bheart.png'
10
+import './style.less'
10 11
 
11 12
 export default (props) => {
12 13
 

+ 70
- 0
src/pages/index/components/Card/style.less View File

@@ -0,0 +1,70 @@
1
+.contentCard{
2
+  background: #FFF;
3
+  box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
4
+  border-radius: 24px;
5
+  overflow: hidden;
6
+  margin-bottom:50px;
7
+  break-inside: avoid;
8
+  position: relative;
9
+
10
+  .cardTop{
11
+    border-radius: 24px 24px 0px 0px;
12
+    .cCardimg{
13
+      width: 100%;
14
+      border-radius: 24px 24px 0px 0px;
15
+    }
16
+    .lefttips{
17
+      width:99px;
18
+      height:37px;
19
+      position: absolute;
20
+      left: 0;
21
+      top: 0;
22
+    }
23
+    .loveharde{
24
+      width: 28px;
25
+      height: 26px;
26
+      position: absolute;
27
+      right: 20px;
28
+      top: 10px;
29
+    }
30
+  }
31
+  .bContent{
32
+    padding:20px;
33
+    .cCword{
34
+      font-size: 24px;
35
+      font-weight: bold;
36
+      color: #404040;
37
+      text-align: justify;
38
+    }
39
+    
40
+    .cCleft{
41
+      float: left;
42
+      position: relative;
43
+      padding:40px 0 30px 0;
44
+      .cCicon{
45
+        width: 17px;
46
+        height: 21px;
47
+        position: absolute;
48
+        left: 0;
49
+        top: 48px;
50
+      }
51
+      .distance{
52
+        padding-left: 24px;
53
+        font-size: 24px;
54
+        color: #C0C8D3;
55
+      }
56
+    }
57
+    .cCright{
58
+      position: relative;
59
+      float: right;
60
+      padding:40px 0 30px 0;
61
+      .price{          
62
+        font-size: 24px;
63
+        color: #FF3434;
64
+        .money{
65
+          font-size: 20px;
66
+        }
67
+      }
68
+    }
69
+  }
70
+}

+ 1
- 72
src/pages/index/tabs/less/Recommend.less View File

@@ -31,78 +31,7 @@
31 31
   column-count: 2;      //分两列
32 32
   column-gap: 30px;    //列间距
33 33
   background-color: #F8F8F8;
34
-  padding:30px 30px 0 30px;
35
-  
36
-  .contentCard{
37
-    background: #FFF;
38
-    box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
39
-    border-radius: 24px;
40
-    overflow: hidden;
41
-    margin-bottom:50px;
42
-    break-inside: avoid;
43
-    position: relative;
44
-
45
-    .cardTop{
46
-      border-radius: 24px 24px 0px 0px;
47
-      .cCardimg{
48
-        width: 100%;
49
-        border-radius: 24px 24px 0px 0px;
50
-      }
51
-      .lefttips{
52
-        width:99px;
53
-        height:37px;
54
-        position: absolute;
55
-        left: 0;
56
-        top: 0;
57
-      }
58
-      .loveharde{
59
-        width: 28px;
60
-        height: 26px;
61
-        position: absolute;
62
-        right: 20px;
63
-        top: 10px;
64
-      }
65
-    }
66
-    .bContent{
67
-      padding:20px;
68
-      .cCword{
69
-        font-size: 24px;
70
-        font-weight: bold;
71
-        color: #404040;
72
-        text-align: justify;
73
-      }
74
-      
75
-      .cCleft{
76
-        float: left;
77
-        position: relative;
78
-        padding:40px 0 30px 0;
79
-        .cCicon{
80
-          width: 17px;
81
-          height: 21px;
82
-          position: absolute;
83
-          left: 0;
84
-          top: 48px;
85
-        }
86
-        .distance{
87
-          padding-left: 24px;
88
-          font-size: 24px;
89
-          color: #C0C8D3;
90
-        }
91
-      }
92
-      .cCright{
93
-        position: relative;
94
-        float: right;
95
-        padding:40px 0 30px 0;
96
-        .price{          
97
-          font-size: 24px;
98
-          color: #FF3434;
99
-          .money{
100
-            font-size: 20px;
101
-          }
102
-        }
103
-      }
104
-    }
105
-  }
34
+  padding:30px 30px 0 30px; 
106 35
 } 
107 36
 .botton{
108 37
   font-size: 28px;

+ 0
- 74
src/pages/searchResult/searchResult.less View File

@@ -32,80 +32,6 @@
32 32
   column-gap: 30px;    //列间距
33 33
   background-color: #F8F8F8;
34 34
   padding:30px 30px 0 30px;
35
-  
36
-  .contentCard{
37
-    background: #FFF;
38
-    box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
39
-    border-radius: 24px;
40
-    overflow: hidden;
41
-    margin-bottom:50px;
42
-    break-inside: avoid;
43
-    position: relative;
44
-
45
-    .cardTop{
46
-      border-radius: 24px 24px 0px 0px;
47
-      .cCardimg{
48
-        width: 100%;
49
-        border-radius: 24px 24px 0px 0px;
50
-      }
51
-      .lefttips{
52
-        width:99px;
53
-        height:37px;
54
-        position: absolute;
55
-        left: 0;
56
-        top: 0;
57
-      }
58
-      .loveharde{
59
-        width: 22px;
60
-        height: 20px;
61
-        position: absolute;
62
-        right: 20px;
63
-        top: 10px;
64
-      }
65
-    }
66
-    .bContent{
67
-      padding:20px;
68
-      .cCword{
69
-        font-size: 24px;
70
-        font-weight: bold;
71
-        color: #404040;
72
-      }
73
-      
74
-      .cCleft{
75
-        float: left;
76
-        position: relative;
77
-        padding:40px 0 30px 0;
78
-        .cCicon{
79
-          width: 17px;
80
-          height: 21px;
81
-          position: absolute;
82
-          left: 0;
83
-          top: 48px;
84
-        }
85
-        .distance{
86
-          padding-left: 24px;
87
-          font-size: 24px;
88
-          color: #C0C8D3;
89
-        }
90
-      }
91
-      .cCright{
92
-        position: relative;
93
-        float: right;
94
-        padding:40px 0 30px 0;
95
-        .money{
96
-          font-size: 20px;
97
-          color: #FF3434;          
98
-          position: absolute;
99
-          right: 78px;
100
-          bottom: 32px;
101
-        }
102
-        .price{
103
-          font-size: 24px;
104
-          color: #FF3434;
105
-        }
106
-      }
107
-    }
108
-  }
109 35
 } 
110 36
 .botton{
111 37
   font-size: 28px;