Compare commits

...

2 Commits

  1. 4
      weapp/package/inspectionRecord/inspectionRecord.js
  2. 2
      weapp/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail.js
  3. 1
      weapp/package/startInspection/startInspection.js

4
weapp/package/inspectionRecord/inspectionRecord.js

@ -88,9 +88,9 @@ Page({
// 查看详情 // 查看详情
bindDetail(e) { bindDetail(e) {
let data = e.currentTarget.dataset.item; let data = JSON.stringify(e.currentTarget.dataset.item);
wx.navigateTo({ wx.navigateTo({
url: '/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail?data=' + JSON.stringify(data), url: '/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail?data=' + encodeURIComponent(data),
}) })
}, },

2
weapp/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail.js

@ -28,7 +28,7 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
let that = this; let that = this;
let data = JSON.parse(options.data) let data = JSON.parse(decodeURIComponent(options.data))
if (data.points.imgs != undefined) { if (data.points.imgs != undefined) {
let newArr = data.points.imgs.map(e => { let newArr = data.points.imgs.map(e => {
e = that.data.imgUrl + e; e = that.data.imgUrl + e;

1
weapp/package/startInspection/startInspection.js

@ -358,7 +358,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options, '-------');
let that = this; let that = this;
let data = JSON.parse(decodeURIComponent(options.data)); let data = JSON.parse(decodeURIComponent(options.data));
let points = data.points.map(e => { let points = data.points.map(e => {

Loading…
Cancel
Save