| | |
| | | </view> |
| | | <view class="video-actions"> |
| | | <u-button type="error" size="mini" @click="reUpload">重新上传</u-button> |
| | | <u-button type="primary" size="mini" @click="chooseCover" v-if="videoInfo.url">选择封面</u-button> |
| | | <u-button type="primary" size="mini" @click="chooseCover" v-if="videoInfo.url">{{formData.cover ? '更换封面' : '请选择封面'}}</u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | :key="index" |
| | | :text="tag.tagName" |
| | | :index="index" |
| | | type="error" |
| | | type="success" |
| | | @close="removeTag(index)" |
| | | /> |
| | | </view> |
| | |
| | | :key="index" |
| | | :text="tag.tagName" |
| | | :index="index" |
| | | type="primary" |
| | | type="success" |
| | | :closeable="false" |
| | | @click="selectTopic(index)" |
| | | /> |
| | |
| | | import UInput from '@/uview-components/uview-ui/components/u-input/u-input.vue'; |
| | | import USearch from '@/uview-components/uview-ui/components/u-search/u-search.vue'; |
| | | import UPopup from '@/uview-components/uview-ui/components/u-popup/u-popup.vue'; |
| | | import MyTag from "@/components/my-tag.vue" |
| | | import MyTag from '@/components/my-tag.vue' |
| | | |
| | | import { getSTSToken, getFilePreviewUrl } from "@/api/common.js"; |
| | | import { publish } from "@/api/video.js"; |
| | | import { getRecommendTag3 } from "@/api/video-tag.js"; |
| | |
| | | formData: { |
| | | id: '', |
| | | title: '', |
| | | cover: '', |
| | | videoFileKey: '', |
| | | videoDuration: 0, |
| | | videoFit: 'cover', |
| | |
| | | }, |
| | | computed: { |
| | | canPublish() { |
| | | return this.formData.videoFileKey && this.formData.title; |
| | | return this.formData.videoFileKey && this.formData.title && this.formData.cover; |
| | | }, |
| | | filteredGoods() { |
| | | if (!this.goodsSearch) return this.goodsList; |
| | |
| | | }, |
| | | // 初始化腾讯云cos客户端 |
| | | initCOS() { |
| | | console.log("执行了"); |
| | | // 调用后端获取sts临时访问凭证 |
| | | getSTSToken().then(res => { |
| | | const COS = require('@/lib/cos-wx-sdk-v5.js'); // 开发时使用 |
| | |
| | | id: '', |
| | | title: '', |
| | | videoFileKey: '', |
| | | cover: '', |
| | | videoFit: 'cover', |
| | | videoDuration: 0, |
| | | goodsId: '', |