吃个甘蔗嚼一年 3 years ago
parent
commit
0d74c839a8
2 changed files with 24 additions and 16 deletions
  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 View File

95
         setAllextNum(res.total)
95
         setAllextNum(res.total)
96
         setNewextNum(res.records.length)
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
     } else {
103
     } else {

+ 21
- 13
src/pages/index/tabs/GuideCss/style.less View File

39
       margin-left: 30px;
39
       margin-left: 30px;
40
 
40
 
41
       .MessageCard-name {
41
       .MessageCard-name {
42
-        width: 400px;
43
         height: 40px;
42
         height: 40px;
44
         font-size: 32px;
43
         font-size: 32px;
45
         font-weight: bold;
44
         font-weight: bold;
50
         white-space: nowrap;
49
         white-space: nowrap;
51
       }
50
       }
52
       .MessageCard-info {
51
       .MessageCard-info {
52
+        display: flex;
53
+        width: 998em;
53
         height: 23px;
54
         height: 23px;
54
         font-size: 24px;
55
         font-size: 24px;
55
         font-weight: 400;
56
         font-weight: 400;
178
       margin-left: 30px;
179
       margin-left: 30px;
179
 
180
 
180
       .MessageCard-name-hotle {
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
       .MessageCard-info-hotle {
201
       .MessageCard-info-hotle {
195
         height: 23px;
202
         height: 23px;
209
       text-align: center;
216
       text-align: center;
210
       display: inline-block;
217
       display: inline-block;
211
       left: 1.5em;
218
       left: 1.5em;
219
+      top: -48px;
212
       .MessageCard-image-hotle {
220
       .MessageCard-image-hotle {
213
         width: 30px;
221
         width: 30px;
214
         height: 30px;
222
         height: 30px;