|
@@ -60,8 +60,8 @@
|
|
|
.sticker-styles .ant-checkbox-wrapper + .ant-checkbox-wrapper {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
-.display-none-selset{
|
|
|
- display: none!important;
|
|
|
+.display-none-selset {
|
|
|
+ display: none !important;
|
|
|
}
|
|
|
</style>
|
|
|
<style scoped lang="scss">
|
|
@@ -195,7 +195,7 @@ li.chouzhen.first:before {
|
|
|
<div class="dynamically_add_form_item">
|
|
|
<a-form-item label>
|
|
|
<a @click="getVideoList('video', index, item, bestIndex)">选择视频</a>
|
|
|
- <a @click="uploadVideo(index, bestIndex)" style="margin-left: 10px">上传视频</a>
|
|
|
+ <!-- <a @click="uploadVideo(index, bestIndex)" style="margin-left: 10px">上传视频</a> -->
|
|
|
<br />
|
|
|
<!-- <video
|
|
|
:src="item.videoList.url"
|
|
@@ -254,7 +254,6 @@ li.chouzhen.first:before {
|
|
|
>
|
|
|
<a
|
|
|
@click="showImages(index, bestIndex)"
|
|
|
- v-if="item.chouzhenShow"
|
|
|
style="margin-left: 10px"
|
|
|
:disabled="item.imageList.length >= 4"
|
|
|
>推荐封面</a
|
|
@@ -400,6 +399,20 @@ li.chouzhen.first:before {
|
|
|
:token-separators="[',',' ',',']"
|
|
|
>
|
|
|
</a-select>
|
|
|
+ <a-popconfirm @confirm="getInfo(record)">
|
|
|
+ <div slot="title">
|
|
|
+ <div>
|
|
|
+ 分类名称:
|
|
|
+ <a-input placeholder="请输入" v-model="tagName" style="display: inline-block;width: 300px;" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <a-button slot="okText" type="primary" :disabled="refuseReason == ''">确定</a-button> -->
|
|
|
+ <!-- <a @click="setData(record)">复制</a> -->
|
|
|
+ <a style="margin-right:10px" :disabled="!getData('creativeTag')">收藏</a>
|
|
|
+ <!-- @click="collection('creativeTag')" -->
|
|
|
+ </a-popconfirm>
|
|
|
+
|
|
|
+ <a @click="showCunTitle('creativeTag')">收藏列表</a>
|
|
|
</a-form-item>
|
|
|
|
|
|
<a-form-item label="行动号召" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
@@ -441,6 +454,10 @@ li.chouzhen.first:before {
|
|
|
]"
|
|
|
placeholder="请输入第三方点击监测链接"
|
|
|
></a-input>
|
|
|
+ <a v-if="getData('clickUrl')" @click="clickTrackUrlShow = true" style="margin-right: 10px"
|
|
|
+ >收藏监测链接</a
|
|
|
+ >
|
|
|
+ <a @click="getClickTrackUrlList()">监测链接列表</a>
|
|
|
</a-form-item>
|
|
|
<!-- , { validator: handleConfirmValue } -->
|
|
|
|
|
@@ -675,6 +692,19 @@ li.chouzhen.first:before {
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-modal>
|
|
|
+ <!-- :load="loadOptions"
|
|
|
+ lazy -->
|
|
|
+ <a-modal title="收藏标题" v-model="creativeTagVisible" :width="1000" @ok="okTag">
|
|
|
+ <el-tree
|
|
|
+ :data="optionsTag"
|
|
|
+ show-checkbox
|
|
|
+ node-key="id"
|
|
|
+ :props="defaultProps"
|
|
|
+ :check-strictly="true"
|
|
|
+ ref="tree"
|
|
|
+ >
|
|
|
+ </el-tree>
|
|
|
+ </a-modal>
|
|
|
<a-modal title="收藏标题" v-model="cunTitleVisible" :width="1000" @ok="okTitleCun">
|
|
|
<a-row :gutter="10">
|
|
|
<a-col :sm="24" style="margin-bottom: 20px; z-index: 10">
|
|
@@ -689,7 +719,7 @@ li.chouzhen.first:before {
|
|
|
<a @click="removeTitleCun(item)">删除</a>
|
|
|
</div>
|
|
|
<a-checkbox :value="item">
|
|
|
- {{ item.captions?item.captions:item.coverSlogans }}
|
|
|
+ {{ item.captions?item.captions:item.coverSlogans?item.coverSlogans:item.tag }}
|
|
|
</a-checkbox>
|
|
|
</a-list-item>
|
|
|
|
|
@@ -779,6 +809,13 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ optionsTag: [],
|
|
|
+ defaultProps: {
|
|
|
+ children: 'children',
|
|
|
+ label: 'label',
|
|
|
+ id: 'id',
|
|
|
+ },
|
|
|
+ tagName: '',
|
|
|
fieldNames: {
|
|
|
label: 'category_name',
|
|
|
value: 'category_id',
|
|
@@ -791,9 +828,25 @@ export default {
|
|
|
stickerStyles: [],
|
|
|
captionsList: [{ captions: '' }],
|
|
|
horizontalPhoto: [
|
|
|
- { videoList: [], imageList: [], creativeMaterialType: '2', imageUrlList: [], checkArrImage: [] },
|
|
|
+ {
|
|
|
+ videoList: [],
|
|
|
+ imageList: [],
|
|
|
+ creativeMaterialType: '2',
|
|
|
+ imageUrlList: [],
|
|
|
+ checkArrImage: [],
|
|
|
+ chouzhenShow: false,
|
|
|
+ },
|
|
|
], //横板
|
|
|
- verticalPhoto: [{ videoList: [], imageList: [], creativeMaterialType: '1', imageUrlList: [], checkArrImage: [] }], //竖版
|
|
|
+ verticalPhoto: [
|
|
|
+ {
|
|
|
+ videoList: [],
|
|
|
+ imageList: [],
|
|
|
+ creativeMaterialType: '1',
|
|
|
+ imageUrlList: [],
|
|
|
+ checkArrImage: [],
|
|
|
+ chouzhenShow: false,
|
|
|
+ },
|
|
|
+ ], //竖版
|
|
|
trackName: '',
|
|
|
showImageChouzhen: false,
|
|
|
showImageStr: null,
|
|
@@ -806,6 +859,7 @@ export default {
|
|
|
showSite: true,
|
|
|
titleVisible: false,
|
|
|
cunTitleVisible: false,
|
|
|
+ creativeTagVisible: false,
|
|
|
cunTitleList: [],
|
|
|
options: [],
|
|
|
data: [],
|
|
@@ -928,6 +982,58 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ loadOptions(node, resolve) {
|
|
|
+ // Typically, do the AJAX stuff here.
|
|
|
+ // Once the server has responded,
|
|
|
+ // assign children options to the parent node & call the callback.
|
|
|
+ console.log(node)
|
|
|
+ var data = []
|
|
|
+ var id = node.label
|
|
|
+ if (node.level == 1) {
|
|
|
+ var params = {}
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
+ params.userId = this.userInfo().id
|
|
|
+ params.pageSize = 1000
|
|
|
+ params.pageNo = 1
|
|
|
+ params.id = id
|
|
|
+ getAction('/tag/kuaiShouCreativeTagCollection/list', params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ data = JSON.parse(res.result.records[0].tagArray).map((item) => {
|
|
|
+ return {
|
|
|
+ id: item,
|
|
|
+ label: item,
|
|
|
+ disabled: true,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ resolve(data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ data = []
|
|
|
+ resolve(data)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getInfo(item) {
|
|
|
+ if (this.tagName == '') {
|
|
|
+ this.$message.error('请输入分类名称')
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ let params = {}
|
|
|
+ params.tagName = this.tagName
|
|
|
+ // params.campaignBudget = this.campaignBudget
|
|
|
+ params.tagArray = JSON.stringify(this.getData('creativeTag'))
|
|
|
+ params.userId = this.userInfo().id
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
+ postAction('/tag/kuaiShouCreativeTagCollection/add', params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success('添加成功')
|
|
|
+ this.tagName = ''
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
addCaptions(type) {
|
|
|
if (type == 'captionsList') {
|
|
|
this.captionsList.push({ captions: '' })
|
|
@@ -942,8 +1048,12 @@ export default {
|
|
|
if (type == 'captionsList') {
|
|
|
// this.captionsList.push({ captions: '' })
|
|
|
params.captionsList = this.captionsList
|
|
|
- } else {
|
|
|
+ } else if (type == 'creativeTag') {
|
|
|
// this.coverSlogansList.push({ coverSlogans: '' })
|
|
|
+ params.creativeTag = this.getData('creativeTag').map((item) => {
|
|
|
+ return { tag: item }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
params.coverSlogansList = this.coverSlogansList
|
|
|
}
|
|
|
postAction('/kuaishou/collectionSlogans/add', params).then((res) => {
|
|
@@ -956,6 +1066,7 @@ export default {
|
|
|
deleteCaptions(index, type) {
|
|
|
if (type == 'captionsList') {
|
|
|
this.captionsList.splice(index, 1)
|
|
|
+ } else if (type == 'creativeTag') {
|
|
|
} else {
|
|
|
this.coverSlogansList.splice(index, 1)
|
|
|
}
|
|
@@ -1012,7 +1123,7 @@ export default {
|
|
|
params.accountId = localStorage.getItem('accountId')
|
|
|
params.userId = this.userInfo().id
|
|
|
params.trackName = this.trackUrlName
|
|
|
- params.trackUrl = this.getData('clickTrackUrl')
|
|
|
+ params.trackUrl = this.getData('clickUrl')
|
|
|
postAction('/kuaishou/kuaiShouTrackUrlCollection/add', params).then((res) => {
|
|
|
if (res.success) {
|
|
|
this.clickTrackUrlShow = false
|
|
@@ -1026,7 +1137,7 @@ export default {
|
|
|
okClickTrackUrl(item) {
|
|
|
this.clickTrackUrlList = false
|
|
|
this.form.setFieldsValue({
|
|
|
- clickTrackUrl: item.trackUrl,
|
|
|
+ clickUrl: item.trackUrl,
|
|
|
})
|
|
|
},
|
|
|
removeClickTrackUrl(item) {
|
|
@@ -1085,23 +1196,55 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
showCunTitle(type) {
|
|
|
- this.cunTitleVisible = true
|
|
|
+ if (type == 'creativeTag') {
|
|
|
+ this.creativeTagVisible = true
|
|
|
+ } else {
|
|
|
+ this.cunTitleVisible = true
|
|
|
+ }
|
|
|
+
|
|
|
this.getCunTitle(type)
|
|
|
},
|
|
|
getCunTitle(typeAdd) {
|
|
|
- var params = {}
|
|
|
- params.accountId = localStorage.getItem('accountId')
|
|
|
- params.userId = this.userInfo().id
|
|
|
- params.type = typeAdd == 'captionsList' ? 2 : 1
|
|
|
- // params.pageNo = 1
|
|
|
- // params.pageSize = 500
|
|
|
- // /kuaishou/collectionSlogans/getByUserId?userId=12312312321&accountId=12&type=1
|
|
|
- getAction('/kuaishou/collectionSlogans/getByUserId', params).then((res) => {
|
|
|
- if (res.success) {
|
|
|
- console.log(res.result)
|
|
|
- this.cunTitleList = res.result.value
|
|
|
- }
|
|
|
- })
|
|
|
+ if (typeAdd == 'creativeTag') {
|
|
|
+ var params = {}
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
+ params.userId = this.userInfo().id
|
|
|
+ params.pageSize = 1000
|
|
|
+ params.pageNo = 1
|
|
|
+
|
|
|
+ getAction('/tag/kuaiShouCreativeTagCollection/list', params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log(res.result)
|
|
|
+ this.optionsTag = res.result.records.map((item) => {
|
|
|
+ return {
|
|
|
+ id: item.id,
|
|
|
+ label: item.tagName,
|
|
|
+ children: JSON.parse(item.tagArray).map((item) => {
|
|
|
+ return {
|
|
|
+ id: item,
|
|
|
+ label: item,
|
|
|
+ disabled: true,
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ var params = {}
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
+ params.userId = this.userInfo().id
|
|
|
+ params.type = typeAdd == 'captionsList' ? 2 : 1
|
|
|
+ // params.pageNo = 1
|
|
|
+ // params.pageSize = 500
|
|
|
+ // /kuaishou/collectionSlogans/getByUserId?userId=12312312321&accountId=12&type=1
|
|
|
+ getAction('/kuaishou/collectionSlogans/getByUserId', params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log(res.result)
|
|
|
+ this.cunTitleList = res.result.value
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
removeTitleCun(item) {
|
|
|
console.log(item)
|
|
@@ -1116,6 +1259,16 @@ export default {
|
|
|
params.captionsList = this.cunTitleList
|
|
|
params.type = 'delete'
|
|
|
typeAdd = 'captionsList'
|
|
|
+ } else if (item.tag) {
|
|
|
+ var index = this.cunTitleList.findIndex((v) => v.tag === item.tag)
|
|
|
+ this.cunTitleList.splice(index, 1)
|
|
|
+ var params = {}
|
|
|
+ params.userId = this.userInfo().id
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
+
|
|
|
+ params.creativeTag = this.cunTitleList
|
|
|
+ params.type = 'delete'
|
|
|
+ typeAdd = 'creativeTag'
|
|
|
} else {
|
|
|
var index = this.cunTitleList.findIndex((v) => v.coverSlogans === item.coverSlogans)
|
|
|
this.cunTitleList.splice(index, 1)
|
|
@@ -1140,6 +1293,7 @@ export default {
|
|
|
if (res.success) {
|
|
|
this.$message.success('删除成功')
|
|
|
this.getCunTitle(typeAdd)
|
|
|
+ this.guanggao = []
|
|
|
}
|
|
|
})
|
|
|
// deleteAction('/kuaishou/kuaiShouTitleCollection/delete', {
|
|
@@ -1150,17 +1304,52 @@ export default {
|
|
|
// }
|
|
|
// })
|
|
|
},
|
|
|
+ okTag() {
|
|
|
+ var data = this.$refs.tree.getCheckedKeys()
|
|
|
+ if (data.length > 1) {
|
|
|
+ this.$message.error('只能选择一个选项')
|
|
|
+ // this.$refs.tree.setCheckedKeys([]);
|
|
|
+ } else {
|
|
|
+ var params = {}
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
+ params.userId = this.userInfo().id
|
|
|
+ params.pageSize = 1000
|
|
|
+ params.pageNo = 1
|
|
|
+ params.id = data[0]
|
|
|
+
|
|
|
+ getAction('/tag/kuaiShouCreativeTagCollection/list', params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log(res.result)
|
|
|
+ this.form.setFieldsValue({
|
|
|
+ creativeTag: JSON.parse(res.result.records[0].tagArray).map((item) => {
|
|
|
+ return item
|
|
|
+ }),
|
|
|
+ })
|
|
|
+ this.creativeTagVisible = false
|
|
|
+ }else{
|
|
|
+ this.$message.error('选择出错,请稍后选择或自行手填')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ console.log(data)
|
|
|
+ },
|
|
|
okTitleCun(item) {
|
|
|
if (this.guanggao.length > 0) {
|
|
|
if (this.guanggao[0].captions) {
|
|
|
- if(this.guanggao.length>3){
|
|
|
+ if (this.guanggao.length > 3) {
|
|
|
this.$message.error('广告语最多选择3条')
|
|
|
return
|
|
|
}
|
|
|
this.captionsList = []
|
|
|
this.captionsList.push(...this.guanggao)
|
|
|
+ } else if (this.guanggao[0].tag) {
|
|
|
+ this.form.setFieldsValue({
|
|
|
+ creativeTag: this.guanggao.map((t) => {
|
|
|
+ return t.tag
|
|
|
+ }),
|
|
|
+ })
|
|
|
} else {
|
|
|
- if(this.guanggao.length>6){
|
|
|
+ if (this.guanggao.length > 6) {
|
|
|
this.$message.error('封面广告语最多选择6条')
|
|
|
return
|
|
|
}
|
|
@@ -1411,13 +1600,6 @@ export default {
|
|
|
this.active = 0
|
|
|
this.time = []
|
|
|
this.channelType = 0
|
|
|
- // var params = {}
|
|
|
- // params.accountId = localStorage.getItem('accountId')
|
|
|
- // params.materialType = this.getData('creativeMaterialType')
|
|
|
- // params.pageSize = this.ipagination.pageSize
|
|
|
- // params.pageNo = this.ipagination.current
|
|
|
- // params.params.channelType = 0 = 0
|
|
|
- // this.showVideoList('/kuaishou/batch/getVideoList', params)
|
|
|
} else {
|
|
|
this.$refs.check.showCheck(
|
|
|
this.getData('creativeMaterialType'),
|
|
@@ -1480,44 +1662,16 @@ export default {
|
|
|
|
|
|
handleSubmit(e) {
|
|
|
e.preventDefault()
|
|
|
- // var index = this.pans.findIndex((item) => item.key === this.pansKey)
|
|
|
- // var data = this.pans[index].list.map((item) => {
|
|
|
- // return item.imageList.length + item.imageUrlList.length
|
|
|
- // })
|
|
|
- // if (this.contentAll > 15) {
|
|
|
- // this.$message.error('封面最多15张')
|
|
|
- // return
|
|
|
- // }
|
|
|
|
|
|
this.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
this.loading = true
|
|
|
var index = this.pans.findIndex((item) => item.key === this.pansKey)
|
|
|
- // var data = this.verticalPhoto.map((item) => {
|
|
|
- // if (item.imageList.length > 0) {
|
|
|
- // return item.imageList.map((i) => {
|
|
|
- // return i.signature
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // return []
|
|
|
- // }
|
|
|
- // })
|
|
|
- // var dataTwo = this.horizontalPhoto.map((item) => {
|
|
|
- // if (item.imageList.length > 0) {
|
|
|
- // return item.imageList.map((i) => {
|
|
|
- // return i.signature
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // return []
|
|
|
- // }
|
|
|
- // })
|
|
|
- // var dataElse = tqFun(data)
|
|
|
- // var dataTwoElse = tqFun(dataTwo)
|
|
|
|
|
|
var params = {
|
|
|
// dataJson: allJson,
|
|
|
...values,
|
|
|
- creativeCategory:values.creativeCategory?values.creativeCategory.pop():null,
|
|
|
+ creativeCategory: values.creativeCategory ? values.creativeCategory.pop() : null,
|
|
|
unitId: this.pansKey,
|
|
|
accountId: localStorage.getItem('accountId'),
|
|
|
content: this.content,
|
|
@@ -1525,9 +1679,12 @@ export default {
|
|
|
return item.captions
|
|
|
}),
|
|
|
stickerStyles: this.stickerStylesValue,
|
|
|
- coverSlogans: this.stickerStylesValue?this.coverSlogansList.map((item) => {
|
|
|
- return item.coverSlogans
|
|
|
- }):[],
|
|
|
+ coverSlogans:
|
|
|
+ this.stickerStylesValue.length > 0
|
|
|
+ ? this.coverSlogansList.map((item) => {
|
|
|
+ return item.coverSlogans
|
|
|
+ })
|
|
|
+ : [],
|
|
|
horizontalPhotoIds: this.horizontalPhoto[0].videoList.map((item) => {
|
|
|
return item.photoId
|
|
|
}),
|
|
@@ -1600,6 +1757,7 @@ export default {
|
|
|
this.pans[index].imageList.push({
|
|
|
imageList: [],
|
|
|
creativeMaterialType: '1',
|
|
|
+ chouzhenShow: false,
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -1652,17 +1810,17 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (arr.length + this.pans[bestIndex].list[nowIndex].imageList.length > 4) {
|
|
|
+ if (arr.length + this.pans[bestIndex].imageList[nowIndex].imageList.length > 4) {
|
|
|
this.$message.error(
|
|
|
'当前选择封面' +
|
|
|
arr.length +
|
|
|
'张,最多可选择' +
|
|
|
- (4 - this.pans[bestIndex].list[nowIndex].imageList.length) +
|
|
|
+ (4 - this.pans[bestIndex].imageList[nowIndex].imageList.length) +
|
|
|
'张'
|
|
|
)
|
|
|
return
|
|
|
} else {
|
|
|
- this.pans[bestIndex].list[nowIndex].imageList.push(...arr)
|
|
|
+ this.pans[bestIndex].imageList[nowIndex].imageList.push(...arr)
|
|
|
this.chouzhen = false
|
|
|
this.chouzhenList = []
|
|
|
this.checkList = []
|
|
@@ -1674,15 +1832,16 @@ export default {
|
|
|
this.chouzhenList = []
|
|
|
nowIndex = index
|
|
|
bestIndex = bestIndex
|
|
|
+
|
|
|
var params = {
|
|
|
- videoSignature: this.pans[bestIndex].list[index].videoList.signature,
|
|
|
- pageSize: 20,
|
|
|
- pageNo: 1,
|
|
|
+ md5Arr: this.pans[bestIndex].list[nowIndex].videoList.map((item) => {
|
|
|
+ return item.signature
|
|
|
+ }),
|
|
|
}
|
|
|
- getAction('/cutFrame/material/list', params).then((res) => {
|
|
|
+ postAction('/ctop/kuaishouProgramCreative/getProgramCreativeCover', params).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.success) {
|
|
|
- this.chouzhenList.push(...res.result.records)
|
|
|
+ this.chouzhenList.push(...res.result)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1722,18 +1881,18 @@ export default {
|
|
|
}
|
|
|
postAction('/kusiShouUpload/image', params).then((res) => {
|
|
|
if (res.success) {
|
|
|
- if (res.result.length + this.pans[bestIndex].list[nowIndex].imageList > 4) {
|
|
|
+ if (res.result.length + this.pans[bestIndex].imageList[nowIndex].imageList > 4) {
|
|
|
this.$message.error(
|
|
|
'当前上传封面' +
|
|
|
res.result.length +
|
|
|
'张,最多可上传' +
|
|
|
- (4 - this.pans[bestIndex].list[nowIndex].imageList.length) +
|
|
|
+ (4 - this.pans[bestIndex].imageList[nowIndex].imageList.length) +
|
|
|
'张'
|
|
|
)
|
|
|
this.loadingImage = false
|
|
|
return
|
|
|
} else {
|
|
|
- this.pans[bestIndex].list[nowIndex].imageList.push(...res.result)
|
|
|
+ this.pans[bestIndex].imageList[nowIndex].imageList.push(...res.result)
|
|
|
this.closeImage()
|
|
|
this.loadingImage = false
|
|
|
}
|
|
@@ -1907,10 +2066,11 @@ export default {
|
|
|
postAction('/kusiShouUpload/video', params).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.success) {
|
|
|
- this.pans[bestIndex].list[nowIndex].videoList = {
|
|
|
+ this.pans[bestIndex].list[nowIndex].videoList.push({
|
|
|
photoId: res.result.photoId,
|
|
|
url: this.urlList.url,
|
|
|
- }
|
|
|
+ coverUrl: res.result.coverUrl,
|
|
|
+ })
|
|
|
this.loadingVideo = false
|
|
|
this.closeVideo()
|
|
|
} else {
|
|
@@ -1937,25 +2097,15 @@ export default {
|
|
|
//
|
|
|
|
|
|
this.pans[bestIndex].list[nowIndex].imageList = []
|
|
|
- this.pans[bestIndex].list[nowIndex].videoList = this.checkVideo
|
|
|
+ if (this.pans[bestIndex].list[nowIndex].videoList.length >= 5) {
|
|
|
+ this.$message.error('最多选择五个视频')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.pans[bestIndex].list[nowIndex].videoList = this.pans[bestIndex].list[nowIndex].videoList.concat(
|
|
|
+ this.checkVideo
|
|
|
+ )
|
|
|
this.ipagination.current = 1
|
|
|
this.visibleMatemal = false
|
|
|
- // var params = {
|
|
|
- // videoSignature: this.checkVideo[0].signature,
|
|
|
- // pageSize: 20,
|
|
|
- // pageNo: 1,
|
|
|
- // }
|
|
|
- // getAction('/cutFrame/material/list', params).then((res) => {
|
|
|
- // console.log(res)
|
|
|
- // if (res.success) {
|
|
|
- // if (res.result.records.length > 0) {
|
|
|
- // this.pans[bestIndex].list[nowIndex].chouzhenShow = true
|
|
|
- // } else {
|
|
|
- // this.pans[bestIndex].list[nowIndex].chouzhenShow = false
|
|
|
- // }
|
|
|
- // this.visibleMatemal = false
|
|
|
- // }
|
|
|
- // })
|
|
|
},
|
|
|
judge(item) {
|
|
|
var re = /[(.*?)]/g
|
|
@@ -2081,8 +2231,8 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
|
- cunTitleVisible(n,o){
|
|
|
- if(!n){
|
|
|
+ cunTitleVisible(n, o) {
|
|
|
+ if (!n) {
|
|
|
this.guanggao = []
|
|
|
this.cunTitleList = []
|
|
|
}
|
|
@@ -2184,7 +2334,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
getAction('/kuaishou/batch/getCreativeCategory', {
|
|
|
accountId: localStorage.getItem('accountId'),
|
|
|
}).then((res) => {
|