Commit ce8ee09b by 前端

修复营销素材提交bug

1 parent 61ca3fdd
...@@ -339,7 +339,7 @@ export default { ...@@ -339,7 +339,7 @@ export default {
// 获取全部素材组 // 获取全部素材组
getMaterialList(params) { getMaterialList(params) {
this.$apis.material.getMaterialList(params).then(res => { this.$apis.material.getMaterialList(params).then(res => {
this.groupCounter = res this.groupCounter = res || []
}) })
}, },
selectChange(val) { selectChange(val) {
...@@ -470,7 +470,7 @@ export default { ...@@ -470,7 +470,7 @@ export default {
if (!imgHtml && !videoHtml) params.materialType = 5 if (!imgHtml && !videoHtml) params.materialType = 5
if (imgHtml && imgHtml.length && !videoHtml && !html.length) params.materialType = 6 if (imgHtml && imgHtml.length && !videoHtml && !html.length) params.materialType = 6
if (this.materialAddForm.vedioUrl && !this.materialAddForm.imageUrlList.length) params.materialType = 4 if (this.materialAddForm.vedioUrl && !this.materialAddForm.imageUrlList.length) params.materialType = 4
if (this.materialAddForm.imageUrlList.length) params.materialType = 3 if (this.materialAddForm.imageUrlList && this.materialAddForm.imageUrlList.length ) params.materialType = 3
this.textBoxContent = encodeURIComponent(this.textBoxContent) this.textBoxContent = encodeURIComponent(this.textBoxContent)
params.materialUrl = this.textBoxContent params.materialUrl = this.textBoxContent
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!