diff --git a/project.config.json b/project.config.json index 4a3111e..5634447 100644 --- a/project.config.json +++ b/project.config.json @@ -71,5 +71,5 @@ } ] }, - "appid": "wxf9ce8010f1ad24aa" + "appid": "wx71ac9c27c3c3e3f4" } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index aedb5d1..04e8bd6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -16,15 +16,15 @@ App({ // 测试号 wx2b0bb13edf717c1d // dev // appid:wxf9ce8010f1ad24aa - url: 'https://m.xd.hbraas.com', - upFileUrl: 'https://m.xd.hbraas.com/', - imageUrl: 'https://m.xd.hbraas.com/xd/', + // url: 'https://m.xd.hbraas.com', + // upFileUrl: 'https://m.xd.hbraas.com/', + // imageUrl: 'https://m.xd.hbraas.com/xd/', // pro // appid:wx71ac9c27c3c3e3f4 - // url: 'https://m.xd.hbsaas.com', - // upFileUrl: 'https://m.xd.hbsaas.com/', - // imageUrl: 'https://m.xd.hbsaas.com/api/xd/', + url: 'https://m.xd.hbsaas.com', + upFileUrl: 'https://m.xd.hbsaas.com/', + imageUrl: 'https://m.xd.hbsaas.com/api/xd/', loginState: '', isLogin: 0, diff --git a/src/pages/home/index.ts b/src/pages/home/index.ts index 3bf9056..99bb6b2 100644 --- a/src/pages/home/index.ts +++ b/src/pages/home/index.ts @@ -234,6 +234,7 @@ Page({ const { id, index } = e.currentTarget.dataset; const params = this.data.list[index]; if (params.ContentType === '5' && params.FileList[0]) { + app.mpBehavior({ PositionId: '1', OperateType: '1', OperateId: id as string }); this.handleFile(params.FileList[0]); } else { wx.navigateTo({ diff --git a/src/pages/information/index.ts b/src/pages/information/index.ts index aed003f..ec3b305 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(() => { @@ -51,6 +60,7 @@ Page({ const { id, index } = e.currentTarget.dataset; const params = this.data.list[index]; if (params.ContentType === '5' && params.FileList[0]) { + app.mpBehavior({ PositionId: '1', OperateType: '1', OperateId: id as string }); this.handleFile(params.FileList[0]); } else { wx.navigateTo({ 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}} 回首页