beelink/dist/js/chunk-737c53fe.f61ff849.js
2020-11-25 10:00:46 +08:00

2 lines
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-737c53fe"],{"2f6d":function(e,t,r){"use strict";r.r(t);var a=r("7a23"),n=Object(a["withScopeId"])("data-v-7910b216");Object(a["pushScopeId"])("data-v-7910b216");var o={class:"upload-video"},c={class:"title"},i={style:{display:"flex"}},l={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(a["popScopeId"])();var v=n((function(e,t,r,v,O,j){var m=Object(a["resolveComponent"])("a-input"),g=Object(a["resolveComponent"])("a-form-item"),h=Object(a["resolveComponent"])("PlusOutlined"),y=Object(a["resolveComponent"])("a-progress"),w=Object(a["resolveComponent"])("a-upload"),k=Object(a["resolveComponent"])("PlaySquareOutlined"),N=Object(a["resolveComponent"])("a-textarea"),V=Object(a["resolveComponent"])("a-button"),q=Object(a["resolveComponent"])("a-form"),C=Object(a["resolveComponent"])("nav-bottom");return Object(a["openBlock"])(),Object(a["createBlock"])("div",o,[Object(a["createVNode"])(q,{"label-col":e.labelCol,"wrapper-col":e.wrapperCol},{default:n((function(){return[Object(a["createVNode"])("div",c,Object(a["toDisplayString"])(e.lan.$t("shangchuanshipin")),1),Object(a["createVNode"])(g,{label:e.lan.$t("shipinbiaoti"),rules:{required:!0,message:"Please input Activity name",trigger:"blur"}},{default:n((function(){return[Object(a["createVNode"])(m,{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(a["createVNode"])(g,{label:e.lan.$t("shipinfengmian"),class:"video-cover",rules:{required:!0,message:"Please input Activity name",trigger:"blur"}},{default:n((function(){return[Object(a["createVNode"])("div",i,[Object(a["createVNode"])(w,{"list-type":"picture",customRequest:e.uploadspic,beforeUpload:e.imgs},{default:n((function(){return[e.viewCover||0!=e.form.img.length?(Object(a["openBlock"])(),Object(a["createBlock"])("div",u,[Object(a["createVNode"])("img",{style:{width:"100%",height:"100%"},src:e.form.img},null,8,["src"])])):(Object(a["openBlock"])(),Object(a["createBlock"])("div",l,[0==e.uploadpicprogress?(Object(a["openBlock"])(),Object(a["createBlock"])(h,{key:0,style:{fontsize:"22px"}})):(Object(a["openBlock"])(),Object(a["createBlock"])(y,{key:1,type:"circle",percent:e.uploadpicprogress,width:80},null,8,["percent"]))]))]})),_:1},8,["customRequest","beforeUpload"]),Object(a["createVNode"])("div",s,[Object(a["createVNode"])("p",null,Object(a["toDisplayString"])(e.lan.$t("fengmianyaoqiu")),1),Object(a["createVNode"])("p",null," 1."+Object(a["toDisplayString"])(e.lan.$t("fengmianyaoqiu1")),1),Object(a["createVNode"])("p",null," 2."+Object(a["toDisplayString"])(e.lan.$t("fengmianyaoqiu2")),1)])])]})),_:1},8,["label"]),Object(a["createVNode"])(g,{label:e.lan.$t("shipinjieshao"),class:"video-introduction",rules:{required:!0,message:"Please input Activity name",trigger:"blur"}},{default:n((function(){return[Object(a["createVNode"])(w,{"list-type":"picture",customRequest:e.uploads,beforeUpload:e.video},{default:n((function(){return[0==e.form.fileurl.length?(Object(a["openBlock"])(),Object(a["createBlock"])("div",p,[0==e.uploadprogress?(Object(a["openBlock"])(),Object(a["createBlock"])(k,{key:0,style:{fontsize:"22px"}})):(Object(a["openBlock"])(),Object(a["createBlock"])(y,{key:1,type:"circle",percent:e.uploadprogress,width:80},null,8,["percent"]))])):Object(a["createCommentVNode"])("",!0),Object(a["withDirectives"])(Object(a["createVNode"])("div",d,[Object(a["createVNode"])("video",{src:e.form.fileurl,ref:function(t){e.videos[0]=t},class:"upload1"},null,8,["src"])],512),[[a["vShow"],0!=e.form.fileurl.length]])]})),_:1},8,["customRequest","beforeUpload"]),Object(a["createVNode"])("div",b,[Object(a["createVNode"])("p",null,Object(a["toDisplayString"])(e.lan.$t("shipinyaoqiu")),1),Object(a["createVNode"])("p",null,"1."+Object(a["toDisplayString"])(e.lan.$t("cshipinyaoqiu1")),1),Object(a["createVNode"])("p",null,"2."+Object(a["toDisplayString"])(e.lan.$t("cshipinyaoqiu2")),1),Object(a["createVNode"])("p",null,"3."+Object(a["toDisplayString"])(e.lan.$t("shipinyaoqiu3")),1)])]})),_:1},8,["label"]),Object(a["createVNode"])(g,{label:e.lan.$t("shipinjianjie"),class:"brief"},{default:n((function(){return[Object(a["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(a["createVNode"])("span",f,Object(a["toDisplayString"])(e.form.desc.length)+"/200",1)]})),_:1},8,["label"]),Object(a["createVNode"])(g,{"wrapper-col":{span:4,offset:0}},{default:n((function(){return[Object(a["createVNode"])(V,{onClick:e.onSubmit},{default:n((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.lan.$t("shangchuanshipin")),1)]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["label-col","wrapper-col"]),Object(a["createVNode"])(C)])})),O=(r("fb6a"),r("a434"),r("b0c0"),r("b680"),r("ac1f"),r("1276"),r("96cf"),r("1da1")),j=r("a109"),m=r("47ce"),g=r("1009"),h=r("48b8"),y=r("52ce"),w=r("79f6"),k=r("6c02"),N=r("f64c"),V=r("5699"),q=Object(a["defineComponent"])({name:"ReleaseWebcast",components:{PlaySquareOutlined:j["a"],PlusOutlined:m["a"],NavBottom:g["a"]},setup:function(){var e=!0,t=Object(V["c"])(),r=Object(a["ref"])({title:"",img:"",fileid:"",fileurl:"",fileduration:"",desc:"",video:[""]});Object(a["onMounted"])(Object(O["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=4;break}return e.next=3,Object(w["Z"])(Object(k["d"])().query.id,1);case 3:r.value=e.sent;case 4:case"end":return e.stop()}}),e)}))));var n=Object(a["ref"])(!1),o=Object(a["ref"])("");function c(e){Object(h["b"])(e.file).then((function(e){return o.value=e})),n.value=!0}var i=function(e){var t=Object(h["c"])(e.name);return t||N["a"].error("请重新选择"),!1};function l(e){}function u(e){var t=r.value.video.slice();t.splice(e,1),r.value.video=t}var s=Object(a["ref"])(0),p=Object(a["ref"])(),d=Object(a["ref"])([]),b=Object(a["ref"])(!1);function f(e){return v.apply(this,arguments)}function v(){return v=Object(O["a"])(regeneratorRuntime.mark((function e(t){var a;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){var t=100*e.percent.toFixed(2);t=parseInt(t+""),s.value=t||1}));case 2:a=e.sent,r.value.img=a.video.url;case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function j(e){if("image"!=e.type.split("/")[0])return N["a"].error(t.$t("fengmiangeshi")),void(b.value=!1);b.value=!0}var m=Object(a["ref"])(0),g=Object(a["ref"])(!1);function q(e){return C.apply(this,arguments)}function C(){return C=Object(O["a"])(regeneratorRuntime.mark((function t(a){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=!1,p.value=a.file,m.value=1,d.value[0].addEventListener("durationchange",(function(){r.value.fileduration=d.value[0].duration})),t.next=6,Object(y["a"])(a.file,(function(e){var t=100*e.percent.toFixed(2);m.value=t>0?t:1}));case 6:n=t.sent,r.value.fileid=n.fileId,r.value.fileurl=n.video.url,e=!0;case 10:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function S(e){"video"!=e.type.split("/")[0]?(g.value,N["a"].error(t.$t("wenjiangeshi"))):g.value=!0}var x=Object(k["d"])(),$=function(){var n=Object(O["a"])(regeneratorRuntime.mark((function n(o){var c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e){n.next=3;break}return N["a"].error(t.$t("shangchuanwancheng")),n.abrupt("return");case 3:if(o.preventDefault(),c=Object(a["toRaw"])(r.value),""!=c.title){n.next=10;break}return N["a"].error(t.$t("biaotiweikong")),n.abrupt("return");case 10:if(""!=c.img){n.next=15;break}return N["a"].error(t.$t("fengmianweikong")),n.abrupt("return");case 15:""==c.fileurl?N["a"].error(t.$t("wenjianweikong")):x.query.id?(r.value.id=x.query.id,Object(w["U"])(r.value)):Object(w["X"])(r,Object(a["toRaw"])(r.value));case 16:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();function B(e){if("video"!=e.type.split("/")[0])return g.value=!1,void N["a"].error(t.$t("shipinjieshaoccuowu"));g.value=!0}function R(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:n,previewImage:o,previewCover:h["b"],coverChange:c,cancelCover:l,beforeCoverUpload:i,onSubmit:$,uploadpicprogress:s,uploadspic:f,uploadprogress:m,uploads:q,videofile:p,videos:d,removeFile:u,beforeUpload:B,ifalowupload:b,beforeVideoUpload:S,lan:t,beforeUploadpic:j,video:R,imgs:D}}});r("554d");q.render=v,q.__scopeId="data-v-7910b216";t["default"]=q},"47ce":function(e,t,r){"use strict";var a=r("7a23"),n={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"},o=n,c=r("b3f0");function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){l(e,t,r[t])}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(e,t){var r=i({},e,t.attrs);return a["createVNode"](c["a"],a["mergeProps"](r,{icon:o}),null)};u.displayName="PlusOutlined",u.inheritAttrs=!1;t["a"]=u},"554d":function(e,t,r){"use strict";r("a68e")},a434:function(e,t,r){"use strict";var a=r("23e7"),n=r("23cb"),o=r("a691"),c=r("50c4"),i=r("7b0b"),l=r("65f0"),u=r("8418"),s=r("1dde"),p=r("ae40"),d=s("splice"),b=p("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,v=Math.min,O=9007199254740991,j="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!d||!b},{splice:function(e,t){var r,a,s,p,d,b,m=i(this),g=c(m.length),h=n(e,g),y=arguments.length;if(0===y?r=a=0:1===y?(r=0,a=g-h):(r=y-2,a=v(f(o(t),0),g-h)),g+r-a>O)throw TypeError(j);for(s=l(m,a),p=0;p<a;p++)d=h+p,d in m&&u(s,p,m[d]);if(s.length=a,r<a){for(p=h;p<g-a;p++)d=p+a,b=p+r,d in m?m[b]=m[d]:delete m[b];for(p=g;p>g-a+r;p--)delete m[p-1]}else if(r>a)for(p=g-a;p>h;p--)d=p+a-1,b=p+r-1,d in m?m[b]=m[d]:delete m[b];for(p=0;p<r;p++)m[p+h]=arguments[p+2];return m.length=g-a+r,s}})},a68e:function(e,t,r){},fb6a:function(e,t,r){"use strict";var a=r("23e7"),n=r("861d"),o=r("e8b5"),c=r("23cb"),i=r("50c4"),l=r("fc6a"),u=r("8418"),s=r("b622"),p=r("1dde"),d=r("ae40"),b=p("slice"),f=d("slice",{ACCESSORS:!0,0:0,1:2}),v=s("species"),O=[].slice,j=Math.max;a({target:"Array",proto:!0,forced:!b||!f},{slice:function(e,t){var r,a,s,p=l(this),d=i(p.length),b=c(e,d),f=c(void 0===t?d:t,d);if(o(p)&&(r=p.constructor,"function"!=typeof r||r!==Array&&!o(r.prototype)?n(r)&&(r=r[v],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return O.call(p,b,f);for(a=new(void 0===r?Array:r)(j(f-b,0)),s=0;b<f;b++,s++)b in p&&u(a,s,p[b]);return a.length=s,a}})}}]);
//# sourceMappingURL=chunk-737c53fe.f61ff849.js.map