diff --git a/src/pages/information/index.ts b/src/pages/information/index.ts
index aed003f..59c8a22 100644
--- a/src/pages/information/index.ts
+++ b/src/pages/information/index.ts
@@ -10,6 +10,15 @@ Page({
pages: 1,
count: 1,
},
+ fileLabelIcon: {
+ pdf: 'file-label1',
+ doc: 'file-label2',
+ docx: 'file-label3',
+ pptx: 'file-label4',
+ xls: 'file-label5',
+ xlsx: 'file-label6',
+ ppt: 'file-label7',
+ },
},
onShow() {
app.waitLogin({ type: 2 }).then(() => {
diff --git a/src/pages/informationDetail/index.ts b/src/pages/informationDetail/index.ts
index ddbb20c..21044e7 100644
--- a/src/pages/informationDetail/index.ts
+++ b/src/pages/informationDetail/index.ts
@@ -13,6 +13,7 @@ Page({
pageShow: false,
empty1: false,
empty2: false,
+ empty3: false,
errorMsg: '',
Timestamp: '',
@@ -57,7 +58,7 @@ Page({
wx.hideShareMenu();
wx.offCopyUrl();
wx.setNavigationBarTitle({
- title: '通知详情',
+ title: '通知详情页',
});
}
this.setData({
@@ -70,7 +71,6 @@ Page({
});
})
.catch((err) => {
- console.log(err);
const { errorCode, errorMsg } = err.data.data;
const empty1 = errorCode === '1';
const empty2 = errorCode === '2';
@@ -79,6 +79,7 @@ Page({
errorMsg,
empty1,
empty2,
+ empty3: !empty1 && !empty2,
});
});
},
diff --git a/src/pages/informationDetail/index.wxml b/src/pages/informationDetail/index.wxml
index 11d700b..c1559c2 100644
--- a/src/pages/informationDetail/index.wxml
+++ b/src/pages/informationDetail/index.wxml
@@ -39,7 +39,7 @@
内容不存在
回首页
-
+
{{errorMsg}}
回首页