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;

View File

@@ -19,7 +19,9 @@
<span>{{ item.createTime }}</span>
</div>
<img :src="items.url" alt="" v-for="(items, i) in item.images" :key="i" />
<div class="imgs">
<img :src="items.url" alt="" v-for="(items, i) in item.images" :key="i" />
</div>
</template>
<template #menu>
@@ -149,6 +151,9 @@ export default {
</script>
<style scoped lang="scss">
uni-page-body {
height: 100%;
}
.AppUniMsg {
height: 100%;
::v-deep .AiCard {
@@ -163,13 +168,16 @@ export default {
color: #333;
font-family: 500;
}
img {
width: 200px;
height: 200px;
margin-right: 8px;
}
img:nth-child(3n) {
margin-right: 0;
.imgs {
margin-top: 10px;
img {
width: 200px;
height: 200px;
margin-right: 8px;
}
img:nth-child(3n) {
margin-right: 0;
}
}
}
}
@@ -189,6 +197,12 @@ export default {
}
}
.u-load-more-wrap {
background: #f3f6f9 !important;
margin: 0 !important;
padding: 34px 0;
}
.AiFixedBtn {
.movableArea {
.addBtn {

View File

@@ -12,7 +12,9 @@
<div class="header-middle">
<span class="contsnts">{{ data.content }}</span>
<img :src="item.url" alt="" v-for="(item, i) in data.images" :key="i" />
<div class="imgs">
<img :src="item.url" alt="" v-for="(item, i) in data.images" :key="i" />
</div>
</div>
</div>
</template>
@@ -82,10 +84,16 @@ uni-page-body {
line-height: 1.5;
word-break: break-all;
}
img {
margin-top: 30px;
width: 686px;
height: 486px;
.imgs {
margin-top: 32px;
img {
width: 224px;
height: 218px;
margin-right: 8px;
}
img:nth-child(3n) {
margin-right: 0;
}
}
}
}