This commit is contained in:
花有清香月有阴
2021-12-22 09:44:40 +08:00
parent 98a617926e
commit d36c1add6c
3 changed files with 48 additions and 21 deletions

View File

@@ -58,14 +58,16 @@ export default {
mounted() {},
methods: {
getDetail() {
this.$http.post(`/app/appmininotice/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) {
this.forms = res.data
if (res.data.images) {
this.forms.images = JSON.parse(res.data.images || '[]')
if (this.id) {
this.$http.post(`/app/appmininotice/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) {
this.forms = res.data
if (res.data.images) {
this.forms.images = JSON.parse(res.data.images || '[]')
}
}
}
})
})
}
},
submit() {
@@ -113,11 +115,14 @@ export default {
</script>
<style lang="scss" scoped>
uni-page-body {
height: 100%;
}
.add {
height: 100%;
padding-bottom: 112px;
.header-description {
padding-bottom: 112px;
::v-deep .u-form {
.u-form-item {
padding: 0 45px !important;