diff --git a/src/apps/AppCooperationPropaganda/detail.vue b/src/apps/AppCooperationPropaganda/detail.vue index d3b83dd5..9d2c29f5 100644 --- a/src/apps/AppCooperationPropaganda/detail.vue +++ b/src/apps/AppCooperationPropaganda/detail.vue @@ -79,8 +79,6 @@ - -
审核拒绝
审核通过
diff --git a/src/apps/AppCooperationPropaganda/massDispatch.vue b/src/apps/AppCooperationPropaganda/massDispatch.vue index 54a3208e..7f712257 100644 --- a/src/apps/AppCooperationPropaganda/massDispatch.vue +++ b/src/apps/AppCooperationPropaganda/massDispatch.vue @@ -107,6 +107,7 @@ export default { } }, onLoad(o) { + console.log(o) this.id = o.id }, computed: { @@ -141,8 +142,80 @@ export default { this.$hideLoading() }) }, + + + + + // msgtype: "miniprogram", // 消息类型,必填 + // miniprogram: { + // appid: "", // 小程序的appid + // title: "", // 小程序消息的title + // imgUrl : "", //小程序消息的封面图。必须带http或者https协议头 + // page: "", //小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面 + // }, + // }, + + // { + // msgtype: "file", // 消息类型,必填,从3.1.12版本开始支持 + // file:{ + // mediaid:"", // 文件的素材id,必填 + // }, + // }, + toSend() { - this.shareToExternalChat({}) + // 文本 + const text = { + content: this.content + } + const attachments = [] + // 图片 + const imgs = this.picList.map(v =>{ + return { + msgtype: "image", + image: { + mediaid: v.mediaId, + imgUrl: v.imgPicUrl, + }, + } + }) + attachments.push(imgs) + // 视频 + const videos = this.videoList.map(v =>{ + return { + msgtype: "video", + video:{ + mediaid: v.mediaId, + }, + } + }) + attachments.push(videos) + // 文件 + const files = this.fileList.map(v => { + return { + msgtype: "file", + file:{ + mediaid: v.mediaId, + }, + } + }) + attachments.push(files) + + // 链接 + // const links = this.webpage.map(v =>{ + // return { + // msgtype: "link", // 消息类型,必填 + // link: { + // title: "", // H5消息标题 + // imgUrl: "", // H5消息封面图片URL + // desc: "", // H5消息摘要 + // url: "", // H5消息页面url 必填 + // }, + // } + // }) + + + + this.shareToExternalChat({ ...text, ...data }) }, }, onShow() {