Commit a8c02daf by xiexiaoqin

fix: file icon, index list

parent 2c2219bb
......@@ -108,7 +108,7 @@
border-left: 16rpx solid rgba(0, 0, 0, 0);
}
.pdf {
.pdf, .apdf {
background: url(../../assests/pdf.png) center /100% 100% !important;
}
......@@ -116,7 +116,7 @@
background: url(../../assests/image.png) center /100% 100% !important;
}
.docx, .txt, .doc, .pages, .wps, .file {
.docx, .txt, .doc, .adoc, .adocx, .pages, .wps, .file {
background: url(../../assests/docx.png) center /100% 100% !important;
}
......@@ -124,11 +124,11 @@
background: url(../../assests/mp4.png) center /100% 100% !important;
}
.pptx, .ppt, .key {
.pptx, .ppt, .apptx, .appt, .key {
background: url(../../assests/mp4.png) center /100% 100% !important;
}
.xlsx, .numbers {
.xlsx, .axlsx, .axls, .axlsx, .numbers {
background: url(../../assests/xlsx.png) center /100% 100% !important;
}
......
......@@ -32,6 +32,9 @@ create.Component({
const fileList = []
for (let i = 0; i < this.props.fileInfos.length; i++) {
this.props.fileInfos[i].sizeShow = renderSize(this.props.fileInfos[i].size)
if (this.props.fileInfos[i].mimeType === "application/pdf") {
this.props.fileInfos[i].fileType = 'pdf'
}
fileList.push(this.props.fileInfos[i])
}
this.setData({
......
export const globalUrl = "https://gateway-ding.mingwork.com";
export const globalUrl2 = "https://third-authentication.mingwork.com";
export const version = 0.049;
export const version = 0.050;
export const websocketUrl = 'wss://gateway-ding.mingwork.com';
......@@ -335,7 +335,8 @@ create.Page({
getPages(current, callBack) {
getDynamicList({ before: 'yes' })
.then(res => {
if ((!res.data.data || res.data.data.length === 0) && res.data.msg === 'yes') {
if (!res.data.data || res.data.data.length === 0) {
if (res.data.msg === 'yes') {
getDynamicList({ before: 'no' }).then(res => {
if (!res.data.data || res.data.data.length === 0) {
this.setData({
......@@ -367,8 +368,16 @@ create.Page({
}
}
})
} else {
this.setData({
listLoading: false,
more: false,
dynamicList: []
});
}
return;
}
const dynamicList = res.data.data.map((item, index) => {
for (let i = 0; i < item.commentListDataModelList.length; i++) {
let itemData = item.commentListDataModelList[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment