Commit 0d6d3488 authored by 黄媛媛's avatar 黄媛媛

修改图片尺寸

parent 83840aeb
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
<div v-loading="loading" class="Content"> <div v-loading="loading" class="Content">
<ul class="videoUl"> <ul class="videoUl">
<li v-for="(item,index) in dataList" :key="index"> <li v-for="(item,index) in dataList" :key="index">
<div @click.prevent="goUrl('EducationvideoSee',item)" class="imgDiv"> <div :style="{backgroundImage: 'url(' + item.background + ')', backgroundSize:'cover'}" @click.prevent="goUrl('EducationvideoSee',item)" class="imgDiv">
<img v-if="item.Cover && item.Cover!=''" :onerror="defaultImg" style="min-height:199px;width:100%" :src="item.Cover" alt=""> <!-- <img v-if="item.Cover && item.Cover!=''" :onerror="defaultImg" style="min-height:199px;width:100%" :src="item.Cover" alt="">
<img v-else style="height:199px;width:100%" src="../assets/img/hotel/biefu.png" alt=""> <img v-else style="height:199px;width:100%" src="../assets/img/hotel/biefu.png" alt=""> -->
<div class="backDiv"> <div class="backDiv">
<span class="iconfont icon-ico_bofang"></span> <span class="iconfont icon-ico_bofang"></span>
<!-- <div @click.prevent="goUrl1('EducationvideoList',$event)" class="icon"> <!-- <div @click.prevent="goUrl1('EducationvideoList',$event)" class="icon">
...@@ -171,10 +171,15 @@ export default { ...@@ -171,10 +171,15 @@ export default {
this.nodata=true; this.nodata=true;
} }
else{ else{
data.forEach(item=>{
let lastUrl="?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast";
item.background=item.VideoAddress+lastUrl;
})
this.dataList = this.dataList.concat(data) this.dataList = this.dataList.concat(data)
} }
this.total = res.data.data.count; this.total = res.data.data.count;
console.log("this.dataList",this.dataList)
} }
} }
); );
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<div v-loading="loading" class="Content"> <div v-loading="loading" class="Content">
<ul class="videoUl"> <ul class="videoUl">
<li v-for="(item,index) in dataList" :key="index"> <li v-for="(item,index) in dataList" :key="index">
<div @click.prevent="goUrl('EducationvideoSee',item)" class="imgDiv"> <div :style="{backgroundImage: 'url(' + item.background + ')', backgroundSize:'cover'}" @click.prevent="goUrl('EducationvideoSee',item)" class="imgDiv">
<img v-if="item.Cover && item.Cover!=''" :onerror="defaultImg" style="min-height: 199px;width:100%" :src="item.Cover" alt=""> <!-- <img v-if="item.Cover && item.Cover!=''" :onerror="defaultImg" style="min-height: 199px;width:100%" :src="item.Cover" alt="">
<img v-else style="height:199px;width:100%" src="../assets/img/hotel/biefu.png" alt=""> <img v-else style="height:199px;width:100%" src="../assets/img/hotel/biefu.png" alt=""> -->
<div class="backDiv"> <div class="backDiv">
<span class="iconfont icon-ico_bofang"></span> <span class="iconfont icon-ico_bofang"></span>
<div class="icon"> <div class="icon">
...@@ -314,6 +314,10 @@ export default { ...@@ -314,6 +314,10 @@ export default {
this.nodata=true; this.nodata=true;
} }
else{ else{
data.forEach(item=>{
let lastUrl="?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast";
item.background=item.VideoAddress+lastUrl;
})
this.dataList = this.dataList.concat(data) this.dataList = this.dataList.concat(data)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment