Commit e22920a5 by xinla

修复 外链消息相关模块回显问题

1 parent 46c17fc4
...@@ -2,15 +2,12 @@ ...@@ -2,15 +2,12 @@
<div> <div>
<!-- 新建欢迎语 --> <!-- 新建欢迎语 -->
<el-row type="flex" justify="space-between"> <el-row type="flex" justify="space-between">
<el-col :span="!showPhone ? 24 : 16" :class="!showPhone ? 'mt10' : 'boxClass'" class="left radius"> <el-col :span="!showPhone ? 24 : 16" :class="!showPhone ? 'g-margin-t' : 'boxClass'" class="left radius">
<div class="g-card" v-if="showModle"> <div class="g-card" v-if="showModle">
<el-button type="primary" @click="welcomVisible = true">从模板库中选择</el-button> <el-button type="primary" @click="welcomVisible = true">从模板库中选择</el-button>
</div> </div>
<div class="g-card" v-if="!detail"> <div class="g-card" v-if="!detail">
<div <div class="g-card-title g-margin-b" v-if="iswelcom || (moduleType === 4 && otherType !== 3)">
class="g-card-title"
v-if="iswelcom || (moduleType === 4 && otherType !== 3)"
style="margin-bottom: 20px">
{{ titleOne }} {{ titleOne }}
<el-popover trigger="hover" content="最多发送1条文字信息" placement="top-start"> <el-popover trigger="hover" content="最多发送1条文字信息" placement="top-start">
<template #reference> <template #reference>
...@@ -129,7 +126,7 @@ ...@@ -129,7 +126,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="g-card" style="margin-top: 10px" v-if="talkList?.length"> <div class="g-card" v-if="talkList?.length">
<DragTable <DragTable
:tableData2="talkList" :tableData2="talkList"
@setData="setData" @setData="setData"
...@@ -358,18 +355,24 @@ export default { ...@@ -358,18 +355,24 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
isTransData: Boolean,
}, },
watch: { watch: {
baseData: { baseData: {
handler(val) { handler(val) {
val = JSON.parse(JSON.stringify(val))
if (val.templateInfo || val.attachments) { if (val.templateInfo || val.attachments) {
this.form.templateInfo = val.templateInfo ? val.templateInfo : '' this.isTransData && (val.attachments = this.setEditList(val.attachments))
this.form.templateInfo = val.templateInfo || ''
this.form.attachments = val.attachments this.form.attachments = val.attachments
this.talkForm = val
this.talkList = val.attachments
// this.$forceUpdate() // this.$forceUpdate()
if (this.otherType === 3 && this.detail) { // if (this.otherType === 3 && this.detail) {
this.talkForm = val // this.talkForm = val
this.talkList = val.attachments // this.talkList = val.attachments
} // }
} }
}, },
deep: true, deep: true,
...@@ -695,6 +698,72 @@ export default { ...@@ -695,6 +698,72 @@ export default {
} }
}) })
}, },
setEditList(list) {
let arr = []
if (list && list.length) {
list.forEach((dd) => {
let common = { id: dd.materialId, mediaType: dd.realType + '' }
let obj = undefined
if (dd.realType === 0) {
obj = {
materialUrl: dd.picUrl,
}
} else if (dd.realType === 2) {
obj = {
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
digest: dd.description,
materialName: dd.title,
}
} else if (dd.realType === 3) {
obj = {
materialUrl: dd.fileUrl,
digest: dd.description,
materialName: dd.title,
}
} else if (dd.realType === 4) {
obj = {
content: dd.content,
}
} else if ([9, 19].includes(dd.realType)) {
obj = {
content: dd.content,
coverUrl: dd.picUrl,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
} else if (dd.realType === 8) {
obj = {
materialName: dd.title,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
} else if (dd.realType === 11) {
obj = {
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
materialUrl: dd.fileUrl,
}
} else if (dd.realType === 12) {
obj = {
digest: dd.description,
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
content: dd.content,
materialName: dd.title,
}
} else if (dd.realType === 5) {
obj = {
materialUrl: dd.fileUrl,
materialName: dd.title,
}
}
obj && arr.push(Object.assign(common, obj))
})
}
return arr
},
dealOtherModleType(talkForm) { dealOtherModleType(talkForm) {
this.talkList.forEach((item) => { this.talkList.forEach((item) => {
let attachments = {} let attachments = {}
...@@ -846,11 +915,11 @@ export default { ...@@ -846,11 +915,11 @@ export default {
if (this.templateType != 1 && this.moduleType != 4) { if (this.templateType != 1 && this.moduleType != 4) {
this.getTree() this.getTree()
} }
if (this.form.templateInfo) { // if (this.form.templateInfo) {
// this.form.templateInfo = this.baseData.templateInfo // // this.form.templateInfo = this.baseData.templateInfo
this.talkForm = this.baseData // this.talkForm = this.baseData
this.talkList = this.baseData.attachments // this.talkList = this.baseData.attachments
} // }
this.dealType() this.dealType()
if (this.tplType == 3) { if (this.tplType == 3) {
this.maxlength = 1 this.maxlength = 1
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="item" v-for="(data, key) in list" :key="key"> <div class="item" v-for="(data, key) in list?.length ? list : data" :key="key">
<div class="avatar222"><img src="../../assets/drainageCode/header.png" /></div> <div class="avatar222"><img src="../../assets/drainageCode/header.png" /></div>
<div class="msg"> <div class="msg">
<!-- 文本 --> <!-- 文本 -->
...@@ -195,19 +195,21 @@ export default { ...@@ -195,19 +195,21 @@ export default {
type: Object, type: Object,
default: null, default: null,
}, },
originList: {
type: Array,
default: () => [],
},
}, },
watch: { watch: {},
// list: {
// handler(val) {
// // console.log(144, val)
// },
// immediate: true,
// },
},
data() { data() {
return {} return {}
}, },
computed: {}, computed: {
data() {
return this.setEditList(this.originList)
},
},
created() {}, created() {},
mounted() {}, mounted() {},
methods: { methods: {
...@@ -226,6 +228,72 @@ export default { ...@@ -226,6 +228,72 @@ export default {
return '' return ''
} }
}, },
setEditList(list) {
let arr = []
if (list && list.length) {
list.forEach((dd) => {
let common = { id: dd.materialId, mediaType: dd.realType + '' }
let obj = undefined
if (dd.realType === 0) {
obj = {
materialUrl: dd.picUrl,
}
} else if (dd.realType === 2) {
obj = {
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
digest: dd.description,
materialName: dd.title,
}
} else if (dd.realType === 3) {
obj = {
materialUrl: dd.fileUrl,
digest: dd.description,
materialName: dd.title,
}
} else if (dd.realType === 4) {
obj = {
content: dd.content,
}
} else if ([9, 19].includes(dd.realType)) {
obj = {
content: dd.content,
coverUrl: dd.picUrl,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
} else if (dd.realType === 8) {
obj = {
materialName: dd.title,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
} else if (dd.realType === 11) {
obj = {
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
materialUrl: dd.fileUrl,
}
} else if (dd.realType === 12) {
obj = {
digest: dd.description,
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
content: dd.content,
materialName: dd.title,
}
} else if (dd.realType === 5) {
obj = {
materialUrl: dd.fileUrl,
materialName: dd.title,
}
}
obj && arr.push(Object.assign(common, obj))
})
}
return arr
},
}, },
} }
</script> </script>
......
...@@ -229,6 +229,7 @@ ...@@ -229,6 +229,7 @@
@update="currentActive = 2" @update="currentActive = 2"
@submit="getWelData" @submit="getWelData"
:baseData="materialData" :baseData="materialData"
isTransData
:showModle="true"></AddMaterial> :showModle="true"></AddMaterial>
</div> </div>
...@@ -674,79 +675,13 @@ export default { ...@@ -674,79 +675,13 @@ export default {
} }
this.materialData = { this.materialData = {
templateInfo: base.qrAttachments ? base.qrAttachments[0].content : '', templateInfo: base.qrAttachments ? base.qrAttachments[0].content : '',
attachments: base.qrAttachments ? this.setEditList(base.qrAttachments) : [], attachments: base.qrAttachments || [],
} }
// this.materialData.materialMsgList.forEach(ddd => { // this.materialData.materialMsgList.forEach(ddd => {
// ddd.msgType = Number(ddd.msgType) // ddd.msgType = Number(ddd.msgType)
// }) // })
}) })
}, },
setEditList(list) {
let arr = []
if (list && list.length) {
list.forEach((dd) => {
let common = { id: dd.materialId, mediaType: dd.realType + '' }
let obj = undefined
if (dd.realType === 0) {
obj = {
materialUrl: dd.picUrl,
}
} else if (dd.realType === 2) {
obj = {
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
digest: dd.description,
materialName: dd.title,
}
} else if (dd.realType === 3) {
obj = {
materialUrl: dd.fileUrl,
digest: dd.description,
materialName: dd.title,
}
} else if (dd.realType === 4) {
obj = {
content: dd.content,
}
} else if ([9, 19].includes(dd.realType)) {
obj = {
content: dd.content,
coverUrl: dd.picUrl,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
} else if (dd.realType === 8) {
obj = {
materialName: dd.title,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
} else if (dd.realType === 11) {
obj = {
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
materialUrl: dd.fileUrl,
}
} else if (dd.realType === 12) {
obj = {
digest: dd.description,
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
content: dd.content,
materialName: dd.title,
}
} else if (dd.realType === 5) {
obj = {
materialUrl: dd.fileUrl,
materialName: dd.title,
}
}
obj && arr.push(Object.assign(common, obj))
})
}
return arr
},
// 获取活码分组 // 获取活码分组
getCodeCategoryList() { getCodeCategoryList() {
getCodeCategoryList({ mediaType: 6 }).then((res) => { getCodeCategoryList({ mediaType: 6 }).then((res) => {
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<template v-if="codeType === 1"> <template v-if="codeType === 1">
<preview-store-client :showGuide="true" name="专属门店导购" :value="form"></preview-store-client> <preview-store-client :showGuide="true" name="专属门店导购" :value="form"></preview-store-client>
<PreviewInPhone <PreviewInPhone
:list="materialData.attachments" :originList="materialData.attachments"
:templateInfo="materialData.welcomeMsg" :templateInfo="materialData.welcomeMsg"
:liveUrl="liveUrl" /> :liveUrl="liveUrl" />
</template> </template>
...@@ -156,95 +156,6 @@ export default { ...@@ -156,95 +156,6 @@ export default {
} }
}) })
}, },
setEditList(list) {
let arr = []
if (list && list.length) {
list.forEach((dd) => {
if (dd.realType === 0) {
let obj = {
id: dd.materialId,
mediaType: '0',
materialUrl: dd.picUrl,
}
arr.push(obj)
} else if (dd.realType === 2) {
let obj = {
id: dd.materialId,
mediaType: '2',
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 3) {
let obj = {
id: dd.materialId,
mediaType: '3',
materialUrl: dd.fileUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 4) {
let obj = {
id: dd.materialId,
mediaType: '4',
content: dd.content,
}
arr.push(obj)
} else if (dd.realType === 9) {
let obj = {
id: dd.materialId,
mediaType: '9',
content: dd.content,
coverUrl: dd.picUrl,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 8) {
let ob = {
id: dd.materialId,
mediaType: '8',
materialName: dd.title,
materialUrl: dd.linkUrl,
}
arr.push(ob)
} else if (dd.realType === 11) {
let ff = {
id: dd.materialId,
mediaType: '11',
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
materialUrl: dd.fileUrl,
}
arr.push(ff)
} else if (dd.realType === 12) {
let ff = {
id: dd.materialId,
mediaType: '12',
digest: dd.description,
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
content: dd.content,
materialName: dd.title,
}
arr.push(ff)
} else if (dd.realType === 5) {
let obj = {
id: dd.materialId,
mediaType: '5',
materialUrl: dd.picUrl,
materialName: dd.title,
}
arr.push(obj)
}
})
}
return arr
},
init() { init() {
getCode(this.codeType).then((res) => { getCode(this.codeType).then((res) => {
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
...@@ -259,7 +170,7 @@ export default { ...@@ -259,7 +170,7 @@ export default {
if (this.form.weQrAttachments && this.form.weQrAttachments.length) { if (this.form.weQrAttachments && this.form.weQrAttachments.length) {
this.materialData = { this.materialData = {
welcomeMsg: this.form.weQrAttachments ? this.form.weQrAttachments[0].content : '', welcomeMsg: this.form.weQrAttachments ? this.form.weQrAttachments[0].content : '',
attachments: this.form.weQrAttachments ? this.setEditList(this.form.weQrAttachments) : [], attachments: this.form.weQrAttachments,
} }
} }
if (this.form.tagIds) { if (this.form.tagIds) {
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
@update="currentActive = 1" @update="currentActive = 1"
@submit="getWelData" @submit="getWelData"
:baseData="materialData" :baseData="materialData"
isTransData
:showModle="true"></AddMaterial> :showModle="true"></AddMaterial>
</template> </template>
<SelectUser <SelectUser
...@@ -251,95 +252,6 @@ export default { ...@@ -251,95 +252,6 @@ export default {
this.loading = false this.loading = false
}) })
}, },
setEditList(list) {
let arr = []
if (list && list.length) {
list.forEach((dd) => {
if (dd.realType === 0) {
let obj = {
id: dd.materialId,
mediaType: '0',
materialUrl: dd.picUrl,
}
arr.push(obj)
} else if (dd.realType === 2) {
let obj = {
id: dd.materialId,
mediaType: '2',
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 3) {
let obj = {
id: dd.materialId,
mediaType: '3',
materialUrl: dd.fileUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 4) {
let obj = {
id: dd.materialId,
mediaType: '4',
content: dd.content,
}
arr.push(obj)
} else if (dd.realType === 9) {
let obj = {
id: dd.materialId,
mediaType: '9',
content: dd.content,
coverUrl: dd.picUrl,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 8) {
let ob = {
id: dd.materialId,
mediaType: '8',
materialName: dd.title,
materialUrl: dd.linkUrl,
}
arr.push(ob)
} else if (dd.realType === 11) {
let ff = {
id: dd.materialId,
mediaType: '11',
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
materialUrl: dd.fileUrl,
}
arr.push(ff)
} else if (dd.realType === 12) {
let ff = {
id: dd.materialId,
mediaType: '12',
digest: dd.description,
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
content: dd.content,
materialName: dd.title,
}
arr.push(ff)
} else if (dd.realType === 5) {
let obj = {
id: dd.materialId,
mediaType: '5',
materialUrl: dd.picUrl,
materialName: dd.title,
}
arr.push(obj)
}
})
}
return arr
},
init() { init() {
getCode(1).then((res) => { getCode(1).then((res) => {
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
...@@ -353,7 +265,7 @@ export default { ...@@ -353,7 +265,7 @@ export default {
} }
this.materialData = { this.materialData = {
templateInfo: this.form.weQrAttachments ? this.form.weQrAttachments[0].content : '', templateInfo: this.form.weQrAttachments ? this.form.weQrAttachments[0].content : '',
attachments: this.form.weQrAttachments ? this.setEditList(this.form.weQrAttachments) : [], attachments: this.form.weQrAttachments,
} }
if (this.form.tagIds) { if (this.form.tagIds) {
this.selectedTagList = [] this.selectedTagList = []
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
</div> </div>
</div> </div>
<div class="g-card" style="width: 425px; margin-top: 0"> <div class="g-card" style="width: 425px; margin-top: 0">
<PreviewInPhone :templateInfo="form.welcomeMsg" :list="form.materialMsgList"></PreviewInPhone> <PreviewInPhone :templateInfo="form.welcomeMsg" :originList="form.materialMsgList"></PreviewInPhone>
</div> </div>
</div> </div>
</div> </div>
...@@ -284,124 +284,6 @@ export default { ...@@ -284,124 +284,6 @@ export default {
this.queryMember.pageNum = e.page this.queryMember.pageNum = e.page
this.getMemberList() this.getMemberList()
}, },
setEditList(list) {
// let arr = []
// if (list && list.length) {
// list.forEach(dd => {
// if (dd.msgType === 'image') {
// let obj = {
// msgType: '0',
// materialUrl: dd.picUrl
// }
// arr.push(obj)
// } else if (dd.msgType === 'link') {
// let ob = {
// msgType: '8',
// materialName: dd.title,
// materialUrl: dd.linkUrl
// }
// arr.push(ob)
// } else if (dd.msgType === 'miniprogram') {
// let ff = {
// msgType: '9',
// digest: dd.appId,
// materialName: dd.title,
// coverUrl: dd.picUrl,
// materialUrl: dd.linkUrl
// }
// arr.push(ff)
// }
// })
// }
// return arr
let arr = []
if (list && list.length) {
list.forEach((dd) => {
if (dd.realType === 0) {
let obj = {
id: dd.materialId,
mediaType: '0',
materialUrl: dd.picUrl,
}
arr.push(obj)
} else if (dd.realType === 2) {
let obj = {
id: dd.materialId,
mediaType: '2',
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 3) {
let obj = {
id: dd.materialId,
mediaType: '3',
materialUrl: dd.fileUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 4) {
let obj = {
id: dd.materialId,
mediaType: '4',
content: dd.content,
}
arr.push(obj)
} else if (dd.realType === 9) {
let obj = {
id: dd.materialId,
mediaType: '9',
content: dd.content,
coverUrl: dd.picUrl,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 8) {
let ob = {
id: dd.materialId,
mediaType: '8',
materialName: dd.title,
materialUrl: dd.linkUrl,
}
arr.push(ob)
} else if (dd.realType === 11) {
let ff = {
id: dd.materialId,
mediaType: '11',
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
materialUrl: dd.fileUrl,
}
arr.push(ff)
} else if (dd.realType === 12) {
let ff = {
id: dd.materialId,
mediaType: '12',
digest: dd.description,
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
content: dd.content,
materialName: dd.title,
}
arr.push(ff)
} else if (dd.realType === 5) {
let obj = {
id: dd.materialId,
mediaType: '5',
materialUrl: dd.fileUrl,
materialName: dd.title,
}
arr.push(obj)
}
})
}
return arr
},
getDetail() { getDetail() {
getDetail(this.msgId).then((res) => { getDetail(this.msgId).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -409,7 +291,7 @@ export default { ...@@ -409,7 +291,7 @@ export default {
this.form.welcomeMsg = res.data.content this.form.welcomeMsg = res.data.content
// this.form.materialMsgList = res.data.attachments // this.form.materialMsgList = res.data.attachments
// this.form.welcomeMsg = res.data.attachments ? res.data.attachments[0].content : '', // this.form.welcomeMsg = res.data.attachments ? res.data.attachments[0].content : '',
this.form.materialMsgList = res.data.attachments ? this.setEditList(res.data.attachments) : [] this.form.materialMsgList = res.data.attachments || []
// this.$forceUpdate() // this.$forceUpdate()
} else { } else {
this.msgError(res.msg || '获取失败') this.msgError(res.msg || '获取失败')
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
<div class="g-card" style="width: 425px; margin-top: 0"> <div class="g-card" style="width: 425px; margin-top: 0">
<PreviewInPhone <PreviewInPhone
:templateInfo="templateInfo" :templateInfo="templateInfo"
:list="topData.weLiveAttachments" :originList="topData.weLiveAttachments"
:liveUrl="topData.shareOrJoinUrl" /> :liveUrl="topData.shareOrJoinUrl" />
</div> </div>
</div> </div>
...@@ -348,7 +348,7 @@ export default { ...@@ -348,7 +348,7 @@ export default {
this.getList() this.getList()
this.getFirstList() this.getFirstList()
this.templateInfo = res.data.weLiveAttachments[0].content this.templateInfo = res.data.weLiveAttachments[0].content
this.topData.weLiveAttachments = this.setEditList(res.data.weLiveAttachments) this.topData.weLiveAttachments = res.data.weLiveAttachments
this.topData.sendWeuserNames = res.data.sendWeuserNames this.topData.sendWeuserNames = res.data.sendWeuserNames
? res.data.sendWeuserNames.split(',') ? res.data.sendWeuserNames.split(',')
: res.data.sendWeuserNames : res.data.sendWeuserNames
...@@ -368,96 +368,6 @@ export default { ...@@ -368,96 +368,6 @@ export default {
return arr return arr
} }
}, },
setEditList(list) {
let arr = []
if (list && list.length) {
list.forEach((dd) => {
if (dd.realType === 0) {
let obj = {
id: dd.materialId,
mediaType: '0',
materialUrl: dd.picUrl,
}
arr.push(obj)
} else if (dd.realType === 2) {
let obj = {
id: dd.materialId,
mediaType: '2',
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 3) {
let obj = {
id: dd.materialId,
mediaType: '3',
materialUrl: dd.fileUrl,
digest: dd.description,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 4) {
let obj = {
id: dd.materialId,
mediaType: '4',
content: dd.content,
}
arr.push(obj)
} else if (dd.realType === 9) {
let obj = {
id: dd.materialId,
mediaType: '9',
content: dd.content,
coverUrl: dd.picUrl,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
arr.push(obj)
} else if (dd.realType === 8) {
let ob = {
id: dd.materialId,
mediaType: '8',
materialName: dd.title,
materialUrl: dd.linkUrl,
materialName: dd.title,
}
arr.push(ob)
} else if (dd.realType === 11) {
let ff = {
id: dd.materialId,
mediaType: '11',
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
materialUrl: dd.fileUrl,
}
arr.push(ff)
} else if (dd.realType === 12) {
let ff = {
id: dd.materialId,
mediaType: '12',
digest: dd.description,
materialUrl: dd.fileUrl,
coverUrl: dd.picUrl,
content: dd.content,
materialName: dd.title,
}
arr.push(ff)
} else if (dd.realType === 5) {
let obj = {
id: dd.materialId,
mediaType: '5',
materialUrl: dd.fileUrl,
materialName: dd.title,
}
arr.push(obj)
}
})
}
return arr
},
/** 查询 */ /** 查询 */
getFirstList(page) { getFirstList(page) {
page && (this.firstQuery.pageNum = page) page && (this.firstQuery.pageNum = page)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!