吃个甘蔗嚼一年 3 年前
父节点
当前提交
0d74c839a8
共有 2 个文件被更改,包括 24 次插入16 次删除
  1. 3
    3
      src/pages/index/tabs/Guide.jsx
  2. 21
    13
      src/pages/index/tabs/GuideCss/style.less

+ 3
- 3
src/pages/index/tabs/Guide.jsx 查看文件

@@ -95,9 +95,9 @@ export default (props) => {
95 95
         setAllextNum(res.total)
96 96
         setNewextNum(res.records.length)
97 97
       })
98
-      getRecommendList({ location: RoomLocation }).then((res) => {
99
-        setPackage(res || [])
100
-      })
98
+      // getRecommendList({ location: RoomLocation }).then((res) => {
99
+      //   setPackage(res || [])
100
+      // })
101 101
 
102 102
 
103 103
     } else {

+ 21
- 13
src/pages/index/tabs/GuideCss/style.less 查看文件

@@ -39,7 +39,6 @@
39 39
       margin-left: 30px;
40 40
 
41 41
       .MessageCard-name {
42
-        width: 400px;
43 42
         height: 40px;
44 43
         font-size: 32px;
45 44
         font-weight: bold;
@@ -50,6 +49,8 @@
50 49
         white-space: nowrap;
51 50
       }
52 51
       .MessageCard-info {
52
+        display: flex;
53
+        width: 998em;
53 54
         height: 23px;
54 55
         font-size: 24px;
55 56
         font-weight: 400;
@@ -178,18 +179,24 @@
178 179
       margin-left: 30px;
179 180
 
180 181
       .MessageCard-name-hotle {
181
-  
182
-        width: 100%;
183
-        /* height: 40rpx; */
184
-        font-size: 32px;
185
-        font-weight: bold;
186
-        color: #202020;
187
-        line-height: 44px;
188
-        /* overflow: hidden; */
189
-        /* -o-text-overflow: ellipsis; */
190
-        text-overflow: ellipsis;
191
-        /* white-space: nowrap; */
192
-        display: flex;
182
+        // width: 100%;
183
+        // font-size: 32px;
184
+        // font-weight: bold;
185
+        // color: #202020;
186
+        // line-height: 44px;
187
+        // display: flex;
188
+
189
+    font-size: 32px;
190
+    font-weight: bold;
191
+    color: #202020;
192
+    line-height: 44px;
193
+    display: flex;
194
+    overflow: hidden;
195
+    -webkit-line-clamp: 2;
196
+    text-overflow: ellipsis;
197
+    -webkit-box-orient: vertical;
198
+    display: -webkit-box;
199
+        
193 200
       }
194 201
       .MessageCard-info-hotle {
195 202
         height: 23px;
@@ -209,6 +216,7 @@
209 216
       text-align: center;
210 217
       display: inline-block;
211 218
       left: 1.5em;
219
+      top: -48px;
212 220
       .MessageCard-image-hotle {
213 221
         width: 30px;
214 222
         height: 30px;