Commit cee43ac5 by 匡雅琴

修改类型

1 parent 0c837071
...@@ -84,7 +84,9 @@ ...@@ -84,7 +84,9 @@
<div slot="materialType" slot-scope="scope"> <div slot="materialType" slot-scope="scope">
<span v-if="scope.scope.materialType == 1">pdf文件</span> <span v-if="scope.scope.materialType == 1">pdf文件</span>
<span v-if="scope.scope.materialType == 2">自定义链接</span> <span v-if="scope.scope.materialType == 2">自定义链接</span>
<span v-if="scope.scope.materialType == 3">图文</span> <span v-if="scope.scope.urlType == 'video'">视频</span>
<span v-if="scope.scope.urlType == 'img'">图文</span>
<span v-if="!scope.scope.urlType && scope.scope.materialType == 3">纯文字</span>
</div> </div>
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
...@@ -524,8 +526,6 @@ export default { ...@@ -524,8 +526,6 @@ export default {
item.materialContentRpcResponse.materialUrl = imgSrc[1] item.materialContentRpcResponse.materialUrl = imgSrc[1]
item.urlType = 'img' item.urlType = 'img'
item.imgCount = imgHtml.length item.imgCount = imgHtml.length
} else {
item.materialContentRpcResponse.materialUrl = ''
} }
if (videoHtml) { if (videoHtml) {
let videoSrc = videoHtml[0].match('<video[^<>]*? src="([^<>]*?)"') let videoSrc = videoHtml[0].match('<video[^<>]*? src="([^<>]*?)"')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!