flx:合并冲突

This commit is contained in:
X_Rian 2024-07-19 14:16:36 +08:00
commit 7ce5a6a4a9
15 changed files with 14 additions and 1 deletions

View File

@ -21,7 +21,8 @@
<view class="itemBox">
<view class="file-info">
<image :src="item.logoUrl" class="icon-image" v-if="fileTypeCondition(item.logoUrl)"></image>
<image v-else src="/static/documentIcon/JPG.png" class="icon-image"></image>
<!-- <image v-else-if="getFileSuffix(item.logoUrl) == 'zip'" :src="'/static/documentIcon/ZIP.png'" class="icon-image"></image> -->
<image v-else :src="getFileSuffix(item.logoUrl)" class="icon-image"></image>
<view class="info">
<view class="info-inner">{{item.fileName}}</view>
<view class="info-inner">{{item.createTime}}</view>
@ -55,6 +56,7 @@
barBoxHeight: '',
scrollHeight:'',
listData: [],
};
},
onReady() {
@ -76,6 +78,17 @@
//
return imageExtensions.includes(extension);
},
getFileSuffix(fileName){
let suffixName = fileName.split('.').pop().toLowerCase()
if(suffixName == 'pdf') return '/static/documentIcon/pdf.png'
if(suffixName == 'ppt' || suffixName == 'pptx') return '/static/documentIcon/ppt.png'
if(suffixName == 'rar' || suffixName == 'zip') return '/static/documentIcon/rar.png'
if(suffixName == 'txt') return '/static/documentIcon/txt.png'
if(suffixName == 'mp4') return '/static/documentIcon/video.png'
if(suffixName == 'doc' || suffixName == 'docx') return '/static/documentIcon/word.png'
return '/static/documentIcon/null.png'
// return fileName.split('.').pop();
},
async getHeight() {
const query = uni.createSelectorQuery().in(this);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
static/documentIcon/img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
static/documentIcon/mp3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB