Skip to content

Commit

Permalink
f📦:修改图片适配
Browse files Browse the repository at this point in the history
  • Loading branch information
YTU94 committed Nov 22, 2019
1 parent a88990e commit 550dbd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/courseCard.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="course-card" @click="goVideoList(course)">
<div class="card-img">
<img :src="course.thumb" alt mode />
<img :src="course.thumb" alt mode="aspectFill" />
<div v-if="isNew" class="card-img-icon">new</div>
</div>
<div class="card-info">
Expand Down
1 change: 1 addition & 0 deletions src/components/swiper-banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:class="{'active': activeIndex === index}"
:src="item.thumb"
class="slide-image"
mode="aspectFit"
>
</div>
</swiper-item>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/videoList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="info section">
<span class="info-tag">{{courseInfo.charge ? '实战课程' : '免费课程'}}</span>
<h1 class="info-title">{{courseInfo.title}}</h1>
<img class="info-img" :src="courseInfo.thumb" alt mode />
<img class="info-img" :src="courseInfo.thumb" alt mode="scaleToFill" />
</div>
<section class="line"></section>
<!-- introduction -->
Expand Down

0 comments on commit 550dbd5

Please sign in to comment.