From 1865d5d1a9aac59d4a85012af3e17b740c5b9919 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Wed, 15 Jun 2022 19:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/reportInfoDetail/reportInfoDetail.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/reportInfoDetail/reportInfoDetail.vue b/pages/reportInfoDetail/reportInfoDetail.vue index 1d6dc42..f6c5fb8 100644 --- a/pages/reportInfoDetail/reportInfoDetail.vue +++ b/pages/reportInfoDetail/reportInfoDetail.vue @@ -64,6 +64,7 @@ // #ifdef H5 import { + getPageWAppId, wechatRefreshToken } from '@/lib/java110/page/PageH5.js' // #endif @@ -76,7 +77,8 @@ setting: {}, titles: [], qaId: '', - objType: '' + objType: '', + openId:'' }; }, /** @@ -86,9 +88,11 @@ let that = this; // #ifdef H5 if (!options.openId) { + getPageWAppId(options); wechatRefreshToken(window.location.href, 2, window.location.href); return; } + this.openId = options.openId; this._loadUserInfo(options.openId); // #endif this.settingId = options.settingId; @@ -178,6 +182,7 @@ "bindTime": this.bindTime, "remark": this.remark, "backTime": this.bindDate + " " + this.bindTime + ":00", + "openId":this.openId, }; let msg = ""; if (obj.communityId == "") { @@ -248,6 +253,7 @@ "personName": this.name, "idCard": this.idCard, "tel": this.tel, + "openId":this.openId, questionAnswerTitles: _questionAnswerTitles, } saveReportInfoAnswerValue(obj) @@ -257,6 +263,9 @@ title: '保存成功' }); this.communityId = ""; + uni.navigateBack({ + delta:1 + }) }, err => { uni.showToast({ icon: 'none',