Commit b7546feb authored by 华国豪's avatar 华国豪 🙄

1

parent b605e1ff
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</style> </style>
<template> <template>
<div class="my_carousel"> <div class="my_carousel">
<div v-for="(item, index) in imgList" class="my_carousel_item" :class="{my_carousel_item_show: index === show}" @mouseenter="clearAutoPlay(1)" @mouseleave="clearAutoPlay(2)"> <div v-for="(item, index) in imgList" :key="index" class="my_carousel_item" :class="{my_carousel_item_show: index === show}" @mouseenter="clearAutoPlay(1)" @mouseleave="clearAutoPlay(2)">
<div class="img" :style="`background-image: url(${item.src})`"></div> <div class="img" :style="`background-image: url(${item.src})`"></div>
<div class="my_carousel_content"> <div class="my_carousel_content">
<div @click="goProduct(item.url)" class="goProduct"> <div @click="goProduct(item.url)" class="goProduct">
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</div> </div>
<div class="my_carousel_content_bt_line_box"> <div class="my_carousel_content_bt_line_box">
<div class="my_carousel_content_bt_line"> <div class="my_carousel_content_bt_line">
<div v-for="(item, index) in imgList"> <div v-for="(item, index) in imgList" :key="index">
<span :class="{my_carousel_content_bt_line_show: index === show}" :style="{'transition': index === show ? 'all linear '+ speed/1000 +'s' : ''}"></span> <span :class="{my_carousel_content_bt_line_show: index === show}" :style="{'transition': index === show ? 'all linear '+ speed/1000 +'s' : ''}"></span>
</div> </div>
</div> </div>
......
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
methods: { methods: {
openFile(file) { openFile(file) {
if (file) { if (file) {
window.open(file); window.open(file, "_blank");
} }
}, },
inited(viewer) { inited(viewer) {
......
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