(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["LiveBroadcastEidt"],{"25f0":function(t,e,n){"use strict";var i=n("6eeb"),r=n("825a"),a=n("d039"),o=n("ad6d"),u="toString",c=RegExp.prototype,s=c[u],l=a((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),d=s.name!=u;(l||d)&&i(RegExp.prototype,u,(function(){var t=r(this),e=String(t.source),n=t.flags,i=String(void 0===n&&t instanceof RegExp&&!("flags"in c)?o.call(t):n);return"/"+e+"/"+i}),{unsafe:!0})},3284:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"z",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"p",(function(){return c})),n.d(e,"S",(function(){return s})),n.d(e,"o",(function(){return l})),n.d(e,"q",(function(){return d})),n.d(e,"E",(function(){return f})),n.d(e,"F",(function(){return p})),n.d(e,"G",(function(){return m})),n.d(e,"A",(function(){return v})),n.d(e,"D",(function(){return h})),n.d(e,"C",(function(){return g})),n.d(e,"B",(function(){return b})),n.d(e,"N",(function(){return w})),n.d(e,"K",(function(){return y})),n.d(e,"O",(function(){return U})),n.d(e,"M",(function(){return O})),n.d(e,"L",(function(){return F})),n.d(e,"w",(function(){return C})),n.d(e,"y",(function(){return S})),n.d(e,"f",(function(){return x})),n.d(e,"c",(function(){return j})),n.d(e,"h",(function(){return A})),n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return D})),n.d(e,"n",(function(){return P})),n.d(e,"m",(function(){return k})),n.d(e,"Q",(function(){return N})),n.d(e,"k",(function(){return L})),n.d(e,"T",(function(){return E})),n.d(e,"P",(function(){return $})),n.d(e,"H",(function(){return I})),n.d(e,"j",(function(){return z})),n.d(e,"R",(function(){return B})),n.d(e,"l",(function(){return R})),n.d(e,"I",(function(){return T})),n.d(e,"t",(function(){return M})),n.d(e,"g",(function(){return Q})),n.d(e,"x",(function(){return V})),n.d(e,"v",(function(){return W})),n.d(e,"s",(function(){return q})),n.d(e,"r",(function(){return G})),n.d(e,"J",(function(){return J})),n.d(e,"u",(function(){return H}));var i=n("284b"),r=function(t){return i["a"].post("/adminv2/miniprogram/videoList",t)},a=function(t){return i["a"].post("/adminv2/miniprogram/addVideoForProgram",t)},o=function(t){return i["a"].post("/adminv2/applet/banner/list",t)},u=function(t){return i["a"].post("/adminv2/applet/banner/add",t)},c=function(t){return i["a"].post("/adminv2/applet/banner/detail",t)},s=function(t){return i["a"].post("/adminv2/applet/banner/update",t)},l=function(t){return i["a"].post("/adminv2/applet/banner/delete",t)},d=function(t){return i["a"].post("/adminv2/applet/banner/enableFlag",t)},f=function(t){return i["a"].post("/adminv2/applet/privateAd/add",t)},p=function(t){return i["a"].post("/adminv2/applet/privateAd/detail",t)},m=function(t){return i["a"].post("/adminv2/applet/privateAd/update",t)},v=function(t){return i["a"].post("/adminv2/applet/liveDesc/add",t)},h=function(t){return i["a"].post("/adminv2/applet/liveDesc/update",t)},g=function(t){return i["a"].post("/adminv2/applet/liveDesc/list",t)},b=function(t){return i["a"].post("/adminv2/applet/liveDesc/delete",t)},w=function(t){return i["a"].post("/adminv2/applet/sharePoster/list",t)},y=function(t){return i["a"].post("/adminv2/applet/sharePoster/add",t)},U=function(t){return i["a"].post("/adminv2/applet/sharePoster/update",t)},O=function(t){return i["a"].post("/adminv2/applet/sharePoster/enableFlag",t)},F=function(t){return i["a"].post("/adminv2/applet/sharePoster/delete",t)},C=function(t){return i["a"].post("/adminv2/applet/liveDesc/getShowSwitch",t)},S=function(t){return i["a"].post("/adminv2/applet/liveDesc/isShowSwitch",t)},x=function(t){return i["a"].post("/adminv2/applet/active/list",t)},j=function(t){return i["a"].post("/adminv2/applet/active/add",t)},A=function(t){return i["a"].post("/adminv2/applet/active/update",t)},_=function(t){return i["a"].post("/adminv2/applet/active/enableFlag",t)},D=function(t){return i["a"].post("/adminv2/applet/active/delete",t)},P=function(t){return i["a"].post("/adminv2/activities/shuihu/commentList",t)},k=function(t){return i["a"].post("/adminv2/activities/shuihu/commentEnableFlag",t)},N=function(t){return i["a"].post("/adminv2/activities/shuihu/topicList",t)},L=function(t){return i["a"].post("/adminv2/activities/shuihu/addTopic",t)},E=function(t){return i["a"].post("/adminv2/activities/shuihu/updateTopic",t)},$=function(t){return i["a"].post("/adminv2/activities/shuihu/topicEnableFlag",t)},I=function(t){return i["a"].post("/adminv2/activities/shuihu/qaList",t)},z=function(t){return i["a"].post("/adminv2/activities/shuihu/addQa",t)},B=function(t){return i["a"].post("/adminv2/activities/shuihu/updateQa",t)},R=function(t){return i["a"].post("/adminv2/activities/shuihu/answerList",t)},T=function(t){return i["a"].post("/adminv2/activities/shuihu/saveAnswer",t)},M=function(t){return i["a"].post("/adminv2/activities/shuihu/getAnswerInfo",t)},Q=function(t){return i["a"].post("/adminv2/activities/shuihu/activeQr",t)},V=function(t){return i["a"].post("/adminv2/activities/shuihu/isShowSwitch",t)},W=function(t){return i["a"].post("/adminv2/activities/shuihu/getShowSwitch",t)},q=function(t){return i["a"].post("/adminv2/activities/shuihu/getActiveQr",t)},G=function(t){return i["a"].post("/adminv2/activities/shuihu/gameList",t)},J=function(t){return i["a"].post("/adminv2/activities/shuihu/saveGame",t)},H=function(t){return i["a"].post("/adminv2/activities/shuihu/getGameInfo",t)}},"432b":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("5530"),r=n("2f62"),a={computed:Object(i["a"])({},Object(r["b"])({sideCollapsed:function(t){return t.app.sideCollapsed}}))}},"481e":function(t,e,n){},"4de4":function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").filter,a=n("1dde"),o=a("filter");i({target:"Array",proto:!0,forced:!o},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},5146:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"positionT0L0"},[n("div",{staticClass:"app-form"},[n("a-form-model",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules,labelAlign:"right","label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[n("a-form-model-item",{ref:"title",attrs:{label:"视频名称",prop:"title"}},[n("a-input",{staticStyle:{width:"420px"},attrs:{placeholder:"请输入视频名称"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}},[n("div",{attrs:{slot:"addonAfter"},slot:"addonAfter"},[t._v(t._s(t.form.title.length)+"/45")])])],1),n("a-form-model-item",{ref:"coverUrl",attrs:{label:"视频封面",prop:"coverUrl"}},[n("UpdataImg",{attrs:{imageUrlNum:1,imgUrl:t.coverUrlArr,urlSize:500},on:{avatarfns:t.imgUrlFn}}),t.isImageAry?n("span",{staticStyle:{color:"#f5222d"}},[t._v("请上传视频封面")]):t._e()],1),n("a-form-model-item",{ref:"videoUrl",attrs:{label:"视频上传",prop:"videoUrl"}},[n("QiniuVideoAudio",{attrs:{oldFileName:t.form.videoUrl,type:2,id:"videoUpdate"},on:{videoFn:t.videoFn,changeOldFileName:t.changeOldFileName}}),n("div",{staticStyle:{"font-weight":"600","line-height":"15px"}},[t._v("格式支持mp4,为保证音频加载与播放的流畅性,"),n("br"),t._v("建议上传大小不超过100M。")]),t.isVideoUrl?n("span",{staticStyle:{color:"#f5222d"}},[t._v("请上传视频")]):t._e()],1)],1)],1),n("footer-tool-bar",{attrs:{collapsed:t.sideCollapsed}},[n("a-button",{staticClass:"margin_right60",on:{click:function(e){return t.$router.go(-1)}}},[t._v("返回")]),n("a-button",{attrs:{type:"primary",loading:t.isDisabled},on:{click:t.keepClick}},[t._v("保存")])],1)],1)},r=[],a=(n("d3b7"),n("25f0"),n("5a70")),o=n("432b"),u=n("3284"),c=n("a65c"),s=n("5497"),l={mixins:[o["a"]],components:{FooterToolBar:a["a"],UpdataImg:c["a"],QiniuVideoAudio:s["a"]},data:function(){return{labelCol:{span:2},wrapperCol:{span:12},isDisabled:!1,isImageAry:!1,isVideoUrl:!1,coverUrlArr:[],form:{title:"",coverUrl:"",videoUrl:""},rules:{title:[{required:!0,message:"请输入视频名称",trigger:"blur"},{max:45,message:"最多输入45个字符",trigger:"change"}],coverUrl:[{required:!0,message:""}],videoUrl:[{required:!0,message:""}]}}},created:function(){},methods:{imgUrlFn:function(t){this.form.coverUrl=t},videoFn:function(t){this.form.videoUrl=t.fileUrl},changeOldFileName:function(t){},keepClick:function(){var t=this,e=this;return this.form.coverUrl.length>0?(this.isImageAry=!1,this.form.videoUrl?(this.isVideoUrl=!1,e.isDisabled=!0,setTimeout((function(){e.isDisabled=!1}),3e3),void e.$refs.ruleForm.validate((function(n){n&&(t.form.coverUrl=t.coverUrlArr.toString(),Object(u["a"])(e.form).then((function(t){200==t.code&&(e.$message.success("新增成功"),e.$router.push("/appletsManage/liveBroadcast"))})))}))):(this.isVideoUrl=!0,!1)):(this.isImageAry=!0,!1)}},beforeDestroy:function(){sessionStorage.removeItem("formData")}},d=l,f=(n("79e9"),n("2877")),p=Object(f["a"])(d,i,r,!1,null,"7fb8d6a6",null);e["default"]=p.exports},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");var i=n("ade3");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e0||t.readOnly?t._l(t.imgUrl,(function(e,i){return n("div",{key:i,staticClass:"box",on:{mouseenter:function(e){return t.handleMouse(i)},mouseleave:function(e){t.indexChange=-1}}},[n("img",{attrs:{src:e,alt:""}}),t.readOnly?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:t.indexChange==i,expression:"indexChange == index"}],staticClass:"mark",on:{click:function(e){return t.circleClick(i)}}},[t._v("删除 ")])])})):t._e(),t.imgUrl.length1024*e){var i=this.urlSize>=1024?this.urlSize/1024+"M":"".concat(e,"k");return c["a"].warning("图片大小不能超过".concat(i)),!1}var r=new FileReader;r.readAsDataURL(n),r.onload=function(e){if(1==t.sizeWh){var i=0,r=0,o=new Image;o.src=e.target.result,o.onload=function(){i=this.width,r=this.height},setTimeout((function(){if(console.log(i,r),i>650||r>1e3)return c["a"].warning("请上传小于等于650*1000图片!"),!1;var o=t.dataURLtoFile(e.target.result,n.name),s=new window.FormData;s.append("uploadFile",o),u.a.post("".concat(a["a"],"/admin/files/upload/images"),s).then((function(e){200==e.data.code&&(t.imgUrl.push(e.data.data.url),t.$emit("avatarfns",t.imgUrl))}))}),1e3)}else{var s=t.dataURLtoFile(e.target.result,n.name),l=new window.FormData;l.append("uploadFile",s),u.a.post("".concat(a["a"],"/admin/files/upload/images"),l).then((function(e){200==e.data.code&&(t.imgUrl.push(e.data.data.url),t.$emit("avatarfns",t.imgUrl))}))}}},GetPercent:function(t,e){return t=parseFloat(t),e=parseFloat(e),isNaN(t)||isNaN(e)?"-":Math.round(t/e*100)/100},dataURLtoFile:function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),a=r.length,o=new Uint8Array(a);while(a--)o[a]=r.charCodeAt(a);return new File([o],e,{type:i})}},mounted:function(){}},l=s,d=(n("9644"),n("2877")),f=Object(d["a"])(l,i,r,!1,null,"6b1c416e",null);e["a"]=f.exports},ade3:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return i}))},b64b:function(t,e,n){var i=n("23e7"),r=n("7b0b"),a=n("df75"),o=n("d039"),u=o((function(){a(1)}));i({target:"Object",stat:!0,forced:u},{keys:function(t){return a(r(t))}})},dbb4:function(t,e,n){var i=n("23e7"),r=n("83ab"),a=n("56ef"),o=n("fc6a"),u=n("06cf"),c=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){var e,n,i=o(t),r=u.f,s=a(i),l={},d=0;while(s.length>d)n=r(i,e=s[d++]),void 0!==n&&c(l,e,n);return l}})},e439:function(t,e,n){var i=n("23e7"),r=n("d039"),a=n("fc6a"),o=n("06cf").f,u=n("83ab"),c=r((function(){o(1)})),s=!u||c;i({target:"Object",stat:!0,forced:s,sham:!u},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},e481:function(t,e,n){"use strict";n("9940")}}]); //# sourceMappingURL=LiveBroadcastEidt.d8e42d70.js.map