|
|
<template>
|
|
|
<div class="article-item-slide-wrap">
|
|
|
<div class="article-item-slide" :style="slideItemStyle" @click="praiseArticle">
|
|
|
<div class="article-item-slide" :style="slideItemStyle" @touchend="praiseArticle">
|
|
|
<ArticleItemSlideImage v-if="data.blockList.length === 1" :lazy="false" :data="data.blockList[0]" :thumb-size="firstBlockSize"></ArticleItemSlideImage>
|
|
|
<Slide :key="`slide${data.articleId}`" v-else ref="slide" :data="data.blockList" :refresh-reset-current="false" :initial-index="slideIndex - 1" :threshold="0.2" :auto-play="false" :loop="false" :options="scrollOption" @change="onChange">
|
|
|
<SlideItem class="slide-item" :style="slideItemStyle" v-for="(item, inx) in data.blockList" :key="inx">
|
...
|
...
|
@@ -32,7 +32,7 @@ import {mapState, createNamespacedHelpers} from 'vuex'; |
|
|
import lottieJson from '../../../../statics/lottie/detail-heart.json';
|
|
|
const {mapMutations} = createNamespacedHelpers('article');
|
|
|
|
|
|
const dblclickDdelay = 500;
|
|
|
const dblclickDdelay = 200;
|
|
|
|
|
|
export default {
|
|
|
name: 'ArticleItemSlide',
|
...
|
...
|
|