周立森 5 years ago
parent
commit
b41d572c07
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      src/components/Wheelplanting.vue
  2. 1
    1
      src/views/Case.vue

+ 2
- 2
src/components/Wheelplanting.vue View File

5
         <div class="swiper-slide" v-for="(url,index) in blogs" :key="index+'url'">
5
         <div class="swiper-slide" v-for="(url,index) in blogs" :key="index+'url'">
6
           <div class="size">
6
           <div class="size">
7
             <router-link :to="{ name: 'details', params: { id: url.link }}" v-if="url.link" class="routelink">
7
             <router-link :to="{ name: 'details', params: { id: url.link }}" v-if="url.link" class="routelink">
8
-           <img class="imgrul" :src="url.imageUrl" />
8
+           <img class="imgrul" :src="url.imageUrl" style="object-fit: cover" />
9
           </router-link>
9
           </router-link>
10
-            <img v-else class="imgrul" :src="url.imageUrl" />
10
+            <img v-else class="imgrul" :src="url.imageUrl" style="object-fit: cover"/>
11
           </div>
11
           </div>
12
         </div>
12
         </div>
13
       </div>
13
       </div>

+ 1
- 1
src/views/Case.vue View File

32
             <button type="button" @click="() => filterCase()" class="btn-link" style="color:black;font-size: 24px;" :class="{btnactive:thisbtn==''}">全部案例</button>
32
             <button type="button" @click="() => filterCase()" class="btn-link" style="color:black;font-size: 24px;" :class="{btnactive:thisbtn==''}">全部案例</button>
33
           </el-col>-->
33
           </el-col>-->
34
           <el-col :span="24">
34
           <el-col :span="24">
35
-            <van-picker class="values" :columns="columns" @cancel="drawer = false" :class="{btnactive:thisbtn==values}" @confirm="onConfirm" @change="onChange"  />
35
+            <van-picker class="values" :columns="columns" @cancel="drawer = false"  @confirm="onConfirm" @change="onChange"  />
36
           </el-col>
36
           </el-col>
37
           <!-- <el-col :span="24" v-for="cas in casetype" :key="cas.id"> value-key=''
37
           <!-- <el-col :span="24" v-for="cas in casetype" :key="cas.id"> value-key=''
38
          
38