| | |
| | | endpoint: '', |
| | | searchGoods: '', |
| | | videoTagList: [], |
| | | chooseTag: '', |
| | | chooseTag: [], |
| | | videoTag: '', |
| | | visible: false, |
| | | imgName: '', |
| | |
| | | this.uploadVideoForm.goodsList = this.uploadVideoForm.goodsList.filter(item => { |
| | | return item.goodsNum >0; |
| | | }) |
| | | if (!this.uploadVideoForm.title) { |
| | | this.$Message.error('标题不能为空'); |
| | | return; |
| | | } |
| | | //表单校验 |
| | | if (this.uploadVideoForm.videoContentType==='video') { |
| | | if (!this.uploadVideoForm.videoFileKey){ |
| | | this.$Message.error('视频不能为空'); |
| | | return; |
| | | } |
| | | } |
| | | if (this.uploadVideoForm.videoContentType==='img') { |
| | | if (this.uploadVideoForm.videoImgs<1){ |
| | | this.$Message.error('图片不能为空'); |
| | | return; |
| | | } |
| | | } |
| | | publish(this.uploadVideoForm).then(response => { |
| | | if (response.code == 200) { |
| | | this.$Message.success("视频发布成功"); |
| | |
| | | openUploadVideo() { |
| | | this.upLoadVideoShow = true; |
| | | this.videoTagList = [] |
| | | this.chooseTag = [] |
| | | this.uploadVideoForm = { |
| | | id: '', |
| | | title: '', |