1 line
45 KiB
Plaintext
1 line
45 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/mine/ReleaseVideo.vue","webpack:///./src/views/mine/ReleaseVideo.vue?53f1","webpack:///./src/views/mine/ReleaseVideo.vue?d0d0","webpack:///./node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.js","webpack:///./node_modules/@ant-design/icons-vue/es/icons/PlusOutlined.js","webpack:///./src/views/mine/ReleaseVideo.vue?0936","webpack:///./node_modules/core-js/modules/es.array.splice.js","webpack:///./node_modules/core-js/modules/es.array.slice.js"],"names":["class","style","label-col","labelCol","wrapper-col","wrapperCol","lan","$t","label","rules","size","value","form","title","placeholder","list-type","customRequest","uploadspic","beforeUpload","imgs","viewCover","img","length","src","uploadpicprogress","type","percent","width","uploads","video","fileurl","uploadprogress","ref","desc","autoSize","maxlength","onSubmit","name","components","PlaySquareOutlined","PlusOutlined","NavBottom","setup","issum","fileid","fileduration","query","id","previewImage","coverChange","info","file","then","url","beforeCoverUpload","message","error","cancelCover","removeFile","index","newFileList","slice","splice","videofile","videos","ifalowupload","jindu","toFixed","parseInt","res","beforeUploadpic","split","ifallowvideo","addEventListener","duration","fileId","beforeVideoUpload","routes","e","preventDefault","subdata","span","previewCover","render","__scopeId","_objectSpread","target","i","arguments","source","Object","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","forEach","key","_defineProperty","obj","defineProperty","configurable","writable","props","context","p","attrs","AntdIcon","displayName","inheritAttrs","$","toAbsoluteIndex","toInteger","toLength","toObject","arraySpeciesCreate","createProperty","arrayMethodHasSpeciesSupport","arrayMethodUsesToLength","HAS_SPECIES_SUPPORT","USES_TO_LENGTH","ACCESSORS","0","1","max","Math","min","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","proto","forced","start","deleteCount","insertCount","actualDeleteCount","A","k","from","to","O","this","len","actualStart","argumentsLength","TypeError","isObject","isArray","toIndexedObject","wellKnownSymbol","SPECIES","nativ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nDG,EAAiBF,EAAwB,QAAS,CAAEG,WAAW,EAAMC,EAAG,EAAGC,EAAG,IAE9E0B,EAAUD,EAAgB,WAC1BE,EAAc,GAAG5F,MACjBkE,EAAMC,KAAKD,IAKfd,EAAE,CAAE3B,OAAQ,QAAS8C,OAAO,EAAMC,QAASX,IAAwBC,GAAkB,CACnF9D,MAAO,SAAeyE,EAAOoB,GAC3B,IAKIC,EAAaC,EAAQC,EALrBf,EAAIQ,EAAgBP,MACpBzH,EAAS8F,EAAS0B,EAAExH,QACpBqH,EAAIzB,EAAgBoB,EAAOhH,GAC3BwI,EAAM5C,OAAwB6C,IAARL,EAAoBpI,EAASoI,EAAKpI,GAG5D,GAAI+H,EAAQP,KACVa,EAAcb,EAAEkB,YAEU,mBAAfL,GAA8BA,IAAgBM,QAASZ,EAAQM,EAAYO,WAE3Ed,EAASO,KAClBA,EAAcA,EAAYH,GACN,OAAhBG,IAAsBA,OAAcI,IAHxCJ,OAAcI,EAKZJ,IAAgBM,YAAyBF,IAAhBJ,GAC3B,OAAOF,EAAYU,KAAKrB,EAAGH,EAAGmB,GAIlC,IADAF,EAAS,SAAqBG,IAAhBJ,EAA4BM,MAAQN,GAAa5B,EAAI+B,EAAMnB,EAAG,IACvEkB,EAAI,EAAGlB,EAAImB,EAAKnB,IAAKkB,IAASlB,KAAKG,GAAGvB,EAAeqC,EAAQC,EAAGf,EAAEH,IAEvE,OADAiB,EAAOtI,OAASuI,EACTD","file":"js/chunk-737c53fe.358c23d9.js","sourcesContent":["<template>\r\n <div class=\"upload-video\">\r\n <a-form :label-col=\"labelCol\" :wrapper-col=\"wrapperCol\">\r\n <div class=\"title\">{{ lan.$t(\"shangchuanshipin\") }}</div>\r\n <a-form-item :label=\"lan.$t('shipinbiaoti')\" :rules=\"{ required: true, message: 'Please input Activity name', trigger: 'blur'}\">\r\n <a-input\r\n size=\"small\"\r\n v-model:value=\"form.title\"\r\n :placeholder=\"lan.$t('shurushipinbiaoti')\"\r\n />\r\n </a-form-item>\r\n <a-form-item :label=\"lan.$t('shipinfengmian')\" class=\"video-cover\" :rules=\"{ required: true, message: 'Please input Activity name', trigger: 'blur'}\">\r\n <div style=\"display: flex\">\r\n <a-upload\r\n list-type=\"picture\"\r\n :customRequest=\"uploadspic\"\r\n :beforeUpload=\"imgs\"\r\n >\r\n <div\r\n class=\"upload-image\"\r\n v-if=\"!viewCover && form.img.length == 0\"\r\n >\r\n <PlusOutlined\r\n style=\"fontsize: 22px\"\r\n v-if=\"uploadpicprogress == 0\"\r\n />\r\n <a-progress\r\n type=\"circle\"\r\n :percent=\"uploadpicprogress\"\r\n :width=\"80\"\r\n v-else\r\n />\r\n </div>\r\n <div class=\"upload-image\" v-else>\r\n <img\r\n style=\"width: 100%; height: 100%\"\r\n :src=\"form.img\"\r\n />\r\n </div>\r\n </a-upload>\r\n <div class=\"demand\">\r\n <p>\r\n {{ lan.$t(\"fengmianyaoqiu\") }}\r\n </p>\r\n <p>\r\n 1.{{ lan.$t(\"fengmianyaoqiu1\") }}\r\n </p>\r\n <p>\r\n 2.{{ lan.$t(\"fengmianyaoqiu2\") }}\r\n </p>\r\n </div>\r\n </div>\r\n </a-form-item>\r\n <a-form-item\r\n :label=\"lan.$t('shipinjieshao')\"\r\n class=\"video-introduction\"\r\n :rules=\"{ required: true, message: 'Please input Activity name', trigger: 'blur'}\"\r\n >\r\n <a-upload\r\n list-type=\"picture\"\r\n :customRequest=\"uploads\"\r\n :beforeUpload=\"video\"\r\n >\r\n <div class=\"upload-image\" v-if=\"form.fileurl.length == 0\">\r\n <PlaySquareOutlined\r\n style=\"fontsize: 22px\"\r\n v-if=\"uploadprogress == 0\"\r\n />\r\n <a-progress\r\n type=\"circle\"\r\n :percent=\"uploadprogress\"\r\n :width=\"80\"\r\n v-else\r\n />\r\n <!-- <video style=\"display: none\" :src=\"videofile\"></video> -->\r\n </div>\r\n <div\r\n class=\"upload-image upload\"\r\n style=\"position: relative\"\r\n v-show=\"form.fileurl.length != 0\"\r\n >\r\n <video\r\n :src=\"form.fileurl\"\r\n :ref=\"\r\n (el) => {\r\n videos[0] = el;\r\n }\r\n \"\r\n class=\"upload1\"\r\n ></video>\r\n <!-- <a-progress type=\"circle\" :percent=\"100\" :width=\"80\" style=\"position:absolute;right:35%\"/> -->\r\n </div>\r\n </a-upload>\r\n <div class=\"demand\">\r\n <p>\r\n {{ lan.$t(\"shipinyaoqiu\") }}\r\n </p>\r\n <p>1.{{ lan.$t(\"cshipinyaoqiu1\") }}</p>\r\n <p>2.{{ lan.$t(\"cshipinyaoqiu2\") }}</p>\r\n <p>3.{{ lan.$t(\"shipinyaoqiu3\") }}</p>\r\n </div>\r\n <!-- <div class=\"demand\">\r\n <p class=\"one-line-hide\">视频要求:</p>\r\n <p class=\"one-line-hide\">1.上传视频时间要求为30s之内</p>\r\n <p class=\"one-line-hide\">2.支持文件大小100M</p>\r\n <p class=\"one-line-hide\">\r\n 3.文件扩展名:fiv、mp4…文件扩展名:fiv、mp4…\r\n </p>\r\n </div> -->\r\n </a-form-item>\r\n <a-form-item :label=\"lan.$t('shipinjianjie')\" class=\"brief\">\r\n <a-textarea\r\n v-model:value=\"form.desc\"\r\n :autoSize=\"true\"\r\n class=\"brief-textarea\"\r\n :maxlength=\"200\"\r\n :placeholder=\"lan.$t('shurushipinjianjie')\"\r\n />\r\n <span class=\"words-number\">{{ form.desc.length }}/200</span>\r\n </a-form-item>\r\n <a-form-item :wrapper-col=\"{ span: 4, offset: 0 }\">\r\n <a-button @click=\"onSubmit\">{{\r\n lan.$t(\"shangchuanshipin\")\r\n }}</a-button>\r\n </a-form-item>\r\n </a-form>\r\n <nav-bottom></nav-bottom>\r\n </div>\r\n</template>\r\n<script lang=\"ts\">\r\nimport { defineComponent, onMounted, reactive, Ref, ref, toRaw } from \"vue\";\r\nimport { PlaySquareOutlined, PlusOutlined } from \"@ant-design/icons-vue\";\r\nimport NavBottom from \"@/components/NavBottom.vue\";\r\nimport { previewCover, provenimg, provenvideo } from \"@/utils/common\";\r\nimport { FromSend, ImgInfo, VideoInfo } from \"@/types\";\r\nimport { uploadflie } from \"@/utils/vod\";\r\nimport { setvideo, videoadd, videodetail } from \"@/api\";\r\nimport { useRoute } from \"vue-router\";\r\nimport { message } from \"ant-design-vue\";\r\nimport { useI18n } from \"@/utils/i18n\";\r\n\r\nexport default defineComponent({\r\n name: \"ReleaseWebcast\",\r\n components: {\r\n PlaySquareOutlined,\r\n PlusOutlined,\r\n NavBottom,\r\n },\r\n setup() {\r\n let issum= true;\r\n const lan: any = useI18n();\r\n interface FileItem {\r\n video: Array<string>;\r\n }\r\n const fileList: Array<FileItem> = [];\r\n\r\n // 表单数据\r\n const form = ref<any>({\r\n title: \"\",\r\n img: \"\",\r\n fileid: \"\",\r\n fileurl: \"\",\r\n fileduration: \"\",\r\n desc: \"\",\r\n video: [\"\"],\r\n });\r\n onMounted(async () => {\r\n if (useRoute().query.id) {\r\n console.log(useRoute().query.id, \"knijkdbj\");\r\n form.value = await videodetail(useRoute().query.id, 1);\r\n console.log(form.value, \"fornm\");\r\n }\r\n });\r\n\r\n // 是否显示封面预览 封面的路径\r\n const viewCover: Ref<boolean> = ref(false),\r\n previewImage: Ref<string> = ref(\"\");\r\n /**\r\n * 封面改变触发事件\r\n */\r\n function coverChange(info: ImgInfo): void {\r\n // console.log(info);\r\n // 获取预览图片\r\n previewCover(info.file).then((url) => (previewImage.value = url));\r\n viewCover.value = true;\r\n // form.cover = fileList;\r\n }\r\n\r\n /**\r\n * 上传封面之前的钩子\r\n * @param file 上传的文件\r\n */\r\n const beforeCoverUpload = (file: File): boolean => {\r\n console.log(file);\r\n const type = provenimg(file.name);\r\n if(!type){\r\n message.error(\"请重新选择\")\r\n }\r\n return false;\r\n };\r\n\r\n /**\r\n * 删除封面\r\n */\r\n function cancelCover(file: number): void {\r\n console.log(file);\r\n }\r\n /**\r\n * 删除视频列表\r\n * @param index 删除文件的索引\r\n */\r\n function removeFile(index: number): void {\r\n const newFileList = form.value.video.slice();\r\n newFileList.splice(index, 1);\r\n form.value.video = newFileList;\r\n }\r\n\r\n /**\r\n * 上传图片\r\n */\r\n const uploadpicprogress: Ref<number> = ref(0);\r\n const videofile = ref<File>();\r\n const videos = ref<Array<any>>([]);\r\n const ifalowupload = ref<boolean>(false);\r\n interface AntUpload {\r\n action: string;\r\n data: unknown;\r\n file: File;\r\n }\r\n async function uploadspic(file: AntUpload) {\r\n \r\n const res = await uploadflie(file.file, (info: any) => {\r\n console.log(info);\r\n let jindu: number = info.percent.toFixed(2) * 100;\r\n jindu = parseInt(jindu + \"\");\r\n uploadpicprogress.value = jindu || 1;\r\n });\r\n console.log(res);\r\n form.value.img = res.video.url;\r\n \r\n }\r\n\r\n function beforeUploadpic(info?: any) {\r\n console.log(info);\r\n if (info.type.split(\"/\")[0] != \"image\") {\r\n message.error(lan.$t(\"fengmiangeshi\"));\r\n ifalowupload.value = false;\r\n return;\r\n } else {\r\n ifalowupload.value = true;\r\n }\r\n }\r\n\r\n /**\r\n * 上传视频\r\n */\r\n const uploadprogress: Ref<number> = ref(0);\r\n const ifallowvideo = ref<boolean>(false);\r\n async function uploads(file: AntUpload) {\r\n issum = false;\r\n console.log(file);\r\n videofile.value = file.file;\r\n uploadprogress.value = 1;\r\n videos.value[0].addEventListener(\"durationchange\", () => {\r\n console.log(videos.value[0].duration);\r\n form.value.fileduration = videos.value[0].duration;\r\n });\r\n const res = await uploadflie(file.file, (info: any) => {\r\n console.log(info);\r\n const jindu = info.percent.toFixed(2) * 100\r\n uploadprogress.value = jindu > 0 ? jindu : 1;\r\n });\r\n console.log(res);\r\n\r\n form.value.fileid = res.fileId;\r\n form.value.fileurl = res.video.url;\r\n issum = true;\r\n } \r\n\r\n function beforeVideoUpload(info?: any) {\r\n console.log(info);\r\n if (info.type.split(\"/\")[0] != \"video\") {\r\n ifallowvideo.value;\r\n message.error(lan.$t(\"wenjiangeshi\"));\r\n } else {\r\n ifallowvideo.value = true;\r\n }\r\n }\r\n\r\n /**\r\n * 表单提交\r\n */\r\n const routes = useRoute();\r\n const onSubmit = async (e: FromSend) => {\r\n if(!issum){\r\n message.error(lan.$t(\"shangchuanwancheng\"))\r\n return; \r\n }\r\n e.preventDefault();\r\n console.log(toRaw(form.value), 111);\r\n console.log(toRaw(form.value).video[0].length);\r\n\r\n console.log(routes.query, \"adsadsa\");\r\n const subdata = toRaw(form.value);\r\n if (subdata.title == \"\") {\r\n message.error(lan.$t(\"biaotiweikong\"));\r\n return;\r\n } else if (subdata.img == \"\") {\r\n message.error(lan.$t(\"fengmianweikong\"));\r\n return;\r\n } else if (subdata.fileurl == \"\") {\r\n message.error(lan.$t(\"wenjianweikong\"));\r\n } else {\r\n if (routes.query.id) {\r\n form.value.id = routes.query.id;\r\n console.log(\"edi\");\r\n setvideo(form.value);\r\n } else {\r\n videoadd(form, toRaw(form.value));\r\n }\r\n // videoadd(form, toRaw(form.value));\r\n }\r\n\r\n // videoadd(form, toRaw(form.value));\r\n };\r\n function beforeUpload(info?: any) {\r\n console.log(info);\r\n if (info.type.split(\"/\")[0] != \"video\") {\r\n ifallowvideo.value = false;\r\n message.error(lan.$t(\"shipinjieshaoccuowu\"));\r\n return;\r\n } else {\r\n ifallowvideo.value = true;\r\n }\r\n }\r\n function video(file: any){\r\n return provenvideo(file, true)\r\n }\r\n function imgs(file: any){\r\n return provenimg(file)\r\n }\r\n \r\n\r\n return {\r\n labelCol: { span: 4 },\r\n wrapperCol: { span: 14 },\r\n form,\r\n viewCover,\r\n previewImage,\r\n previewCover,\r\n coverChange,\r\n cancelCover,\r\n beforeCoverUpload,\r\n onSubmit,\r\n uploadpicprogress,\r\n uploadspic,\r\n uploadprogress,\r\n uploads,\r\n videofile,\r\n videos,\r\n removeFile,\r\n beforeUpload,\r\n ifalowupload,\r\n beforeVideoUpload,\r\n lan,\r\n beforeUploadpic,\r\n video,\r\n imgs\r\n };\r\n },\r\n});\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.upload1{\r\n width: 171px;\r\n height: 96px;\r\n}\r\n.upload {\r\n width: 171px;\r\n height: 96px;\r\n display: none;\r\n}\r\n.upload-video {\r\n width: 100%;\r\n min-width: 700px;\r\n background-color: #ffffff;\r\n padding: 46px;\r\n border-radius: 17px;\r\n position: relative;\r\n ::v-deep(.ant-form) {\r\n .title {\r\n font-size: 12px;\r\n font-weight: bold;\r\n color: #111111;\r\n margin-bottom: 28px;\r\n }\r\n .ant-row {\r\n .ant-form-item-label {\r\n width: 130px;\r\n margin: 0 30px 0 17px;\r\n text-align: left;\r\n > label {\r\n font-size: 12px;\r\n font-weight: 500;\r\n color: #808080;\r\n &::after {\r\n content: \"\";\r\n }\r\n }\r\n }\r\n .upload-image {\r\n width: 171px;\r\n height: 96px;\r\n border: 1px solid #dcdfe0;\r\n border-radius: 3px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n margin-right: 17px;\r\n }\r\n .ant-input {\r\n width: 171px;\r\n padding: 6px 11px;\r\n border-radius: 3px;\r\n border: 1px solid #dcdfe0;\r\n font-size: 11px;\r\n color: #3f3f3f;\r\n &::-webkit-input-placeholder {\r\n font-size: 12px;\r\n color: #808080;\r\n }\r\n }\r\n .ant-select {\r\n font-size: 12px;\r\n color: #3f3f3f;\r\n }\r\n .ant-select-dropdown {\r\n font-size: 12px;\r\n }\r\n .ant-upload-list {\r\n display: none;\r\n }\r\n .ant-btn {\r\n padding: 0;\r\n width: 63px;\r\n height: 23px;\r\n background: #08ae98;\r\n border-radius: 3px;\r\n font-size: 10px;\r\n font-weight: 500;\r\n color: #ffffff;\r\n // &:hover {\r\n // background: #08ae98;\r\n // }\r\n }\r\n }\r\n .video-cover {\r\n .preview-image {\r\n width: 171px;\r\n height: 96px;\r\n }\r\n }\r\n .demand {\r\n height: 94px;\r\n font-size: 10px;\r\n font-weight: 500;\r\n color: #808080;\r\n // width: 134px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n > p {\r\n line-height: 17px;\r\n margin: 0;\r\n }\r\n }\r\n .video-introduction {\r\n .ant-form-item-control-wrapper {\r\n .ant-form-item-children {\r\n display: flex;\r\n // align-items: center;\r\n }\r\n }\r\n .video-list {\r\n display: flex;\r\n align-items: center;\r\n .link {\r\n width: 11px;\r\n height: 11px;\r\n margin-right: 4px;\r\n }\r\n > span {\r\n font-size: 9px;\r\n font-weight: 500;\r\n color: #07ad97;\r\n max-width: 150px;\r\n }\r\n .del {\r\n width: 11px;\r\n height: 11px;\r\n margin-left: auto;\r\n cursor: pointer;\r\n }\r\n }\r\n }\r\n .duration {\r\n .unit {\r\n margin-left: 18px;\r\n font-size: 12px;\r\n font-weight: 500;\r\n color: #808080;\r\n }\r\n }\r\n .brief {\r\n position: relative;\r\n .ant-input {\r\n width: 359px;\r\n }\r\n .brief-textarea {\r\n min-height: 85px;\r\n padding-bottom: 30px;\r\n }\r\n .words-number {\r\n position: absolute;\r\n right: 11px;\r\n bottom: -11px;\r\n font-size: 11px;\r\n font-weight: 500;\r\n color: #7f7f7f;\r\n user-select: none;\r\n }\r\n }\r\n }\r\n}\r\n</style>","\r\nimport { defineComponent, onMounted, reactive, Ref, ref, toRaw } from \"vue\";\r\nimport { PlaySquareOutlined, PlusOutlined } from \"@ant-design/icons-vue\";\r\nimport NavBottom from \"@/components/NavBottom.vue\";\r\nimport { previewCover, provenimg, provenvideo } from \"@/utils/common\";\r\nimport { FromSend, ImgInfo, VideoInfo } from \"@/types\";\r\nimport { uploadflie } from \"@/utils/vod\";\r\nimport { setvideo, videoadd, videodetail } from \"@/api\";\r\nimport { useRoute } from \"vue-router\";\r\nimport { message } from \"ant-design-vue\";\r\nimport { useI18n } from \"@/utils/i18n\";\r\n\r\nexport default defineComponent({\r\n name: \"ReleaseWebcast\",\r\n components: {\r\n PlaySquareOutlined,\r\n PlusOutlined,\r\n NavBottom,\r\n },\r\n setup() {\r\n let issum= true;\r\n const lan: any = useI18n();\r\n interface FileItem {\r\n video: Array<string>;\r\n }\r\n const fileList: Array<FileItem> = [];\r\n\r\n // 表单数据\r\n const form = ref<any>({\r\n title: \"\",\r\n img: \"\",\r\n fileid: \"\",\r\n fileurl: \"\",\r\n fileduration: \"\",\r\n desc: \"\",\r\n video: [\"\"],\r\n });\r\n onMounted(async () => {\r\n if (useRoute().query.id) {\r\n console.log(useRoute().query.id, \"knijkdbj\");\r\n form.value = await videodetail(useRoute().query.id, 1);\r\n console.log(form.value, \"fornm\");\r\n }\r\n });\r\n\r\n // 是否显示封面预览 封面的路径\r\n const viewCover: Ref<boolean> = ref(false),\r\n previewImage: Ref<string> = ref(\"\");\r\n /**\r\n * 封面改变触发事件\r\n */\r\n function coverChange(info: ImgInfo): void {\r\n // console.log(info);\r\n // 获取预览图片\r\n previewCover(info.file).then((url) => (previewImage.value = url));\r\n viewCover.value = true;\r\n // form.cover = fileList;\r\n }\r\n\r\n /**\r\n * 上传封面之前的钩子\r\n * @param file 上传的文件\r\n */\r\n const beforeCoverUpload = (file: File): boolean => {\r\n console.log(file);\r\n const type = provenimg(file.name);\r\n if(!type){\r\n message.error(\"请重新选择\")\r\n }\r\n return false;\r\n };\r\n\r\n /**\r\n * 删除封面\r\n */\r\n function cancelCover(file: number): void {\r\n console.log(file);\r\n }\r\n /**\r\n * 删除视频列表\r\n * @param index 删除文件的索引\r\n */\r\n function removeFile(index: number): void {\r\n const newFileList = form.value.video.slice();\r\n newFileList.splice(index, 1);\r\n form.value.video = newFileList;\r\n }\r\n\r\n /**\r\n * 上传图片\r\n */\r\n const uploadpicprogress: Ref<number> = ref(0);\r\n const videofile = ref<File>();\r\n const videos = ref<Array<any>>([]);\r\n const ifalowupload = ref<boolean>(false);\r\n interface AntUpload {\r\n action: string;\r\n data: unknown;\r\n file: File;\r\n }\r\n async function uploadspic(file: AntUpload) {\r\n \r\n const res = await uploadflie(file.file, (info: any) => {\r\n console.log(info);\r\n let jindu: number = info.percent.toFixed(2) * 100;\r\n jindu = parseInt(jindu + \"\");\r\n uploadpicprogress.value = jindu || 1;\r\n });\r\n console.log(res);\r\n form.value.img = res.video.url;\r\n \r\n }\r\n\r\n function beforeUploadpic(info?: any) {\r\n console.log(info);\r\n if (info.type.split(\"/\")[0] != \"image\") {\r\n message.error(lan.$t(\"fengmiangeshi\"));\r\n ifalowupload.value = false;\r\n return;\r\n } else {\r\n ifalowupload.value = true;\r\n }\r\n }\r\n\r\n /**\r\n * 上传视频\r\n */\r\n const uploadprogress: Ref<number> = ref(0);\r\n const ifallowvideo = ref<boolean>(false);\r\n async function uploads(file: AntUpload) {\r\n issum = false;\r\n console.log(file);\r\n videofile.value = file.file;\r\n uploadprogress.value = 1;\r\n videos.value[0].addEventListener(\"durationchange\", () => {\r\n console.log(videos.value[0].duration);\r\n form.value.fileduration = videos.value[0].duration;\r\n });\r\n const res = await uploadflie(file.file, (info: any) => {\r\n console.log(info);\r\n const jindu = info.percent.toFixed(2) * 100\r\n uploadprogress.value = jindu > 0 ? jindu : 1;\r\n });\r\n console.log(res);\r\n\r\n form.value.fileid = res.fileId;\r\n form.value.fileurl = res.video.url;\r\n issum = true;\r\n } \r\n\r\n function beforeVideoUpload(info?: any) {\r\n console.log(info);\r\n if (info.type.split(\"/\")[0] != \"video\") {\r\n ifallowvideo.value;\r\n message.error(lan.$t(\"wenjiangeshi\"));\r\n } else {\r\n ifallowvideo.value = true;\r\n }\r\n }\r\n\r\n /**\r\n * 表单提交\r\n */\r\n const routes = useRoute();\r\n const onSubmit = async (e: FromSend) => {\r\n if(!issum){\r\n message.error(lan.$t(\"shangchuanwancheng\"))\r\n return; \r\n }\r\n e.preventDefault();\r\n console.log(toRaw(form.value), 111);\r\n console.log(toRaw(form.value).video[0].length);\r\n\r\n console.log(routes.query, \"adsadsa\");\r\n const subdata = toRaw(form.value);\r\n if (subdata.title == \"\") {\r\n message.error(lan.$t(\"biaotiweikong\"));\r\n return;\r\n } else if (subdata.img == \"\") {\r\n message.error(lan.$t(\"fengmianweikong\"));\r\n return;\r\n } else if (subdata.fileurl == \"\") {\r\n message.error(lan.$t(\"wenjianweikong\"));\r\n } else {\r\n if (routes.query.id) {\r\n form.value.id = routes.query.id;\r\n console.log(\"edi\");\r\n setvideo(form.value);\r\n } else {\r\n videoadd(form, toRaw(form.value));\r\n }\r\n // videoadd(form, toRaw(form.value));\r\n }\r\n\r\n // videoadd(form, toRaw(form.value));\r\n };\r\n function beforeUpload(info?: any) {\r\n console.log(info);\r\n if (info.type.split(\"/\")[0] != \"video\") {\r\n ifallowvideo.value = false;\r\n message.error(lan.$t(\"shipinjieshaoccuowu\"));\r\n return;\r\n } else {\r\n ifallowvideo.value = true;\r\n }\r\n }\r\n function video(file: any){\r\n return provenvideo(file, true)\r\n }\r\n function imgs(file: any){\r\n return provenimg(file)\r\n }\r\n \r\n\r\n return {\r\n labelCol: { span: 4 },\r\n wrapperCol: { span: 14 },\r\n form,\r\n viewCover,\r\n previewImage,\r\n previewCover,\r\n coverChange,\r\n cancelCover,\r\n beforeCoverUpload,\r\n onSubmit,\r\n uploadpicprogress,\r\n uploadspic,\r\n uploadprogress,\r\n uploads,\r\n videofile,\r\n videos,\r\n removeFile,\r\n beforeUpload,\r\n ifalowupload,\r\n beforeVideoUpload,\r\n lan,\r\n beforeUploadpic,\r\n video,\r\n imgs\r\n };\r\n },\r\n});\r\n","import { render } from \"./ReleaseVideo.vue?vue&type=template&id=7910b216&scoped=true&bindings={}\"\nimport script from \"./ReleaseVideo.vue?vue&type=script&lang=ts\"\nexport * from \"./ReleaseVideo.vue?vue&type=script&lang=ts\"\n\nimport \"./ReleaseVideo.vue?vue&type=style&index=0&id=7910b216&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-7910b216\"\n\nexport default script","// This icon file is generated automatically.\nvar PlusOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"defs\", \"attrs\": {}, \"children\": [{ \"tag\": \"style\", \"attrs\": {} }] }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z\" } }] }, \"name\": \"plus\", \"theme\": \"outlined\" };\nexport default PlusOutlined;\n","import * as _vue from \"vue\";\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport PlusOutlinedSvg from \"@ant-design/icons-svg/es/asn/PlusOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar PlusOutlined = function PlusOutlined(props, context) {\n var p = _objectSpread({}, props, context.attrs);\n\n return _vue.createVNode(AntdIcon, _vue.mergeProps(p, {\n \"icon\": PlusOutlinedSvg\n }), null);\n};\n\nPlusOutlined.displayName = 'PlusOutlined';\nPlusOutlined.inheritAttrs = false;\nexport default PlusOutlined;","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ReleaseVideo.vue?vue&type=style&index=0&id=7910b216&lang=scss&scoped=true\"","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n"],"sourceRoot":""} |