master
fanluyan 2 years ago
parent 4cc515973e
commit e2b166d4ce

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

Loading…
Cancel
Save