协同宣发
This commit is contained in:
@@ -79,8 +79,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button @click="toMassDispatch">跳转群发</button>
|
|
||||||
|
|
||||||
<div class="btn" v-if="data.status==0 && data.haveExaminPower">
|
<div class="btn" v-if="data.status==0 && data.haveExaminPower">
|
||||||
<div class="refuse" @click="refuseBtn">审核拒绝</div>
|
<div class="refuse" @click="refuseBtn">审核拒绝</div>
|
||||||
<div class="pass" @click="passBtn">审核通过</div>
|
<div class="pass" @click="passBtn">审核通过</div>
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(o) {
|
onLoad(o) {
|
||||||
|
console.log(o)
|
||||||
this.id = o.id
|
this.id = o.id
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -141,8 +142,80 @@ export default {
|
|||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// msgtype: "miniprogram", // 消息类型,必填
|
||||||
|
// miniprogram: {
|
||||||
|
// appid: "", // 小程序的appid
|
||||||
|
// title: "", // 小程序消息的title
|
||||||
|
// imgUrl : "", //小程序消息的封面图。必须带http或者https协议头
|
||||||
|
// page: "", //小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
|
||||||
|
// {
|
||||||
|
// msgtype: "file", // 消息类型,必填,从3.1.12版本开始支持
|
||||||
|
// file:{
|
||||||
|
// mediaid:"", // 文件的素材id,必填
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
|
||||||
toSend() {
|
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() {
|
onShow() {
|
||||||
|
|||||||
Reference in New Issue
Block a user