Commit 8ed8f7ed by xinla

活码外链回显问题等

1 parent 1006b752
...@@ -690,88 +690,64 @@ export default { ...@@ -690,88 +690,64 @@ export default {
let arr = [] let arr = []
if (list && list.length) { if (list && list.length) {
list.forEach((dd) => { list.forEach((dd) => {
let common = { id: dd.materialId, mediaType: dd.realType + '' }
let obj = undefined
if (dd.realType === 0) { if (dd.realType === 0) {
let obj = { obj = {
id: dd.materialId,
mediaType: '0',
materialUrl: dd.picUrl, materialUrl: dd.picUrl,
} }
arr.push(obj)
} else if (dd.realType === 2) { } else if (dd.realType === 2) {
let obj = { obj = {
id: dd.materialId,
mediaType: '2',
materialUrl: dd.fileUrl, materialUrl: dd.fileUrl,
coverUrl: dd.picUrl, coverUrl: dd.picUrl,
digest: dd.description, digest: dd.description,
materialName: dd.title, materialName: dd.title,
} }
arr.push(obj)
} else if (dd.realType === 3) { } else if (dd.realType === 3) {
let obj = { obj = {
id: dd.materialId,
mediaType: '3',
materialUrl: dd.fileUrl, materialUrl: dd.fileUrl,
digest: dd.description, digest: dd.description,
materialName: dd.title, materialName: dd.title,
} }
arr.push(obj)
} else if (dd.realType === 4) { } else if (dd.realType === 4) {
let obj = { obj = {
id: dd.materialId,
mediaType: '4',
content: dd.content, content: dd.content,
} }
arr.push(obj) } else if ([9, 19].includes(dd.realType)) {
} else if (dd.realType === 9) { obj = {
let obj = {
id: dd.materialId,
mediaType: '9',
content: dd.content, content: dd.content,
coverUrl: dd.picUrl, coverUrl: dd.picUrl,
materialUrl: dd.linkUrl, materialUrl: dd.linkUrl,
materialName: dd.title, materialName: dd.title,
} }
arr.push(obj)
} else if (dd.realType === 8) { } else if (dd.realType === 8) {
let ob = { obj = {
id: dd.materialId,
mediaType: '8',
materialName: dd.title, materialName: dd.title,
materialUrl: dd.linkUrl, materialUrl: dd.linkUrl,
materialName: dd.title, materialName: dd.title,
} }
arr.push(ob)
} else if (dd.realType === 11) { } else if (dd.realType === 11) {
let ff = { obj = {
id: dd.materialId,
mediaType: '11',
digest: dd.appId, digest: dd.appId,
materialName: dd.title, materialName: dd.title,
coverUrl: dd.picUrl, coverUrl: dd.picUrl,
materialUrl: dd.fileUrl, materialUrl: dd.fileUrl,
} }
arr.push(ff)
} else if (dd.realType === 12) { } else if (dd.realType === 12) {
let ff = { obj = {
id: dd.materialId,
mediaType: '12',
digest: dd.description, digest: dd.description,
materialUrl: dd.fileUrl, materialUrl: dd.fileUrl,
coverUrl: dd.picUrl, coverUrl: dd.picUrl,
content: dd.content, content: dd.content,
materialName: dd.title, materialName: dd.title,
} }
arr.push(ff)
} else if (dd.realType === 5) { } else if (dd.realType === 5) {
let obj = { obj = {
id: dd.materialId,
mediaType: '5',
materialUrl: dd.fileUrl, materialUrl: dd.fileUrl,
materialName: dd.title, materialName: dd.title,
} }
arr.push(obj)
} }
obj && arr.push(Object.assign(common, obj))
}) })
} }
return arr return arr
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
<div class="step-text"> <div class="step-text">
请确保扫码并成功授权后点击 请确保扫码并成功授权后点击
<el-popover ref="popover1" placement="right" width="" trigger="hover"> <el-popover ref="popover1" placement="right" width="" trigger="hover">
<img class="auth-desc-img" src="@/assets/register/auth-desc-1.png" alt="" /> <!-- <img class="auth-desc-img" src="@/assets/register/auth-desc-1.png" alt="" /> -->
<template #reference> <template #reference>
<el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled> <el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled>
</template> </template>
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
<li> <li>
请使用管理员的企业微信进行授权; 请使用管理员的企业微信进行授权;
<el-popover ref="popover1" placement="right" width="" trigger="hover"> <el-popover ref="popover1" placement="right" width="" trigger="hover">
<img class="auth-desc-img" src="@/assets/register/auth-desc-1.png" alt="" /> <!-- <img class="auth-desc-img" src="@/assets/register/auth-desc-1.png" alt="" /> -->
<template #reference> <template #reference>
<el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled> <el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled>
</template> </template>
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
<div class="step-text"> <div class="step-text">
已收到上线通知 已收到上线通知
<el-popover ref="popover1" placement="right" width="" trigger="hover"> <el-popover ref="popover1" placement="right" width="" trigger="hover">
<img class="auth-desc-img" src="@/assets/register/auth-desc-2.png" alt="" /> <!-- <img class="auth-desc-img" src="@/assets/register/auth-desc-2.png" alt="" /> -->
<template #reference> <template #reference>
<el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled> <el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled>
</template> </template>
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
<li> <li>
配置过程中您将会收到权限变更通知,请点击确认授权; 配置过程中您将会收到权限变更通知,请点击确认授权;
<el-popover ref="popover1" placement="right" width="" trigger="hover"> <el-popover ref="popover1" placement="right" width="" trigger="hover">
<img class="auth-desc-img" src="@/assets/register/auth-desc-3.png" alt="" /> <!-- <img class="auth-desc-img" src="@/assets/register/auth-desc-3.png" alt="" /> -->
<template #reference> <template #reference>
<el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled> <el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled>
</template> </template>
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
<li> <li>
应用配置完成后,您将会收到代开发应用上线通知,快登录体验吧; 应用配置完成后,您将会收到代开发应用上线通知,快登录体验吧;
<el-popover ref="popover1" placement="right" width="" trigger="hover"> <el-popover ref="popover1" placement="right" width="" trigger="hover">
<img class="auth-desc-img" src="@/assets/register/auth-desc-2.png" alt="" /> <!-- <img class="auth-desc-img" src="@/assets/register/auth-desc-2.png" alt="" /> -->
<template #reference> <template #reference>
<el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled> <el-icon-QuestionFilled class="el-icon-QuestionFilled"></el-icon-QuestionFilled>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!