diff --git a/pages/index/index.js b/pages/index/index.js index c565564..7c25469 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -25,7 +25,6 @@ Page({ }, // 事件处理函数 onLoad: async function () { - await this.getToken() // await this.getIntelligentMessage() await this.getStaffbasicinfo() @@ -37,6 +36,13 @@ Page({ this.getInspRecord() }, + onShareAppMessage() { + return{ + title:`${this.data.agencyName}${this.data.communitySelfInspTop.monthName}月份满意度调查`, + path:'/pages/webView/webView?url=' + encodeURIComponent(this.data.communitySelfInspTop.questionnaireUrl), + imageUrl:'../../images/work/shareBg.png' + } +}, onShow(){ this.getIntelligentMessage() this.getSituation() @@ -81,6 +87,7 @@ toDetaill(e){ url: `/subpages/communitySelfInsp/pages/synthesis/synthesis?inspRecordId=${encodeURIComponent(e.currentTarget.dataset.item.id)}&qrCodeImgUrl=${encodeURIComponent(e.currentTarget.dataset.item.qrCodeImgUrl)}&agencyName=${encodeURIComponent(e.currentTarget.dataset.item.agencyName)}&monthName=${encodeURIComponent(e.currentTarget.dataset.item.monthName)}&questionnaireUrl=${encodeURIComponent(e.currentTarget.dataset.item.questionnaireUrl)}&status=${encodeURIComponent(e.currentTarget.dataset.item.status)}` }) }, + toSynthesis(){ wx.navigateTo({ url: `/subpages/communitySelfInsp/pages/synthesis/synthesis?inspRecordId=${encodeURIComponent(this.data.communitySelfInspTop.id)}&qrCodeImgUrl=${encodeURIComponent(this.data.communitySelfInspTop.qrCodeImgUrl)}&agencyName=${encodeURIComponent(this.data.communitySelfInspTop.agencyName)}&monthName=${encodeURIComponent(this.data.communitySelfInspTop.monthName)}&questionnaireUrl=${encodeURIComponent(this.data.communitySelfInspTop.questionnaireUrl)}&status=${encodeURIComponent(this.data.communitySelfInspTop.status)}`,