Commit 1a1a4142 by fengzhaoyu

fix: 修改传参 ios将参数带上报错问题

parent 71b5549a
...@@ -801,10 +801,9 @@ create.Page({ ...@@ -801,10 +801,9 @@ create.Page({
}, },
nextDetail: throttle(function (e) { nextDetail: throttle(function (e) {
const { item } = e.target.dataset; const { item } = e.target.dataset;
const scheduleItem = { scheduleId: item.id || item.scheduleId, scheduleTemplateId: item.scheduleTemplateId, planDate: item.planDate }
dd.navigateTo({ dd.navigateTo({
url: `./../meetingDetail/meetingDetail?scheduleItem=${encodeURIComponent( url: `./../meetingDetail/meetingDetail?scheduleItem=${encodeURIComponent(JSON.stringify(scheduleItem))}`
JSON.stringify(item)
)}`
}); });
}, 1000), }, 1000),
backToToday(type) { backToToday(type) {
......
...@@ -331,16 +331,21 @@ create.Page({ ...@@ -331,16 +331,21 @@ create.Page({
}, },
// 跳转下一页 // 跳转下一页
nextPage(event) { nextPage(event) {
const scheduleItem = {
id: this.data.scheduleItem.id,
scheduleTemplateId: this.data.scheduleTemplateId,
planDate: this.data.planDate
}
switch (event.target.dataset.nextPage) { switch (event.target.dataset.nextPage) {
case 'location': case 'location':
this.$store.data.updateInfo.updateType = 'modify_location' this.$store.data.updateInfo.updateType = 'modify_location'
this.update() this.update()
dd.navigateTo({ url: `./../place/place?scheduleItem=${encodeURIComponent(JSON.stringify(this.data.scheduleItem))}&repeatable=${this.data.repeatable}` }) dd.navigateTo({ url: `./../place/place?scheduleItem=${encodeURIComponent(JSON.stringify(scheduleItem))}&repeatable=${this.data.repeatable}` })
break break
case 'participantsDetail': case 'participantsDetail':
this.$store.data.updateInfo.updateType = 'operate_user' this.$store.data.updateInfo.updateType = 'operate_user'
this.update() this.update()
dd.navigateTo({ url: `./../participantsDetail/participantsDetail?scheduleItem=${encodeURIComponent(JSON.stringify(this.data.scheduleItem))}` }) dd.navigateTo({ url: `./../participantsDetail/participantsDetail?scheduleItem=${encodeURIComponent(JSON.stringify(scheduleItem))}` })
break break
} }
}, },
...@@ -510,7 +515,12 @@ create.Page({ ...@@ -510,7 +515,12 @@ create.Page({
this.setData({ this.setData({
popupShow: false popupShow: false
}) })
dd.navigateTo({ url: `./../outLookContact/outLookContact?scheduleItem=${JSON.stringify(this.data.scheduleItem)}` }) const scheduleItem = {
id: this.data.scheduleItem.id,
scheduleTemplateId: this.data.scheduleTemplateId,
planDate: this.data.planDate
}
dd.navigateTo({ url: `./../outLookContact/outLookContact?scheduleItem=${JSON.stringify(scheduleItem)}` })
break; break;
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment