diff --git a/dangan-ui/src/views/dangan/catalog/index.vue b/dangan-ui/src/views/dangan/catalog/index.vue
index 7a6826e..2536edc 100644
--- a/dangan-ui/src/views/dangan/catalog/index.vue
+++ b/dangan-ui/src/views/dangan/catalog/index.vue
@@ -223,14 +223,29 @@
共计: {{ lssc.total }}
+ :src="item.picUrl" @click="onTu(index)">
+
+ {{ (dtyl.index + 1) + '/' + lssc.list.length }}
+
+
+
+
+
+
+
+
+
+
@@ -307,6 +322,11 @@ export default {
list: [],
previewList: [],
total: 0
+ },
+ // 图片预览
+ dtyl:{
+ open: false,
+ index: 0
}
};
},
@@ -533,6 +553,17 @@ export default {
})
});
},
+ // 点击档案图片
+ onTu(index){
+ this.dtyl.open = true;
+ console.log('onTu',index);
+ this.dtyl.index = index
+ this.$refs.carousel.setActiveItem(this.dtyl.index);
+ },
+ carouselChange(i){
+ console.log('carouselChange',i);
+ this.dtyl.index = i
+ }
}
};
@@ -579,4 +610,9 @@ export default {
border-radius:10px
}
}
+
+
+ .el-carousel__item{
+ text-align: center;
+ }