This commit is contained in:
shijingjing
2023-04-03 16:12:37 +08:00
parent 878999c441
commit 0533937e25
2 changed files with 20 additions and 5 deletions

View File

@@ -57,9 +57,14 @@ export default {
list: [],
dictList: [],
flag: false,
id: '',
}
},
onLoad(o) {
if(o.id) {
this.id = o.id
this.getDetail()
}
this.$dict.load(['clapEventStatus'])
this.getType()
},
@@ -119,7 +124,17 @@ export default {
handleSelectGrid(v) {
this.form.girdName = v.girdName
this.form.girdId = v.girdId
}
},
getDetail() {
this.$instance.post(`/app/appintegraluserapply/queryDetailById?id=${this.id}`).then(res => {
if (res?.data) {
this.form = res.data
this.form.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.name.split('.')[1])))
this.form.videos = res.data.files.filter(e => (['mp4'].includes(e.name.split('.')[1])))
this.form.files = []
}
})
},
}
}
</script>
@@ -159,6 +174,7 @@ export default {
textarea {
padding: 24px 32px;
box-sizing: border-box;
width: 100%;
}
.tips {
@@ -173,7 +189,7 @@ export default {
text-align: left;
}
.upload {
padding: 24px 32px;
padding: 24px 32px 0 32px;
box-sizing: border-box;
}
}

View File

@@ -10,10 +10,10 @@
<image v-for="(img, i) in images" @click="preview(img.url,images)" :key="i" class="banner" :src="img.url"/>
</div>
<div class="imgs" v-if="videos.length">
<video v-for="(video, ins) in videos" :key="ins" class="file-img" :src="file.url"/>
<video v-for="(video, ins) in videos" :key="ins" class="file-img" :src="video.url"/>
</div>
<div class="refuse">
<div class="refuse" v-if="info.status == 2">
<p><span></span>未通过理由</p>
<div class="desc">{{ info.auditDesc }}</div>
</div>
@@ -109,7 +109,6 @@ export default {
width: 226px;
height: 226px;
margin: 0 4px 4px 0;
border-radius: 16px;
}
image:nth-child(3n + 0),
video:nth-child(3n + 0) {