徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
31 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fbc6cd1e"],{"0b65":function(t,e,r){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,r=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,r))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},"0f27":function(t,e,r){},"48ec":function(t,e,r){"use strict";r("0f27")},"4bae4":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAB4RJREFUeF7tnU2MU2UUhs97S2dkptNOZEfAEDHKwqmgSxdqogtCAiEoUYJBRPCHH5kp7kzERHYtowOGBSAu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J7OHmXiuiYDWyE4AhCNoS2VXE/NW2VbVnVECwBrEuwanUT5/jplDRiJaJDIBAAUKh2fAdxdPZbYz02sinaopowQA2pFOtK4sAZ6z5fLUoav500TUYqSmRdISyE1qDM/qXdvcXwI8PMUD85l5PxF70tyqn1oSQBHAwnQiesivugF4GHJ2HTN1KuRaApW01odL7elErGvE1W2Ab05ycbd+XEsCV5WXHOAtHZncuwIe+U4uXMu/T4TlunVdVbiBLSptLRPvCjWE3/O/c8uN3DHBty7wd6E4n18ApnkEmsnEU/WwZmAshxv7hx8J/cR0lkE9CIcPptc1nb+bq/8AgXe+fDicnkcAAAAASUVORK5CYII="},5953:function(t,e,r){"use strict";r.r(e);var n=r("2f62"),i=r("b7be"),o=r("61f7"),a=r("0b65");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={name:"videoDetails",computed:l(l({},Object(n.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:90},labelPosition:function(){return this.isMobile?"top":"right"}}),data:function(){return{modals:!1,activeName:"detail",formValidate:{},tableData:[],columns:[{title:"ID",key:"id",width:60},{title:"商品信息",slot:"info",minWidth:180},{title:"商品分类",key:"cate_name",minWidth:180},{title:"售价",key:"price",minWidth:180},{title:"库存",key:"stock",minWidth:180}]}},created:function(){},methods:{verify:function(){this.$emit("verifyFun",this.formValidate)},force:function(){this.$emit("forceFun",this.formValidate)},getInfo:function(t){var e=this;Object(i.Qb)(t).then((function(t){e.formValidate=t.data,e.tableData=t.data.productInfo})).catch((function(t){e.$Message.error(t.msg)}))}}},m=(r("48ec"),r("2877")),d=Object(m.a)(f,(function(){var t=this,e=t._self._c;return e("div",[e("Drawer",{attrs:{closable:!1,width:"1000","class-name":"order_box",styles:{padding:0}},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("div",{staticClass:"header acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("div",{staticClass:"pictrue"},[e("img",{attrs:{src:r("4bae4")}})]),e("div",{staticClass:"text"},[e("div",{staticClass:"name"},[t._v("短视频")]),e("div",{staticClass:"info"},[t._v("商户名称:"+t._s(t.formValidate.type_name||"-"))])])]),0==t.formValidate.is_verify?e("Button",{attrs:{type:"primary"},on:{click:t.verify}},[t._v("审核")]):t._e(),1==t.formValidate.type&&1==t.formValidate.is_verify?e("Button",{attrs:{type:"error"},on:{click:t.force}},[t._v("强制下架")]):t._e()],1),e("Tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("TabPane",{attrs:{label:"基础信息",name:"detail"}}),e("TabPane",{attrs:{label:"关联商品",name:"product"}})],1),e("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{directives:[{name:"show",rawName:"v-show",value:"detail"===t.activeName,expression:"activeName === 'detail'"}]},[e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"视频简介:",prop:"desc"}},[e("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{type:"textarea",rows:3,placeholder:"请输入视频简介",readonly:""},model:{value:t.formValidate.desc,callback:function(e){t.$set(t.formValidate,"desc",e)},expression:"formValidate.desc"}})],1)],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"上传视频:",prop:"video_url"}},[t.formValidate.video_url?e("div",{staticClass:"iview-video-style"},[e("video",{staticClass:"video-style",attrs:{src:t.formValidate.video_url,controls:"controls"}})]):t._e()])],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"封面图:",prop:"image"}},[e("div",{staticClass:"pictrueBox"},[e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]})])])])],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"排序:"}},[e("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:99999999,readonly:""},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:"product"===t.activeName,expression:"activeName === 'product'"}],staticClass:"margins"},[e("Table",{attrs:{columns:t.columns,data:t.tableData,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"info",fn:function(r){var n=r.row;return[e("div",{staticClass:"imgPic acea-row row-middle"},[e("viewer",[e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image,expression:"row.image"}]})])]),e("div",{staticClass:"info"},[e("Tooltip",{attrs:{"max-width":"200",placement:"bottom",transfer:""}},[e("span",{staticClass:"line2"},[t._v(t._s(n.store_name)+t._s(n.suk))]),e("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(n.store_name)+t._s(n.suk))])])],1)],1)]}}])})],1)],1)],1)],1)}),[],!1,null,"7db753c6",null).exports,h=r("d708");function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new L(n||[]);return i(a,"_invoke",{value:A(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var m="suspendedStart",d="suspendedYield",h="executing",g="completed",y={};function b(){}function w(){}function D(){}var O={};l(O,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(M([])));x&&x!==r&&n.call(x,a)&&(O=x);var j=D.prototype=b.prototype=Object.create(O);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,o,a,s){var c=f(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==p(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function A(e,r,n){var i=m;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var l=f(e,r,n);if("normal"===l.type){if(i=n.done?g:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=g,n.method="throw",n.arg=l.arg)}}}function E(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(p(e)+" is not iterable")}return w.prototype=D,i(j,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:w,configurable:!0}),w.displayName=l(D,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,D):(t.__proto__=D,l(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},F(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new k(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(j),l(j,c,"Generator"),l(j,a,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function g(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){g(o,n,i,a,s,"next",t)}function s(t){g(o,n,i,a,s,"throw",t)}a(void 0)}))}}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){D(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function D(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var O={name:"index",components:{videoDetails:d},filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(o.a)(e,"yyyy-MM-dd")}}},data:function(){return{roterPre:h.a.roterPre,timeVal:[],tableFrom:{keyword:"",data:"",page:1,limit:15,is_verify:""},options:a.a,headeNum:[{type:"",name:"全部"},{type:"1",name:"已通过审核"},{type:"0",name:"待审核"},{type:"-1",name:"审核未通过"},{type:"-2",name:"强制下架"}],loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"视频",slot:"image",minWidth:90},{title:"视频介绍",slot:"desc",minWidth:150},{title:"发布人",key:"type_name",minWidth:150},{title:"浏览数",key:"play_num",minWidth:100},{title:"评论数",key:"comment_num",minWidth:100},{title:"收藏数",key:"collect_num",minWidth:100},{title:"点赞数",key:"like_num",minWidth:80},{title:"分享数",key:"share_num",minWidth:80},{title:"关联商品",key:"product_num",minWidth:80},{title:"审核状态",slot:"is_verify",minWidth:100},{title:"是否展示",slot:"is_show",minWidth:100},{title:"是否推荐",slot:"is_recommend",minWidth:100},{title:"排序",key:"sort",minWidth:80},{title:"创建时间",key:"add_time",minWidth:150},{title:"操作",slot:"action",fixed:"right",minWidth:200}],tableList:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},total:0}},computed:w(w({},Object(n.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{verifyFun:function(t){this.verify(t)},forceFun:function(t){this.force(t)},changeMenu:function(t,e,r){switch(e){case"2":this.force(t);break;case"3":this.$router.push({path:this.roterPre+"/marketing/short_video/comment",query:{id:t.id}});break;case"4":this.del(t,"删除视频",r)}},onchangeTime:function(t){this.timeVal=t,this.tableFrom.data=this.timeVal[0]?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},onClickTab:function(t){this.tableFrom.page=1,this.tableFrom.is_verify=t,this.getList()},reset:function(){this.tableFrom.keyword="",this.tableFrom.data="",this.timeVal="",this.tableFrom.page=1,this.tableFrom.is_verify="",this.getList()},verify:function(t){var e=this,r={id:t.id};this.$Modal.confirm({title:"温馨提示",render:function(t){return t("div",[t("Icon",{style:{position:"absolute",top:"-55px",right:"-25px",cursor:"pointer"},props:{type:"ios-close",size:31,color:"#999"},on:{click:function(){e.$Modal.remove()}}}),t("div",{style:{paddingLeft:"40px",fontSize:"14px",color:"#515a6e",cursor:"pointer"}},"是否要确定该视频审核通过?")])},okText:"确定",cancelText:"拒绝",onOk:function(){r.verify=1,Object(i.Xb)(r).then((function(t){e.$Message.success(t.msg),e.getList()})).catch((function(t){e.$Message.error(t.msg)}))},onCancel:function(){r.verify=2,Object(i.Xb)(r).then((function(t){e.$Message.success(t.msg),e.getList()})).catch((function(t){e.$Message.error(t.msg)}))}})},seeInfo:function(t){this.$refs.detailss.modals=!0,this.$refs.detailss.getInfo(t.id),this.$refs.detailss.activeName="detail"},force:function(t){var e=this;this.$Modal.confirm({title:"温馨提示",content:"是否确定该视频强制下架?",onOk:function(){Object(i.Wb)(t.id).then((function(t){e.$Message.success(t.msg),e.getList()})).catch((function(t){e.$message.error(t.msg)}))},onCancel:function(){e.$Message.info("已取消")}})},add:function(){this.$router.push({path:"".concat(this.roterPre,"/marketing/short_video/create")})},getList:function(){var t=this;this.loading=!0,this.tableFrom.is_verify=this.tableFrom.is_verify||"",Object(i.Rb)(this.tableFrom).then(function(){var e=y(v().mark((function e(r){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},edit:function(t){this.$router.push({path:this.roterPre+"/marketing/short_video/create/"+t.id})},del:function(t,e,r){var n=this,i={title:e,num:r,url:"/marketing/video/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(i).then((function(t){n.$Message.success(t.msg),n.tableList.splice(r,1),n.tableList.length||(n.tableFrom.page=1==n.tableFrom.page?1:n.tableFrom.page-1),n.getList()})).catch((function(t){n.$Message.error(t.msg)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},userSearchs:function(){this.tableFrom.page=1,this.getList()},onchangeIsShow:function(t){var e=this,r={id:t.id,status:t.is_show};Object(i.Vb)(r).then(function(){var t=y(v().mark((function t(r){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg),e.getList();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},onchangeIsRecommend:function(t){var e=this,r={id:t.id,recommend:t.is_recommend};Object(i.Ub)(r).then(function(){var t=y(v().mark((function t(r){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg),e.getList();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}}},_=(r("eebb"),Object(m.a)(O,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"tableFrom",attrs:{model:t.tableFrom,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"时间筛选:"}},[e("DatePicker",{staticClass:"input-add",attrs:{editable:!1,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),e("FormItem",{attrs:{label:"视频搜索:","label-for":"store_name"}},[e("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入视频简介/ID"},on:{"on-search":t.userSearchs},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}}),e("Button",{staticClass:"mr14",attrs:{type:"primary"},on:{click:function(e){return t.userSearchs()}}},[t._v("查询")]),e("Button",{on:{click:t.reset}},[t._v("重置")])],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Tabs",{on:{"on-click":t.onClickTab}},t._l(t.headeNum,(function(t,r){return e("TabPane",{key:r,attrs:{label:t.name,name:t.type}})})),1),e("Button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.add}},[t._v("添加视频")]),e("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var r=t.row;return[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.image,expression:"row.image"}]})])])]}},{key:"desc",fn:function(r){var n=r.row;return[e("Tooltip",{attrs:{"max-width":"200",placement:"bottom"}},[e("div",{staticClass:"line2"},[t._v(t._s(n.desc))]),e("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(n.desc))])])]}},{key:"is_verify",fn:function(r){var n=r.row;return[1==n.type?e("div",[e("Tag",{directives:[{name:"show",rawName:"v-show",value:0==n.is_verify,expression:"row.is_verify == 0"}],attrs:{color:"orange",size:"medium"}},[t._v("待审核")]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:1==n.is_verify,expression:"row.is_verify == 1"}],attrs:{color:"green",size:"medium"}},[t._v("审核通过")]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:-1==n.is_verify,expression:"row.is_verify == -1"}],attrs:{color:"red",size:"medium"}},[t._v("审核未通过")]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:-2==n.is_verify,expression:"row.is_verify == -2"}],attrs:{color:"red",size:"medium"}},[t._v("已强制下架")])],1):e("div",[t._v("-")])]}},{key:"is_show",fn:function(r){var n=r.row;return[e("i-switch",{attrs:{value:n.is_show,"true-value":1,"false-value":0,disabled:-2==n.is_verify,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(n)}},model:{value:n.is_show,callback:function(e){t.$set(n,"is_show",e)},expression:"row.is_show"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"is_recommend",fn:function(r){var n=r.row;return[e("i-switch",{attrs:{value:n.is_recommend,"true-value":1,"false-value":0,disabled:-2==n.is_verify,size:"large"},on:{"on-change":function(e){return t.onchangeIsRecommend(n)}},model:{value:n.is_recommend,callback:function(e){t.$set(n,"is_recommend",e)},expression:"row.is_recommend"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"action",fn:function(r){var n=r.row,i=r.index;return[e("a",{on:{click:function(e){return t.seeInfo(n)}}},[t._v("详情")]),e("Divider",{attrs:{type:"vertical"}}),0==n.type?e("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]):t._e(),0==n.type?e("Divider",{attrs:{type:"vertical"}}):t._e(),0==n.is_verify?e("a",{on:{click:function(e){return t.verify(n)}}},[t._v("审核")]):t._e(),0==n.is_verify?e("Divider",{attrs:{type:"vertical"}}):t._e(),[e("Dropdown",{attrs:{transfer:!0},on:{"on-click":function(e){return t.changeMenu(n,e,i)}}},[e("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n 更多\n "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[1==n.type&&1==n.is_verify?e("DropdownItem",{attrs:{name:"2"}},[t._v("强制下架")]):t._e(),1==n.is_verify?e("DropdownItem",{attrs:{name:"3"}},[t._v("查看评论")]):t._e(),e("DropdownItem",{attrs:{name:"4"}},[t._v("删除")])],1)],1)]]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.tableFrom.page,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1),e("video-details",{ref:"detailss",on:{verifyFun:t.verifyFun,forceFun:t.forceFun}})],1)],1)}),[],!1,null,"587ba800",null));e.default=_.exports},"61f7":function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(e)){var i=r[n]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?i:c(i))}return e}function c(t){return("00"+t).substr(t.length)}r.d(e,"a",(function(){return s})),r.d(e,"c",(function(){return f})),r.d(e,"b",(function(){return m}));var l={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},u=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function f(t){return o({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function m(t){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}u(f,"请输入%s"),u(m,"%s格式不正确");var d=Object.keys(l).reduce((function(t,e){return t[e]=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:a({},e,t);return o(o({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i),n)},u(t[e],l[e]),t}),{})},eebb:function(t,e,r){"use strict";r("f08f")},f08f:function(t,e,r){}}]);