chunk-57b2fa50.5887ce25.js 3.8 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-57b2fa50"],{"166d":function(t,e,a){"use strict";a("f6cf")},"308b":function(t,e,a){"use strict";a.d(e,"f",(function(){return i})),a.d(e,"d",(function(){return l})),a.d(e,"e",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return c}));var s=a("f175");const i=t=>s.a.get("/live.LiveRoom/lists",{params:t}),l=t=>s.a.post("/live.LiveRoom/add",t),o=t=>s.a.post("/live.LiveRoom/del",t),n=t=>s.a.get("/live.LiveGoods/lists",{params:t}),r=t=>s.a.post("/live.LiveGoods/add",t),c=t=>s.a.post("/live.LiveGoods/del",t)},"7aac9":function(t,e,a){t.exports=a.p+"img/wechatzhibo.e52d29cb.png"},"7c18":function(t,e,a){"use strict";a.r(e);a("14d9");var s=a("9ab4"),i=a("1b40"),l=a("6ddb"),o=a("3c50"),n=a("308b"),r=a("4201"),c=a("0a6d");let d=class extends i.e{constructor(){super(...arguments),this.srcList=["https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg"],this.weChatZhiBoImg=a("7aac9"),this.pager=new l.a}onAdd(){this.$router.push({path:"/live_broadcast/edit",query:{mode:r.g.ADD}})}onDelete(t){Object(n.e)({room_id:t.room_id}).then(()=>{this.getList()}).catch(()=>{})}onReset(){this.getList()}getList(){this.pager.request({callback:n.f}).catch(()=>{this.$message.error("数据请求失败,刷新重载")})}created(){this.getList()}};d=Object(s.a)([Object(i.a)({components:{LsPagination:o.a,LsDialog:c.a}})],d);var u=d,p=(a("166d"),a("2877")),m=Object(p.a)(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"live-broadcast"},[a("div",{staticClass:"ls-card"},[a("el-alert",{staticClass:"xxl",attrs:{type:"info",closable:!1}},[a("template",{slot:"title"},[a("div",{staticClass:"iconSize"},[t._v("温馨提示:")]),a("div",{staticClass:"iconSize"},[t._v("1.同步直播间信息每天最多可同步100000次,请合理使用同步次数;")]),a("div",{staticClass:"iconSize flex col-top"},[a("div",{},[t._v("2.扫描微信直播二维码开启直播:")]),a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.weChatZhiBoImg,"preview-src-list":[t.weChatZhiBoImg]}})],1)])],2)],1),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"list-header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onAdd()}}},[t._v("创建直播间")]),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.onReset()}}},[t._v("同步直播间")])],1),a("div",{staticClass:"list-table m-t-16"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticStyle:{width:"100%"},attrs:{data:t.pager.lists,size:"mini","header-cell-style":{background:"#f5f8ff"}}},[a("el-table-column",{attrs:{prop:"room_id",label:"直播间ID"}}),a("el-table-column",{attrs:{prop:"name",label:"直播间标题"}}),a("el-table-column",{attrs:{prop:"anchor_name",label:"主播昵称"}}),a("el-table-column",{attrs:{prop:"start_time",label:"开播时间","min-width":"120"}}),a("el-table-column",{attrs:{prop:"end_time",label:"结束时间","min-width":"120"}}),a("el-table-column",{attrs:{prop:"goods",label:"商品数量"}}),a("el-table-column",{attrs:{prop:"live_status",label:"状态"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:"确定删除直播间:"+e.row.name},on:{confirm:function(a){return t.onDelete(e.row)}}},[a("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("删除")])],1)]}}])})],1)],1),a("div",{staticClass:"flex row-right m-t-16 row-right"},[a("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)])])}),[],!1,null,"ffddb180",null);e.default=m.exports},f6cf:function(t,e,a){}}]);