|
@@ -16,10 +16,12 @@
|
16
|
16
|
|
17
|
17
|
<div class="playlet-wrap">
|
18
|
18
|
<div class="playlet-item" v-for="(item, idx) in playletGroup.list" :key="idx" @click="onClickPlay(item)">
|
|
19
|
+ <div class="cover-wrap">
|
|
20
|
+ <!-- cover contain fill none scale-down -->
|
|
21
|
+ <van-image class="p-img" :src="item.playlet_cover" radius="10" fit="contain" />
|
|
22
|
+ <img class="play-btn" src="@/assets/img/play-btn.png" />
|
|
23
|
+ </div>
|
19
|
24
|
<div class="p-name">{{ item.playlet_name }}</div>
|
20
|
|
- <!-- cover contain fill none scale-down -->
|
21
|
|
- <van-image class="p-img" :src="item.playlet_cover" radius="10" fit="contain" />
|
22
|
|
- <img class="play-btn" src="@/assets/img/play-btn.png" />
|
23
|
25
|
</div>
|
24
|
26
|
</div>
|
25
|
27
|
</div>
|
|
@@ -241,7 +243,6 @@ const changeTitleClick = () => {
|
241
|
243
|
// S 竖版 1行2个剧
|
242
|
244
|
.playlet-wrap {
|
243
|
245
|
display: flex;
|
244
|
|
- align-items: center;
|
245
|
246
|
justify-content: space-between;
|
246
|
247
|
flex-wrap: wrap;
|
247
|
248
|
.playlet-item {
|
|
@@ -249,29 +250,32 @@ const changeTitleClick = () => {
|
249
|
250
|
width: 48%;
|
250
|
251
|
// height: 250px;
|
251
|
252
|
margin-bottom: 16px;
|
252
|
|
- position: relative;
|
253
|
253
|
background-color: #fff;
|
254
|
254
|
padding: 10px;
|
|
255
|
+ .cover-wrap {
|
|
256
|
+ position: relative;
|
|
257
|
+ .p-img {
|
|
258
|
+ width: 100%;
|
|
259
|
+ height: 220px;
|
|
260
|
+ }
|
|
261
|
+ .play-btn {
|
|
262
|
+ width: 40px;
|
|
263
|
+ height: 40px;
|
|
264
|
+ position: absolute;
|
|
265
|
+ top: 50%;
|
|
266
|
+ left: 50%;
|
|
267
|
+ transform: translate(-50%, -50%);
|
|
268
|
+ }
|
|
269
|
+ }
|
255
|
270
|
.p-name {
|
256
|
|
- padding: 6px 6px 3px;
|
|
271
|
+ padding: 6px;
|
|
272
|
+ text-align: center;
|
257
|
273
|
font-size: 16px;
|
258
|
|
- color: #333;
|
259
|
|
- white-space: nowrap;
|
260
|
|
- overflow: hidden;
|
261
|
|
- text-overflow: ellipsis;
|
262
|
|
- }
|
263
|
|
- .p-img {
|
264
|
|
- margin-top: 10px;
|
265
|
|
- width: 100%;
|
266
|
|
- height: 220px;
|
267
|
|
- }
|
268
|
|
- .play-btn {
|
269
|
|
- width: 40px;
|
270
|
|
- height: 40px;
|
271
|
|
- position: absolute;
|
272
|
|
- top: 50%;
|
273
|
|
- left: 50%;
|
274
|
|
- transform: translate(-50%, -50%);
|
|
274
|
+ color: #555;
|
|
275
|
+ font-weight: 700;
|
|
276
|
+ // white-space: nowrap;
|
|
277
|
+ // overflow: hidden;
|
|
278
|
+ // text-overflow: ellipsis;
|
275
|
279
|
}
|
276
|
280
|
}
|
277
|
281
|
}
|