(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-737c53fe"],{"2f6d":function(e,t,r){"use strict";r.r(t);var n=r("7a23"),o=Object(n["withScopeId"])("data-v-7910b216");Object(n["pushScopeId"])("data-v-7910b216");var a={class:"upload-video"},c={class:"title"},l={style:{display:"flex"}},i={key:0,class:"upload-image"},u={key:1,class:"upload-image"},s={class:"demand"},p={key:0,class:"upload-image"},d={class:"upload-image upload",style:{position:"relative"}},b={class:"demand"},f={class:"words-number"};Object(n["popScopeId"])();var v=o((function(e,t,r,v,j,O){var g=Object(n["resolveComponent"])("a-input"),m=Object(n["resolveComponent"])("a-form-item"),h=Object(n["resolveComponent"])("PlusOutlined"),y=Object(n["resolveComponent"])("a-progress"),w=Object(n["resolveComponent"])("a-upload"),k=Object(n["resolveComponent"])("PlaySquareOutlined"),N=Object(n["resolveComponent"])("a-textarea"),V=Object(n["resolveComponent"])("a-button"),q=Object(n["resolveComponent"])("a-form"),C=Object(n["resolveComponent"])("nav-bottom");return Object(n["openBlock"])(),Object(n["createBlock"])("div",a,[Object(n["createVNode"])(q,{"label-col":e.labelCol,"wrapper-col":e.wrapperCol},{default:o((function(){return[Object(n["createVNode"])("div",c,Object(n["toDisplayString"])(e.lan.$t("shangchuanshipin")),1),Object(n["createVNode"])(m,{label:e.lan.$t("shipinbiaoti"),rules:{required:!0,message:"Please input Activity name",trigger:"blur"}},{default:o((function(){return[Object(n["createVNode"])(g,{size:"small",value:e.form.title,"onUpdate:value":t[1]||(t[1]=function(t){return e.form.title=t}),placeholder:e.lan.$t("shurushipinbiaoti")},null,8,["value","placeholder"])]})),_:1},8,["label"]),Object(n["createVNode"])(m,{label:e.lan.$t("shipinfengmian"),class:"video-cover",rules:{required:!0,message:"Please input Activity name",trigger:"blur"}},{default:o((function(){return[Object(n["createVNode"])("div",l,[Object(n["createVNode"])(w,{"list-type":"picture",customRequest:e.uploadspic,beforeUpload:e.imgs},{default:o((function(){return[e.viewCover||0!=e.form.img.length?(Object(n["openBlock"])(),Object(n["createBlock"])("div",u,[Object(n["createVNode"])("img",{style:{width:"100%",height:"100%"},src:e.form.img},null,8,["src"])])):(Object(n["openBlock"])(),Object(n["createBlock"])("div",i,[0==e.uploadpicprogress?(Object(n["openBlock"])(),Object(n["createBlock"])(h,{key:0,style:{fontsize:"22px"}})):(Object(n["openBlock"])(),Object(n["createBlock"])(y,{key:1,type:"circle",percent:e.uploadpicprogress,width:80},null,8,["percent"]))]))]})),_:1},8,["customRequest","beforeUpload"]),Object(n["createVNode"])("div",s,[Object(n["createVNode"])("p",null,Object(n["toDisplayString"])(e.lan.$t("fengmianyaoqiu")),1),Object(n["createVNode"])("p",null," 1."+Object(n["toDisplayString"])(e.lan.$t("fengmianyaoqiu1")),1),Object(n["createVNode"])("p",null," 2."+Object(n["toDisplayString"])(e.lan.$t("fengmianyaoqiu2")),1)])])]})),_:1},8,["label"]),Object(n["createVNode"])(m,{label:e.lan.$t("shipinjieshao"),class:"video-introduction",rules:{required:!0,message:"Please input Activity name",trigger:"blur"}},{default:o((function(){return[Object(n["createVNode"])(w,{"list-type":"picture",customRequest:e.uploads,beforeUpload:e.video},{default:o((function(){return[0==e.form.fileurl.length?(Object(n["openBlock"])(),Object(n["createBlock"])("div",p,[0==e.uploadprogress?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:0,style:{fontsize:"22px"}})):(Object(n["openBlock"])(),Object(n["createBlock"])(y,{key:1,type:"circle",percent:e.uploadprogress,width:80},null,8,["percent"]))])):Object(n["createCommentVNode"])("",!0),Object(n["withDirectives"])(Object(n["createVNode"])("div",d,[Object(n["createVNode"])("video",{src:e.form.fileurl,ref:function(t){e.videos[0]=t},class:"upload1"},null,8,["src"])],512),[[n["vShow"],0!=e.form.fileurl.length]])]})),_:1},8,["customRequest","beforeUpload"]),Object(n["createVNode"])("div",b,[Object(n["createVNode"])("p",null,Object(n["toDisplayString"])(e.lan.$t("shipinyaoqiu")),1),Object(n["createVNode"])("p",null,"1."+Object(n["toDisplayString"])(e.lan.$t("cshipinyaoqiu1")),1),Object(n["createVNode"])("p",null,"2."+Object(n["toDisplayString"])(e.lan.$t("cshipinyaoqiu2")),1),Object(n["createVNode"])("p",null,"3."+Object(n["toDisplayString"])(e.lan.$t("shipinyaoqiu3")),1)])]})),_:1},8,["label"]),Object(n["createVNode"])(m,{label:e.lan.$t("shipinjianjie"),class:"brief"},{default:o((function(){return[Object(n["createVNode"])(N,{value:e.form.desc,"onUpdate:value":t[2]||(t[2]=function(t){return e.form.desc=t}),autoSize:!0,class:"brief-textarea",maxlength:200,placeholder:e.lan.$t("shurushipinjianjie")},null,8,["value","placeholder"]),Object(n["createVNode"])("span",f,Object(n["toDisplayString"])(e.form.desc.length)+"/200",1)]})),_:1},8,["label"]),Object(n["createVNode"])(m,{"wrapper-col":{span:4,offset:0}},{default:o((function(){return[Object(n["createVNode"])(V,{onClick:e.onSubmit},{default:o((function(){return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.lan.$t("shangchuanshipin")),1)]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["label-col","wrapper-col"]),Object(n["createVNode"])(C)])})),j=(r("fb6a"),r("a434"),r("b0c0"),r("b680"),r("ac1f"),r("1276"),r("96cf"),r("1da1")),O=r("a109"),g=r("47ce"),m=r("1009"),h=r("48b8"),y=r("52ce"),w=r("79f6"),k=r("6c02"),N=r("f64c"),V=r("5699"),q=Object(n["defineComponent"])({name:"ReleaseWebcast",components:{PlaySquareOutlined:O["a"],PlusOutlined:g["a"],NavBottom:m["a"]},setup:function(){var e=!0,t=Object(V["c"])(),r=Object(n["ref"])({title:"",img:"",fileid:"",fileurl:"",fileduration:"",desc:"",video:[""]});Object(n["onMounted"])(Object(j["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!Object(k["d"])().query.id){e.next=6;break}return console.log(Object(k["d"])().query.id,"knijkdbj"),e.next=4,Object(w["cb"])(Object(k["d"])().query.id,1);case 4:r.value=e.sent,console.log(r.value,"fornm");case 6:case"end":return e.stop()}}),e)}))));var o=Object(n["ref"])(!1),a=Object(n["ref"])("");function c(e){Object(h["b"])(e.file).then((function(e){return a.value=e})),o.value=!0}var l=function(e){console.log(e);var t=Object(h["c"])(e.name);return t||N["a"].error("请重新选择"),!1};function i(e){console.log(e)}function u(e){var t=r.value.video.slice();t.splice(e,1),r.value.video=t}var s=Object(n["ref"])(0),p=Object(n["ref"])(),d=Object(n["ref"])([]),b=Object(n["ref"])(!1);function f(e){return v.apply(this,arguments)}function v(){return v=Object(j["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["a"])(t.file,(function(e){console.log(e);var t=100*e.percent.toFixed(2);t=parseInt(t+""),s.value=t||1}));case 2:n=e.sent,console.log(n),r.value.img=n.video.url;case 5:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function O(e){if(console.log(e),"image"!=e.type.split("/")[0])return N["a"].error(t.$t("fengmiangeshi")),void(b.value=!1);b.value=!0}var g=Object(n["ref"])(0),m=Object(n["ref"])(!1);function q(e){return C.apply(this,arguments)}function C(){return C=Object(j["a"])(regeneratorRuntime.mark((function t(n){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=!1,console.log(n),p.value=n.file,g.value=1,d.value[0].addEventListener("durationchange",(function(){console.log(d.value[0].duration),r.value.fileduration=d.value[0].duration})),t.next=7,Object(y["a"])(n.file,(function(e){console.log(e);var t=100*e.percent.toFixed(2);g.value=t>0?t:1}));case 7:o=t.sent,console.log(o),r.value.fileid=o.fileId,r.value.fileurl=o.video.url,e=!0;case 12:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function S(e){console.log(e),"video"!=e.type.split("/")[0]?(m.value,N["a"].error(t.$t("wenjiangeshi"))):m.value=!0}var x=Object(k["d"])(),$=function(){var o=Object(j["a"])(regeneratorRuntime.mark((function o(a){var c;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(e){o.next=3;break}return N["a"].error(t.$t("shangchuanwancheng")),o.abrupt("return");case 3:if(a.preventDefault(),console.log(Object(n["toRaw"])(r.value),111),console.log(Object(n["toRaw"])(r.value).video[0].length),console.log(x.query,"adsadsa"),c=Object(n["toRaw"])(r.value),""!=c.title){o.next=13;break}return N["a"].error(t.$t("biaotiweikong")),o.abrupt("return");case 13:if(""!=c.img){o.next=18;break}return N["a"].error(t.$t("fengmianweikong")),o.abrupt("return");case 18:""==c.fileurl?N["a"].error(t.$t("wenjianweikong")):x.query.id?(r.value.id=x.query.id,console.log("edi"),Object(w["X"])(r.value)):Object(w["ab"])(r,Object(n["toRaw"])(r.value));case 19:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}();function R(e){if(console.log(e),"video"!=e.type.split("/")[0])return m.value=!1,void N["a"].error(t.$t("shipinjieshaoccuowu"));m.value=!0}function B(e){return Object(h["d"])(e,!0)}function D(e){return Object(h["c"])(e)}return{labelCol:{span:4},wrapperCol:{span:14},form:r,viewCover:o,previewImage:a,previewCover:h["b"],coverChange:c,cancelCover:i,beforeCoverUpload:l,onSubmit:$,uploadpicprogress:s,uploadspic:f,uploadprogress:g,uploads:q,videofile:p,videos:d,removeFile:u,beforeUpload:R,ifalowupload:b,beforeVideoUpload:S,lan:t,beforeUploadpic:O,video:B,imgs:D}}});r("554d");q.render=v,q.__scopeId="data-v-7910b216";t["default"]=q},"47ce":function(e,t,r){"use strict";var n=r("7a23"),o={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"},a=o,c=r("b3f0");function l(e){for(var t=1;tj)throw TypeError(O);for(s=i(g,n),p=0;pm-n+r;p--)delete g[p-1]}else if(r>n)for(p=m-n;p>h;p--)d=p+n-1,b=p+r-1,d in g?g[b]=g[d]:delete g[b];for(p=0;p