|
@@ -240,14 +240,14 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<a-form-item label="">
|
|
|
- <a @click="getVideoList('image', index, item, bestIndex)">选择封面</a>
|
|
|
+ <a @click="getVideoList('image', index, item, bestIndex,'postAdList')">选择封面</a>
|
|
|
<a @click="uploadImages(index,bestIndex,item,'postAdList')" style="margin-left:10px">上传封面</a>
|
|
|
<a @click="showImages(index,bestIndex)" v-if="item.chouzhenShow"
|
|
|
style="margin-left:10px">推荐封面</a>
|
|
|
<br />
|
|
|
<span v-for="(item,deleteIndex) of item.imageList" style="position:relative;">
|
|
|
<img :src="item.url" style="width:18%;margin:1%;" :key="item.url" />
|
|
|
- <a-icon type="close-circle" @click="deleteData(index,bestIndex,deleteIndex)"
|
|
|
+ <a-icon type="close-circle" @click="deleteData(index,bestIndex,deleteIndex,'postAdList')"
|
|
|
style="position: absolute;right: 0px;" />
|
|
|
</span>
|
|
|
|
|
@@ -1063,17 +1063,30 @@
|
|
|
})
|
|
|
} else {
|
|
|
// this.pans[index].list[item.key].imageList.push(...item.image)
|
|
|
-
|
|
|
- if (item.image.length + this.contentAll > 15) {
|
|
|
- this.$message.error('当前选择封面' + item.image.length + '张,最多可选择' + (15 - this.contentAll) + '张')
|
|
|
- return
|
|
|
- } else {
|
|
|
- this.pans[index].list[item.key].imageList.push(...item.image)
|
|
|
- this.chouzhen = false
|
|
|
- this.chouzhenList = []
|
|
|
- this.checkList = []
|
|
|
- this.checkAll = false
|
|
|
+ if(this.creativeMaterialType == '4'){
|
|
|
+ if (item.image.length + this.contentAll > 15) {
|
|
|
+ this.$message.error('当前选择封面' + item.image.length + '张,最多可选择' + (15 - this.contentAll) + '张')
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ this.pans[index].postAdList[item.key].imageList.push(...item.image)
|
|
|
+ this.chouzhen = false
|
|
|
+ this.chouzhenList = []
|
|
|
+ this.checkList = []
|
|
|
+ this.checkAll = false
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (item.image.length + this.contentAll > 15) {
|
|
|
+ this.$message.error('当前选择封面' + item.image.length + '张,最多可选择' + (15 - this.contentAll) + '张')
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ this.pans[index].list[item.key].imageList.push(...item.image)
|
|
|
+ this.chouzhen = false
|
|
|
+ this.chouzhenList = []
|
|
|
+ this.checkList = []
|
|
|
+ this.checkAll = false
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
getData(className) {
|
|
@@ -1145,6 +1158,7 @@
|
|
|
// params.params.channelType = 0 = 0
|
|
|
// this.showVideoList('/kuaishou/batch/getVideoList', params)
|
|
|
} else {
|
|
|
+ this.creativeMaterialType = item.creativeMaterialType
|
|
|
this.$refs.check.showCheck(
|
|
|
item.creativeMaterialType,
|
|
|
'/kuaishou/batch/getImageList',
|
|
@@ -1463,7 +1477,8 @@
|
|
|
this.loadingImage = true
|
|
|
var params = {
|
|
|
accountId: localStorage.getItem('accountId'),
|
|
|
- uploadImageArr: this.imageArrList
|
|
|
+ uploadImageArr: this.imageArrList,
|
|
|
+ creativeMaterialType:this.creativeMaterialType
|
|
|
}
|
|
|
postAction("/kusiShouUpload/image", params).then(res => {
|
|
|
if (res.success) {
|
|
@@ -1690,8 +1705,13 @@
|
|
|
|
|
|
|
|
|
},
|
|
|
- deleteData(index, bestIndex, deleteIndex) {
|
|
|
- this.pans[index].list[bestIndex].imageList.splice(deleteIndex, 1)
|
|
|
+ deleteData(index, bestIndex, deleteIndex,type) {
|
|
|
+ if(type){
|
|
|
+ this.pans[index].postAdList[bestIndex].imageList.splice(deleteIndex, 1)
|
|
|
+ }else{
|
|
|
+ this.pans[index].list[bestIndex].imageList.splice(deleteIndex, 1)
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
handleOkShow(e) {
|
|
|
//
|