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