VideoAdd.fe5349ce.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["VideoAdd"],{"1a4b":function(e,t,a){"use strict";var r=a("688a"),n=a.n(r);n.a},"512e":function(e,t,a){"use strict";var r=a("9094"),n=a.n(r);n.a},"688a":function(e,t,a){},"6d0c":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"view",attrs:{id:"web_VideoAdd"}},[a("el-form",{ref:"params",staticClass:"form",attrs:{model:e.params,rules:e.rules,"label-position":""}},[a("el-row",[a("el-col",{staticClass:"add-left",attrs:{span:18,sm:18,md:18,lg:18}},[a("div",{staticClass:"add-left-first"},[a("el-form-item",{attrs:{prop:"lang"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Lang",expression:"'Label.Lang'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("div",{staticClass:"chooseLang"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.cn",expression:"'Web_info.cn'"}],staticClass:"crm-cursor",class:{active:"cn"==e.params.lang},on:{click:function(t){return e.chooseLang("cn")}}}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.en",expression:"'Web_info.en'"}],staticClass:"crm-cursor",class:{active:"en"==e.params.lang},on:{click:function(t){return e.chooseLang("en")}}})])])]),a("el-form-item",{attrs:{prop:"valid"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Show",expression:"'Label.Show'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("el-switch",{staticClass:"crm_switch",attrs:{"active-value":1,"inactive-value":0,"active-text":e.$t("Btn.Yes"),"inactive-text":e.$t("Btn.No"),"active-color":"#368FEC","inactive-color":"#EB3F57"},model:{value:e.params.valid,callback:function(t){e.$set(e.params,"valid",t)},expression:"params.valid"}})],1)])],1),a("el-form-item",{attrs:{prop:"title"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Title",expression:"'Label.Title'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("el-input",{staticClass:"m-input",attrs:{placeholder:e.$t("Placeholder.Input")},model:{value:e.params.title,callback:function(t){e.$set(e.params,"title","string"===typeof t?t.trim():t)},expression:"params.title"}})],1)]),a("el-form-item",{attrs:{prop:"tags"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Tag",expression:"'Label.Tag'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:e.$t("Placeholder.Choose")},model:{value:e.params.tags,callback:function(t){e.$set(e.params,"tags",t)},expression:"params.tags"}},e._l(e.tags_options,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.tag}})})),1)],1)]),a("el-form-item",{attrs:{prop:"subTitle"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Des",expression:"'Label.Des'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("el-input",{staticClass:"m-input",attrs:{type:"textarea",maxlength:"200",placeholder:e.$t("Placeholder.Textarea")},model:{value:e.params.subTitle,callback:function(t){e.$set(e.params,"subTitle","string"===typeof t?t.trim():t)},expression:"params.subTitle"}})],1)]),a("div",{staticClass:"add-left-first"},[a("el-form-item",{attrs:{prop:"deliveryTime"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.ReleaseTime",expression:"'Label.ReleaseTime'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:e.$t("Placeholder.ChooseDate")},model:{value:e.params.deliveryTime,callback:function(t){e.$set(e.params,"deliveryTime",t)},expression:"params.deliveryTime"}})],1)]),a("el-form-item",{attrs:{prop:"date"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.CutTime",expression:"'Label.CutTime'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("el-date-picker",{staticClass:"crm_date_pick",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-","start-placeholder":e.$t("Placeholder.Start"),"end-placeholder":e.$t("Placeholder.End")},on:{input:e.selectTime},model:{value:e.params.date,callback:function(t){e.$set(e.params,"date",t)},expression:"params.date"}})],1)])],1),a("el-form-item",{attrs:{prop:"content"}},[a("div",{staticClass:"my-form-item-label"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.PublishContent",expression:"'Label.PublishContent'"}]}),e._v(":")]),a("div",{staticClass:"my-form-item-con"},[a("tinymce",{ref:"editor",attrs:{context:e.context,disabled:e.disabled},on:{tinymcehtml:e.tinymceHtml},model:{value:e.params.content,callback:function(t){e.$set(e.params,"content",t)},expression:"params.content"}})],1)])],1),a("el-col",{attrs:{span:6,sm:6,md:6,lg:6}},[a("el-form-item",{attrs:{prop:"videoUrl"}},[a("div",{staticClass:"my-form-item-label label-left"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"news_add_field.Label.Video",expression:"'news_add_field.Label.Video'"}]}),e._v(":")]),a("el-select",{staticStyle:{width:"100%","margin-bottom":"15px"},attrs:{placeholder:e.$t("Placeholder.Choose")},model:{value:e.urlTag,callback:function(t){e.urlTag=t},expression:"urlTag"}},[a("el-option",{attrs:{label:e.$t("news_add_field.Label.Upload"),value:1}}),a("el-option",{attrs:{label:e.$t("news_add_field.Label.Url"),value:2}})],1),1==e.urlTag?a("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.action,headers:e.AccessToken,disabled:"check"==e.type,"show-file-list":!1,"on-success":e.handleAvatarSuccess1,"before-upload":e.beforeAvatarUpload}},[e.params.videoUrl&&!e.imageUrl1?a("video",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:e.imgUrl+e.params.videoUrl}}):e._e(),e.imageUrl1?a("video",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:e.imageUrl1}}):a("div",[a("i",{staticClass:"el-icon-upload avatar-uploader-icon",staticStyle:{"font-size":"28px",opacity:"0.4"}}),a("div",{staticClass:"imgSize"},[e._v(e._s(e.uploadDes))])])]):e._e(),2==e.urlTag?a("el-input",{staticClass:"m-input",attrs:{clearable:"",placeholder:e.$t("Placeholder.Input")},model:{value:e.params.videoUrl,callback:function(t){e.$set(e.params,"videoUrl","string"===typeof t?t.trim():t)},expression:"params.videoUrl"}}):e._e()],1),1==e.urlTag?a("div",{directives:[{name:"t",rawName:"v-t",value:"news_add_field.Des.item3",expression:"'news_add_field.Des.item3'"}],staticClass:"imgDes"}):e._e(),2==e.urlTag?a("div",{directives:[{name:"t",rawName:"v-t",value:"news_add_field.Des.item4",expression:"'news_add_field.Des.item4'"}],staticClass:"imgDes"}):e._e()],1),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("div",{staticClass:"dialog-footer",staticStyle:{"margin-left":"100px"}},["add"==e.type?a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Release",expression:"'Btn.Release'"}],staticClass:"addBtn",attrs:{type:"primary"},on:{click:e.infoAdd}}):e._e(),"update"==e.type?a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"addBtn",attrs:{type:"primary"},on:{click:e.infoUpdate}}):e._e(),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)])],1)],1)],1)],1)},n=[],s=(a("4160"),a("c975"),a("d3b7"),a("ac1f"),a("3ca3"),a("1276"),a("159b"),a("ddb0"),a("2b3d"),a("5530")),i=(a("96cf"),a("1da1")),c=a("c554"),o=a("f121"),l=a.n(o),u=a("918d"),p=l.a.Code,d={name:"VideoAdd",components:{tinymce:u["a"]},data:function(){return{context:"",disabled:!1,plugins:"",flag:!1,url:l.a.Host85,imgUrl:l.a.Host85,imageUrl1:"",action:"",uploadDes:"",tags_options:[{id:1,tag:1,name:this.$i18n.t("news_add_field.Label.FinancialKnowledge")},{id:2,tag:2,name:this.$i18n.t("news_add_field.Label.FAQ")}],params:{lang:"cn",tags:[],date:[],valid:1,videoUrl:""},myId:"",type:"",urlTag:"",rules:{tags:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],subTitle:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],deliveryTime:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],content:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],title:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],date:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]}}},computed:{AccessToken:function(){return{"Access-Token":this.Session.Get("access_token")}}},methods:{tinymceHtml:function(e){this.params.content=e},getSingle:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].getVideoSingle({id:e.myId});case 2:a=t.sent,a.code==p.StatusOK?(e.params=a.data,e.context=a.data.content,r=[],e.params.tags.forEach((function(e){r.push(e.tag)})),e.params.tags=r,e.$set(e.params,"date",[a.data.startTime.split(" ")[0],a.data.endTime.split(" ")[0]]),n=e.params.videoUrl.indexOf("http"),e.urlTag=n>-1?2:1,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},selectTime:function(e){var t=this;this.$nextTick((function(){t.params.date=null,t.$set(t.params,"date",[e[0],e[1]])}))},infoUpdate:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:null==this.params.date||0==this.params.date.length?(this.params.startTime="",this.params.endTime=""):(this.params.startTime=this.params.date[0],this.params.endTime=this.params.date[1]),this.$refs["params"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var r,n,i,o,l,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=13;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:if(t.params.tags.length){for(r=t.params.tags,n=t.params.tags.length,i=[],o=0;o<n;o++)i.push({id:null,tag:null}),i[o].id=null,i[o].tag=r[o];t.params.tags=i}return e.next=9,c["a"].webVideoUpdate(Object(s["a"])({},t.params));case 9:l=e.sent,l.code==p.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(l.msg),u=[],t.params.tags.forEach((function(e){u.push(e.tag)})),t.params.tags=u),e.next=14;break;case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),infoAdd:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:null==this.params.date||0==this.params.date.length?(this.params.startTime="",this.params.endTime=""):(this.params.startTime=this.params.date[0],this.params.endTime=this.params.date[1]),this.$refs["params"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var r,n,i,o,l,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=13;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:if(t.params.tags.length){for(r=t.params.tags,n=t.params.tags.length,i=[],o=0;o<n;o++)i.push({id:null,tag:null}),i[o].id=null,i[o].tag=r[o];t.params.tags=i}return e.next=9,c["a"].webVideoAdd(Object(s["a"])({},t.params));case 9:l=e.sent,l.code==p.StatusOK?(t.$pigeon.MessageOK(l.msg),t.$refs["params"].resetFields(),t.params.tags=[],t.params.coverImage="",t.imageUrl1="",t.cancel(),t.flag=!1):(t.$pigeon.MessageError(l.msg),t.flag=!1,u=[],t.params.tags.forEach((function(e){u.push(e.tag)})),t.params.tags=u),e.next=14;break;case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(){this.$router.push({path:"/web/video"}).catch((function(e){return e}))},chooseLang:function(e){this.params.lang=e},handleAvatarSuccess1:function(e,t){200==e.code?(this.imageUrl1=URL.createObjectURL(t.raw),this.params.videoUrl=t.response.data,this.uploadDes=this.$i18n.t("Msg.Success")):this.$pigeon.MessageError(this.$i18n.t("Msg.Fail"))},beforeAvatarUpload:function(e){var t="video/mp4"===e.type||"video/avi",a=e.size/1024/1024<100;return t||this.$pigeon.MessageError(this.$i18n.t("Msg.JPG")),a||this.$pigeon.MessageError(this.$i18n.t("Msg.10IMG")),t&&a&&(this.params.videoUrl="",this.uploadDes=this.$i18n.t("news_add_field.Label.Uploading")),t&&a}},mounted:function(){this.myId=this.$route.query.id,this.type=this.$route.query.type,this.myId>=0?(this.getSingle(),this.action=this.url+"/web/video/update/upload/video"):this.action=this.url+"/web/video/add/upload/video"}},m=d,v=(a("1a4b"),a("512e"),a("2877")),h=Object(v["a"])(m,r,n,!1,null,"f339570a",null);t["default"]=h.exports},9094:function(e,t,a){},c554:function(e,t,a){"use strict";a("96cf");var r=a("1da1"),n=a("d4ec"),s=a("bee2"),i=a("262e"),c=a("2caf"),o=a("ff2d"),l=a("bc3a"),u=a.n(l),p=a("f121"),d=a.n(p),m=function(e){Object(i["a"])(a,e);var t=Object(c["a"])(a);function a(){var e;return Object(n["a"])(this,a),e=t.call(this),u.a.defaults.baseURL=d.a.Host85,e}return Object(s["a"])(a,[{key:"getList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/information/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getSingle",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/information/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoAdd",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/information/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoDelete",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/information/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoUpdate",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/information/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getActiveList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getActiveSingle",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveAdd",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveDelete",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveUpdate",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customGroupTypeList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/group/type/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getVideoList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/video/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getVideoSingle",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/video/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoAdd",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/video/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoDelete",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/video/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoUpdate",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/video/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(o["a"]);t["a"]=new m}}]);