Commit 647a9fe2 by 怪兽?别跑

裂变详情海报回显问题修复

1 parent a5e23d92
...@@ -36,11 +36,7 @@ ...@@ -36,11 +36,7 @@
</el-col> </el-col>
<el-col style="flex-basis: 370px;"> <el-col style="flex-basis: 370px;">
<div class="g-card"> <div class="g-card">
<PreviewInPhone <PreviewInPhone name="客群" :list="[news]" :templateInfo="form.content"></PreviewInPhone>
name="客群"
:list="form.wematerial && [form.wematerial]"
:templateInfo="form.content"
></PreviewInPhone>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -119,7 +115,13 @@ ...@@ -119,7 +115,13 @@
{ name: '进行中', key: 2 }, { name: '进行中', key: 2 },
{ name: '已结束', key: 3 }, { name: '已结束', key: 3 },
{ name: '已暂停', key: 4 } { name: '已暂停', key: 4 }
] ],
news: {
materialName: '',
digest: '',
coverUrl: '',
mediaType: '12'
}
} }
}, },
methods: { methods: {
...@@ -137,6 +139,13 @@ ...@@ -137,6 +139,13 @@
if (this.$route.query.id) { if (this.$route.query.id) {
getFassionDetail(this.$route.query.id).then((res) => { getFassionDetail(this.$route.query.id).then((res) => {
this.form = res.data this.form = res.data
this.news.digest = this.form.activeDescr
this.news.materialName = this.form.activeTitle
if (this.form.activeCoverType == 2) {
this.news.coverUrl = this.form.activeCoverUrl
} else {
this.news.coverUrl = this.form.wematerial.materialUrl
}
}) })
} }
} }
......
...@@ -36,10 +36,7 @@ ...@@ -36,10 +36,7 @@
</el-col> </el-col>
<el-col style="flex-basis: 370px;"> <el-col style="flex-basis: 370px;">
<div class="g-card"> <div class="g-card">
<PreviewInPhone <PreviewInPhone :list="[news]" :templateInfo="form.content"></PreviewInPhone>
:list="form.wematerial && [form.wematerial]"
:templateInfo="form.content"
></PreviewInPhone>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -119,7 +116,13 @@ ...@@ -119,7 +116,13 @@
{ name: '进行中', key: 2 }, { name: '进行中', key: 2 },
{ name: '已结束', key: 3 }, { name: '已结束', key: 3 },
{ name: '已暂停', key: 4 } { name: '已暂停', key: 4 }
] ],
news: {
materialName: '',
digest: '',
coverUrl: '',
mediaType: '12'
}
} }
}, },
methods: { methods: {
...@@ -137,6 +140,13 @@ ...@@ -137,6 +140,13 @@
if (this.$route.query.id) { if (this.$route.query.id) {
getFassionDetail(this.$route.query.id).then((res) => { getFassionDetail(this.$route.query.id).then((res) => {
this.form = res.data this.form = res.data
this.news.digest = this.form.activeDescr
this.news.materialName = this.form.activeTitle
if (this.form.activeCoverType == 2) {
this.news.coverUrl = this.form.activeCoverUrl
} else {
this.news.coverUrl = this.form.wematerial.materialUrl
}
}) })
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!