chunk-71b4f817.c25da97f.js 14 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-71b4f817"],{"40f5":function(t,e,s){},4851:function(t,e,s){"use strict";var a=s("7f18");s.n(a).a},"7afb":function(t,e,s){"use strict";s.r(e);var a=s("2f62"),i=s("47c5"),o={name:"live_detail",data:function(){return{option:{form:{labelWidth:"150px"}},FormData:{},loading:!1}},methods:{getData:function(t){var e=this;this.loading=!0,Object(i.d)(t).then((function(t){e.FormData=t.data,e.loading=!1})).catch((function(t){e.$Message.error(t.msg),e.loading=!1}))}}},n=(s("4851"),s("2877")),r=Object(n.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"divBox"},[s("div",[s("div",{staticClass:"box-container"},[s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("直播间名称:")]),s("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("主播微信号:")]),s("span",{staticClass:"info"},[t._v(t._s(t.FormData.anchor_wechat))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("直播间ID:")]),s("span",{staticClass:"info"},[t._v(t._s(t.FormData.room_id))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("主播昵称:")]),s("span",{staticClass:"info"},[t._v(t._s(t.FormData.anchor_name))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("手机号:")]),s("span",{staticClass:"info"},[t._v(t._s(t.FormData.phone))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("直播状态:")]),s("span",{staticClass:"info"},[t._v(t._s(t._f("liveReviewStatusFilter")(t.FormData.live_status)))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("直播开始时间:")]),s("span",{staticClass:"info"},[t._v(t._s(t.FormData.start_time))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("直播结束时间:")]),s("span",{staticClass:"info"},[t._v(t._s(t.FormData.end_time))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("直播间类型:")]),s("span",{staticClass:"info"},[t._v(t._s(t._f("broadcastType")(t.FormData.type)))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("显示类型:")]),s("span",{staticClass:"info"},[t._v(t._s(t._f("broadcastDisplayType")(t.FormData.screen_type)))])]),s("div",{staticClass:"list sp image"},[s("label",{staticClass:"name"},[t._v("背景图:")]),s("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.cover_img}})]),s("div",{staticClass:"list sp image"},[s("label",{staticClass:"name"},[t._v("分享图:")]),s("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.share_img}})]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("是否关闭点赞:")]),s("span",{staticClass:"info blue"},[t._v(t._s(t._f("filterClose")(t.FormData.close_like)))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("是否关闭货架:")]),s("span",{staticClass:"info blue"},[t._v(t._s(t._f("filterClose")(t.FormData.close_goods)))])]),s("div",{staticClass:"list sp"},[s("label",{staticClass:"name"},[t._v("是否关闭评论:")]),s("span",{staticClass:"info blue"},[t._v(t._s(t._f("filterClose")(t.FormData.close_comment)))])]),s("div",{staticClass:"list"},[s("label",{staticClass:"name"},[t._v("是否显示直播回放:")]),s("span",{staticClass:"info blue"},[t._v(t._s(t._f("filterClose")(t.FormData.replay_status)))])])])])])}),[],!1,null,"ec45cc02",null).exports,l=s("c4ad");function c(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function d(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var u={name:"add_goods",components:{goodsList:l.default},computed:function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?c(s,!0).forEach((function(e){d(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):c(s).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}({},Object(a.e)("admin/layout",["isMobile","menuCollapse"])),props:{datas:{type:Object,default:function(){return{}}}},data:function(){return{modals:!1,goodsList:[]}},methods:{getProductId:function(t){var e=this;this.goodsList=this.goodsList.concat(t),this.$nextTick((function(t){setTimeout((function(){e.modals=!1}),300)}))},bindDelete:function(t){this.goodsList.splice(t,1)},bindSub:function(){var t=[];this.goodsList.map((function(e){t.push(e.product_id)})),this.$emit("getData",t)}}},m=(s("9011"),Object(n.a)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"item"},[s("span",[t._v("直播间名称:")]),t._v("\n "+t._s(t.datas.name)+"\n ")]),s("div",{staticClass:"item"},[s("span",[t._v("直播间ID:")]),t._v("\n "+t._s(t.datas.id)+"\n ")]),s("div",{staticClass:"item box"},[t._l(t.goodsList,(function(e,a){return s("div",{key:a,staticClass:"box-item"},[s("img",{attrs:{src:e.image,alt:""}}),s("Icon",{attrs:{type:"ios-close-circle",size:"20"},on:{click:function(e){return t.bindDelete(a)}}})],1)})),s("div",{staticClass:"upload-box",on:{click:function(e){t.modals=!0}}},[s("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1)],2),s("Card",{staticClass:"fixed-card",style:{left:t.menuCollapse?t.isMobile?"0":"80px":"200px"},attrs:{bordered:!1,"dis-hover":""}},[s("Form",[s("FormItem",["1"!==t.currentTab?s("Button",{staticStyle:{"margin-right":"10px"},on:{click:t.upTab}},[t._v("上一步")]):t._e(),"2"!==t.currentTab?s("Button",{staticClass:"submission",attrs:{type:"primary"},on:{click:function(e){return t.downTab("formValidate")}}},[t._v("下一步")]):s("Button",{staticClass:"submission",attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("保存并发布")])],1)],1)],1),s("Modal",{staticClass:"paymentFooter",attrs:{title:"商品列表",scrollable:"",width:"900","footer-hide":!0},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?s("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0,liveStatus:!0},on:{getProductId:t.getProductId}}):t._e()],1)],1)}),[],!1,null,"3333a5ab",null).exports),f=s("d708");function v(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function p(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var h={name:"live",components:{detailsFrom:r,addGoods:m,goodsList:l.default},data:function(){return{roterPre:f.a.roterPre,isShowBox:!1,modals:!1,total:0,grid:{xl:7,lg:7,md:12,sm:24,xs:24},formValidate:{status:"",kerword:"",page:1,limit:20},treeData:{withdrawal:[{title:"全部",value:""},{title:"直播中",value:1},{title:"未开始",value:2},{title:"已结束",value:3}]},columns1:[{key:"id",title:"直播间ID",width:80},{key:"name",minWidth:120,title:"直播间名称"},{key:"anchor_name",minWidth:120,title:"主播昵称"},{key:"anchor_wechat",minWidth:120,title:"主播微信号"},{key:"start_time",minWidth:130,title:"直播开始时间"},{key:"end_time",minWidth:130,title:"计划结束时间"},{key:"add_time",minWidth:130,title:"创建时间"},{slot:"is_mer_show",title:"显示状态",minWidth:80},{slot:"status",minWidth:80,title:"直播状态"},{key:"sort",minWidth:70,title:"排序"},{slot:"action",fixed:"right",title:"操作",minWidth:160}],tabList:[],loading:!1,activeItem:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?v(s,!0).forEach((function(e){p(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):v(s).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}({},Object(a.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(i.j)(this.formValidate).then((function(e){t.total=e.data.count,t.tabList=e.data.list,t.loading=!1}))},selChange:function(){this.formValidate.page=1,this.getList()},menusAdd:function(){this.$router.push({path:"".concat(this.roterPre,"/marketing/live/add_live_room")})},pageChange:function(t){this.formValidate.page=t,this.getList()},onchangeIsShow:function(t){var e=this,s=t.id,a=t.is_show;Object(i.l)(s,a).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},detail:function(t){this.modals=!0,this.$refs.studioDetail.getData(t.id)},addGoods:function(t){this.activeItem=t,this.isShowBox=!0},getData:function(t){var e=this;Object(i.k)({room_id:this.activeItem.id,goods_ids:t}).then((function(t){e.$Message.success(t.msg),e.isShowBox=!1,e.$refs.liveAdd.goodsList=[]})).catch((function(t){e.$Message.error(t.msg),e.isShowBox=!1,e.$refs.liveAdd.goodsList=[]}))},syncRoom:function(){var t=this;Object(i.n)().then((function(e){t.$Message.success(e.msg),t.getList()})).catch((function(e){t.$Message.error(res.msg)}))},del:function(t,e,s){var a=this,i={title:e,num:s,url:"live/room/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(i).then((function(t){a.$Message.success(t.msg),a.tabList.splice(s,1),a.tabList.length||(a.formValidate.page=1==a.formValidate.page?1:a.formValidate.page-1),a.getList()})).catch((function(t){a.$Message.error(t.msg)}))},getProductId:function(t){var e=[];t.map((function(t){e.push(t.product_id)})),this.getData(e)}}},g=(s("ff3f"),Object(n.a)(h,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[s("div",{staticClass:"new_card_pd"},[s("Form",{ref:"formValidate",staticClass:"tabform",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[s("FormItem",{attrs:{label:"直播状态:"}},[s("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:""},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},t._l(t.treeData.withdrawal,(function(e,a){return s("Option",{key:a,attrs:{value:e.value}},[t._v(t._s(e.title))])})),1)],1),s("FormItem",{attrs:{label:"搜索:"}},[s("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入直播间名称/ID/主播昵称/微信号","element-id":"name"},model:{value:t.formValidate.kerword,callback:function(e){t.$set(t.formValidate,"kerword",e)},expression:"formValidate.kerword"}}),s("Button",{attrs:{type:"primary"},on:{click:function(e){return t.selChange()}}},[t._v("查询")])],1)],1)],1)]),s("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[s("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-system_menus-add"],expression:"['setting-system_menus-add']"}],attrs:{type:"primary"},on:{click:function(e){return t.menusAdd("添加直播间")}}},[t._v("添加直播间")]),s("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-system_menus-add"],expression:"['setting-system_menus-add']"}],staticClass:"ml14",attrs:{type:"success"},on:{click:t.syncRoom}},[t._v("同步直播间")]),s("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.tabList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"is_mer_show",fn:function(e){var a=e.row;return e.index,[s("i-switch",{attrs:{value:a.is_show,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(a)}},model:{value:a.is_show,callback:function(e){t.$set(a,"is_show",e)},expression:"row.is_show"}},[s("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),s("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"status",fn:function(e){var a=e.row;return e.index,[s("Tag",{directives:[{name:"show",rawName:"v-show",value:-1!=[103,104,107].indexOf(a.live_status),expression:"[103,104,107].indexOf(row.live_status) != -1"}],attrs:{color:"default",size:"large"}},[t._v("已结束")]),s("Tag",{directives:[{name:"show",rawName:"v-show",value:-1!=[102].indexOf(a.live_status),expression:"[102].indexOf(row.live_status) != -1"}],attrs:{color:"orange",size:"large"}},[t._v("未开始")]),s("Tag",{directives:[{name:"show",rawName:"v-show",value:-1!=[101,105,106].indexOf(a.live_status),expression:"[101,105,106].indexOf(row.live_status) != -1"}],attrs:{color:"green",size:"large"}},[t._v("直播中")])]}},{key:"action",fn:function(e){var a=e.row,i=e.index;return[s("a",{on:{click:function(e){return t.detail(a,"详情")}}},[t._v("详情")]),s("Divider",{attrs:{type:"vertical"}}),s("a",{on:{click:function(e){return t.del(a,"删除这条信息",i)}}},[t._v("删除")]),s("Divider",{attrs:{type:"vertical"}}),s("a",{on:{click:function(e){return t.addGoods(a)}}},[t._v("添加商品")])]}}])}),s("div",{staticClass:"acea-row row-right page"},[s("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),s("Modal",{staticClass:"paymentFooter",attrs:{title:"直播间详情",scrollable:"",width:"700","footer-hide":!0},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[s("details-from",{ref:"studioDetail"})],1),s("Modal",{staticClass:"paymentFooter",attrs:{title:"添加商品",scrollable:"",width:"700","footer-hide":!0},model:{value:t.isShowBox,callback:function(e){t.isShowBox=e},expression:"isShowBox"}},[t.isShowBox?s("goods-list",{ref:"goodslist",attrs:{datas:t.activeItem,ischeckbox:!0,liveStatus:!0},on:{getProductId:t.getProductId}}):t._e()],1)],1)}),[],!1,null,"2913ac2b",null));e.default=g.exports},"7f18":function(t,e,s){},9011:function(t,e,s){"use strict";var a=s("ea4e");s.n(a).a},ea4e:function(t,e,s){},ff3f:function(t,e,s){"use strict";var a=s("40f5");s.n(a).a}}]);