This commit is contained in:
花有清香月有阴
2021-12-24 14:30:38 +08:00
parent c2437cfa36
commit d57ac50201

View File

@@ -97,7 +97,7 @@ export default {
},
computed: { ...mapState(['user']) },
onLoad(o) {
document.title = '发布活动'
document.title = '发布活动'
this.id = o.id ? o.id : ''
this.$dict.load('realityStatus').then(() => {
this.areaId = this.user.areaId
@@ -105,6 +105,7 @@ export default {
this.user.phone = this.forms.contactPhone
this.user.name = this.forms.contactPerson
this.getDetail()
})
},
@@ -113,12 +114,12 @@ export default {
getDetail() {
this.$http.post(`/app/appvillageactivityinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) {
// this.detail = res.data
// if (this.detail) {
// if (this.detail.url) {
// this.detail.url = JSON.parse(res.data.url || '[]')
// }
// }
this.forms = res.data
if (res.data) {
if (res.data.url) {
this.forms.url = JSON.parse(res.data.url || '[]')
}
}
}
})
},