diff --git a/src/project/saas/AppCooperationPropaganda/detail.vue b/src/project/saas/AppCooperationPropaganda/detail.vue
index f734eb8d..ede90097 100644
--- a/src/project/saas/AppCooperationPropaganda/detail.vue
+++ b/src/project/saas/AppCooperationPropaganda/detail.vue
@@ -38,12 +38,28 @@
群发内容
-
{{ content[0].content }}
-
-
+
+
{{ content[0].content }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
@@ -61,7 +77,11 @@ export default {
id: "",
data: {},
content: [],
- picList: []
+ picList: [],
+ videoList: [],
+ fileList: [],
+ webpage: [],
+ miniapp: [],
}
},
onLoad(o) {
@@ -72,14 +92,18 @@ export default {
this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> {
if (res?.data) {
this.data = res.data
- this.content = res.data.contents.map(v=> v.msgType == 0)
- this.picList = res.data.contents.map(e=> e.msgType == 1)
+ this.content = res.data.contents.filter(v=> v.msgType == 0)
+ this.picList = res.data.contents.filter(v=> v.msgType == 1)
+ this.videoList = res.data.contents.filter(v=> v.msgType == 2)
+ this.fileList = res.data.contents.filter(v=> v.msgType == 3)
+ this.webpage = res.data.contents.filter(v=> v.msgType == 4)
+ this.miniapp = res.data.contents.filter(v=> v.msgType == 5)
}
})
},
- previewImage(images, img) {
+ previewImages(images, img) {
uni.previewImage({
- urls: images.map(v => v.url),
+ urls: images.map(v => v.imgPicUrl),
current: img
})
},
@@ -184,12 +208,29 @@ export default {
color: #999;
margin-bottom: 26px;
}
- .textarea {
+ .textarea,
+ .pictures,
+ .video,
+ .file,
+ .webpage,
+ .miniapp {
background: #F9F9F9;
border-radius: 4px;
padding: 20px;
box-sizing: border-box;
}
+ .pictures {
+ margin-top: 16px;
+ image {
+ width: 190px;
+ height: 190px;
+ margin-right: 4px;
+ margin-bottom: 4px;
+ }
+ image:nth-child(3n) {
+ margin-right: 0;
+ }
+ }
}
}