master
fanluyan 2 years ago
parent 4cc515973e
commit e2b166d4ce

@ -5,8 +5,14 @@
:close-on-click-modal="false" :close-on-click-modal="false"
width="80%" width="80%"
> >
<el-carousel :loop="false" :autoplay="false" height="600px" indicator-position="none" @change="changebtn"> <el-carousel
<el-carousel-item v-for="(item,index) in imglist" :key="index" > :loop="false"
:autoplay="false"
height="600px"
indicator-position="none"
@change="changebtn"
>
<el-carousel-item v-for="(item, index) in imglist" :key="index">
<el-image :src="item.path" fit="contain"></el-image> <el-image :src="item.path" fit="contain"></el-image>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
@ -18,7 +24,7 @@ export default {
data() { data() {
return { return {
isShow: false, isShow: false,
imglist:[], imglist: [],
page: 1, // page: 1, //
pageSize: 10, // pageSize: 10, //
total: 0, // total: 0, //
@ -32,17 +38,15 @@ export default {
channelId: val.channelId, channelId: val.channelId,
termId: val.termId, termId: val.termId,
pageindex: this.page, pageindex: this.page,
pagesize: this.pageSize pagesize: this.pageSize,
}) }).then((res) => {
.then((res) => { this.imglist = res.data.list;
this.imglist = res.data.list; this.total = res.data.total;
this.total = res.data.total; });
})
}, },
// //
changebtn(e){ changebtn(e) {
console.log(e) console.log(e);
}, },
display() { display() {
this.isShow = true; this.isShow = true;
@ -54,8 +58,7 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.imgnr{ .imgnr {
height: 600px; height: 600px;
} }
</style> </style>

Loading…
Cancel
Save