|
@@ -45,46 +45,43 @@ export default defineComponent({
|
|
|
space-between={10}
|
|
|
pagination={true}
|
|
|
thumbs={{ swiper: thumbsSwiper.value }}>
|
|
|
- {props.item.attachmentUrl.map(
|
|
|
- (i: any, index: number) =>
|
|
|
- index <= 3 && (
|
|
|
- <SwiperSlide class="slide">
|
|
|
- <div
|
|
|
- class={styles.photo}
|
|
|
- onClick={() => {
|
|
|
- emit('showImageToas', {
|
|
|
- imagePreview: props.item.attachmentUrl,
|
|
|
- imageShow: true,
|
|
|
- startPosition: index
|
|
|
- });
|
|
|
- // forms.imagePreview = item.attachmentUrl;
|
|
|
- // forms.imageShow = true;
|
|
|
- // forms.startPosition = index;
|
|
|
- }}>
|
|
|
- {checkFile(i, 'image') ? (
|
|
|
- <Image src={i + '@base@tag=imgScale'} fit="cover" />
|
|
|
- ) : (
|
|
|
- <div class={styles.videoWErap}>
|
|
|
- <Image src={palyBtn} class={styles.palyBtn}></Image>
|
|
|
- <video
|
|
|
- style={{ backgroundColor: '#F8F8F8' }}
|
|
|
- poster={iconVideoDefault}
|
|
|
- src={i + '#t=1,4'}
|
|
|
- />
|
|
|
- </div>
|
|
|
- )}
|
|
|
+ {props.item.attachmentUrl.map((i: any, index: number) => (
|
|
|
+ <SwiperSlide class="slide">
|
|
|
+ <div
|
|
|
+ class={styles.photo}
|
|
|
+ onClick={() => {
|
|
|
+ emit('showImageToas', {
|
|
|
+ imagePreview: props.item.attachmentUrl,
|
|
|
+ imageShow: true,
|
|
|
+ startPosition: index
|
|
|
+ });
|
|
|
+ // forms.imagePreview = item.attachmentUrl;
|
|
|
+ // forms.imageShow = true;
|
|
|
+ // forms.startPosition = index;
|
|
|
+ }}>
|
|
|
+ {checkFile(i, 'image') ? (
|
|
|
+ <Image src={i + '@base@tag=imgScale'} fit="cover" />
|
|
|
+ ) : (
|
|
|
+ <div class={styles.videoWErap}>
|
|
|
+ <Image src={palyBtn} class={styles.palyBtn}></Image>
|
|
|
+ <video
|
|
|
+ style={{ backgroundColor: '#F8F8F8' }}
|
|
|
+ poster={iconVideoDefault}
|
|
|
+ src={i + '#t=1,4'}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
|
|
|
- {props.item.attachmentUrl.length > 4 && index === 3 ? (
|
|
|
- <div class={styles.photoMore}>
|
|
|
- +{props.item.attachmentUrl.length - 4}
|
|
|
- </div>
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
+ {props.item.attachmentUrl.length > 4 && index === 3 ? (
|
|
|
+ <div class={styles.photoMore}>
|
|
|
+ +{props.item.attachmentUrl.length - 4}
|
|
|
</div>
|
|
|
- </SwiperSlide>
|
|
|
- )
|
|
|
- )}
|
|
|
+ ) : (
|
|
|
+ ''
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ </SwiperSlide>
|
|
|
+ ))}
|
|
|
</Swiper>
|
|
|
<div class={styles.thumbsWrap}>
|
|
|
<div
|
|
@@ -96,7 +93,9 @@ export default defineComponent({
|
|
|
startPosition: 0
|
|
|
});
|
|
|
}}>
|
|
|
- 全部
|
|
|
+ <p>全</p>
|
|
|
+ <p>部</p>
|
|
|
+
|
|
|
<Image class={styles.arrayIcon} src={arrayIcon}></Image>
|
|
|
</div>
|
|
|
<Swiper
|
|
@@ -105,8 +104,7 @@ export default defineComponent({
|
|
|
space-between={10}
|
|
|
slides-per-view={4}
|
|
|
watch-slides-progress={true}
|
|
|
- prevent-clicks={true}
|
|
|
- prevent-clicks-propagation={false}
|
|
|
+ freeMode={true}
|
|
|
onSwiper={setThumbsSwiper}>
|
|
|
{props.item.attachmentUrl.map(
|
|
|
(i: any, index: number) =>
|