From 6aee3a38ae665393871a0ee21ee767dd680dcd3f Mon Sep 17 00:00:00 2001 From: Archer_cdm Date: Thu, 19 Jan 2023 19:52:59 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=88*=EF=BC=89=E5=B7=A1=E6=A3=80=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=AF=A6=E6=83=85=E8=A7=A3=E7=A0=81=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/inspectionRecord/inspectionRecord.js | 4 ++-- .../inspectionRecordDetail/inspectionRecordDetail.js | 2 +- weapp/package/startInspection/startInspection.js | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/weapp/package/inspectionRecord/inspectionRecord.js b/weapp/package/inspectionRecord/inspectionRecord.js index 32d6315..e1234f2 100644 --- a/weapp/package/inspectionRecord/inspectionRecord.js +++ b/weapp/package/inspectionRecord/inspectionRecord.js @@ -88,9 +88,9 @@ Page({ // 查看详情 bindDetail(e) { - let data = e.currentTarget.dataset.item; + let data = JSON.stringify(e.currentTarget.dataset.item); wx.navigateTo({ - url: '/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail?data=' + JSON.stringify(data), + url: '/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail?data=' + encodeURIComponent(data), }) }, diff --git a/weapp/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail.js b/weapp/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail.js index 7135107..de30c5a 100644 --- a/weapp/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail.js +++ b/weapp/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail.js @@ -28,7 +28,7 @@ Page({ */ onLoad(options) { let that = this; - let data = JSON.parse(options.data) + let data = JSON.parse(decodeURIComponent(options.data)) if (data.points.imgs != undefined) { let newArr = data.points.imgs.map(e => { e = that.data.imgUrl + e; diff --git a/weapp/package/startInspection/startInspection.js b/weapp/package/startInspection/startInspection.js index 0efdee7..b2aef98 100644 --- a/weapp/package/startInspection/startInspection.js +++ b/weapp/package/startInspection/startInspection.js @@ -358,7 +358,6 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad(options) { - console.log(options, '-------'); let that = this; let data = JSON.parse(decodeURIComponent(options.data)); let points = data.points.map(e => {