From 641aefbdab279498f39a57146dbde986f7e3ccee Mon Sep 17 00:00:00 2001 From: PQZ Date: Tue, 6 May 2025 18:26:37 +0800 Subject: [PATCH] 1 --- pages/mine/mine-index.vue | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index 54e1366..680cabf 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -140,10 +140,10 @@ 其他信息 - + @@ -384,9 +384,35 @@ .userId) }, viewNewPeople() { - this.$tab.navigateTo( - `/pages/common/richview/index?title=${this.globalConfig.appInfo.agreements[3].title}&code=${this.globalConfig.appInfo.agreements[3].code}` - ) + if (this.localUserType == '02'){ + uni.downloadFile({ + url: 'https://www.ddtg.site/bz.docx', + success: function(res) { + var filePath = res.tempFilePath; + uni.openDocument({ + filePath: filePath, + showMenu: true, + success: function(res) {} + }); + } + }); + } else { + uni.downloadFile({ + url: 'https://www.ddtg.site/tgz.docx', + success: function(res) { + var filePath = res.tempFilePath; + uni.openDocument({ + filePath: filePath, + showMenu: true, + success: function(res) {} + }); + } + }); + } + + // this.$tab.navigateTo( + // `/pages/common/richview/index?title=${this.globalConfig.appInfo.agreements[3].title}&code=${this.globalConfig.appInfo.agreements[3].code}` + // ) } } }