Commit 450ecae9 authored by your yuchenglong's avatar your yuchenglong

update:发布拼单报错问题

parent 12ba2c1a
...@@ -91,8 +91,11 @@ export default { ...@@ -91,8 +91,11 @@ export default {
// 获取营销活动详情 // 获取营销活动详情
marketingInfoMet() { marketingInfoMet() {
console.log(); let marketingId = this.$route.query.marketing_id;
this.propData = JSON.parse(localStorage.getItem('propData')); if (marketingId == undefined) {
return;
}
this.propData = JSON.parse(localStorage.getItem("propData"));
this.infoEditForm.title = this.propData.marketing_name; this.infoEditForm.title = this.propData.marketing_name;
this.infoEditForm.desc = this.propData.pindan_desc; this.infoEditForm.desc = this.propData.pindan_desc;
for (var i in this.propData.pindan_pic_url) { for (var i in this.propData.pindan_pic_url) {
...@@ -109,7 +112,7 @@ export default { ...@@ -109,7 +112,7 @@ export default {
if (marketingId == undefined) { if (marketingId == undefined) {
return; return;
} }
localStorage.setItem('propData',JSON.stringify(newVal)); localStorage.setItem("propData", JSON.stringify(newVal));
}, },
}, },
......
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