|
|
<template>
|
|
|
<resource class="focus-image">
|
|
|
<awesome-swiper name="mySwiper" :options="swiperOption" class="swipe">
|
|
|
<awesome-swiper name="mySwiper" :reg-success="swiperSuccess" :options="swiperOption" class="swipe">
|
|
|
<div class="swiper-wrapper" @click="activeLink">
|
|
|
<div class="swiper-slide"
|
|
|
v-for="focus in value.data"
|
...
|
...
|
@@ -42,6 +42,9 @@ |
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
swiperSuccess(swiper) {
|
|
|
this.mySwiper = swiper;
|
|
|
},
|
|
|
activeLink() {
|
|
|
const img = this.value.data[this.mySwiper.realIndex];
|
|
|
|
...
|
...
|
|