|
@@ -44,6 +44,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import Swiper, {Autoplay} from 'swiper';
|
|
|
|
+Swiper.use([Autoplay]);
|
|
export default {
|
|
export default {
|
|
name: "course-baojia",
|
|
name: "course-baojia",
|
|
props: {
|
|
props: {
|
|
@@ -60,6 +62,9 @@ export default {
|
|
default: [],
|
|
default: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ components: {
|
|
|
|
+ mySwiper: Swiper
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
curTag() {
|
|
curTag() {
|
|
const tag = {
|
|
const tag = {
|
|
@@ -89,7 +94,20 @@ export default {
|
|
btnTextDisabled: false,
|
|
btnTextDisabled: false,
|
|
btnText: '获取验证码',
|
|
btnText: '获取验证码',
|
|
countdown: 60, // 60秒倒计时
|
|
countdown: 60, // 60秒倒计时
|
|
- swiperOption: {},
|
|
|
|
|
|
+ swiperOption: {
|
|
|
|
+ autoplay: {
|
|
|
|
+ delay: 2000,
|
|
|
|
+ },
|
|
|
|
+ height: 28,
|
|
|
|
+ direction: 'vertical',
|
|
|
|
+ paginationClickable: true,
|
|
|
|
+ speed: 800,
|
|
|
|
+ loop: true,
|
|
|
|
+ observer: true,
|
|
|
|
+ observeParents: true,
|
|
|
|
+ autoplayDisableOnInteraction: false,
|
|
|
|
+ allowTouchMove: false,
|
|
|
|
+ },
|
|
appKey: 'FFFF0N00000000007EC0',
|
|
appKey: 'FFFF0N00000000007EC0',
|
|
}
|
|
}
|
|
},
|
|
},
|