|
|
@@ -1,20 +1,21 @@
|
|
|
<template>
|
|
|
<view class="file-preview">
|
|
|
<!-- PDF 预览链接 -->
|
|
|
- <view v-if="isPdfFile" class="pdf-link" @click="handlePreviewPdf">
|
|
|
- <uni-icons type="document" size="20" color="#ff0000"></uni-icons>
|
|
|
- <text class="pdf-text">{{ displayFileName }}</text>
|
|
|
- </view>
|
|
|
+<!-- <view v-if="isPdfFile" class="pdf-link" @click="handlePreviewPdf">-->
|
|
|
+<!-- <uni-icons type="document" size="20" color="#ff0000"></uni-icons>-->
|
|
|
+<!-- <text class="pdf-text">{{ displayFileName }}</text>-->
|
|
|
+<!-- </view>-->
|
|
|
|
|
|
<!-- 图片预览 -->
|
|
|
- <view v-else-if="isImageFile" class="image-preview">
|
|
|
- <image :src="fullPath" mode="aspectFill" class="preview-image" @click.stop="handlePreviewImage" />
|
|
|
+ <view v-if="isImageFile" class="image-preview">
|
|
|
+ <image :src="fullPath" mode="aspectFill" class="preview-image" @click.stop="handlePreviewImage" />
|
|
|
</view>
|
|
|
|
|
|
<!-- 其他文件类型 -->
|
|
|
<view v-else class="file-info">
|
|
|
- <uni-icons type="folder" size="20" color="#007aff"></uni-icons>
|
|
|
- <text class="file-name">{{ displayFileName }}</text>
|
|
|
+ <cwg-icon icon="crm-document" :size="24" color="#000" />
|
|
|
+<!-- <uni-icons type="folder" size="20" color="#007aff"></uni-icons>-->
|
|
|
+<!-- <text class="file-name">{{ displayFileName }}</text>-->
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|