canyin-project/ybcy/views/channel/index20240524/static/js/chunk-7a469fb0.9f23a0b4.js
2024-11-01 16:07:54 +08:00

1 line
5.7 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a469fb0"],{7838:function(t,e,a){},"9a9c":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[t._m(0),t._m(1),a("div",{staticClass:"mar_t20"},[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleEdit}},[t._v("创建直播间")]),a("el-button",{attrs:{type:"primary",loading:t.updtebtn,plain:"",size:"medium"},on:{click:t.updateLive}},[t._v("同步直播间")])],1),a("div",{staticClass:"tabledata mar_t20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,"element-loading-text":t.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{prop:"roomid",label:"房间ID"}}),a("el-table-column",{attrs:{prop:"name",label:"房间名"}}),a("el-table-column",{attrs:{prop:"anchor_name",label:"主播信息"}}),a("el-table-column",{attrs:{label:"封面图片",width:"150"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{trigger:"hover",placement:"top"}},[a("p",[a("img",{staticClass:"listImgWidth",attrs:{src:t.row.cover_img}})]),a("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"imgbox"},[a("img",{staticClass:"tabimg",attrs:{src:t.row.cover_img}})])])])]}}])}),a("el-table-column",{attrs:{prop:"time",label:"计划直播时间",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.start_time))]),a("div",[t._v(t._s(e.row.end_time))])]}}])}),a("el-table-column",{attrs:{prop:"live_status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[101==e.row.live_status?a("div",[a("el-tag",{attrs:{type:"success",size:"mini"}},[t._v("直播中")])],1):t._e(),102==e.row.live_status?a("div",[a("el-tag",{attrs:{type:"info",size:"mini"}},[t._v("未开始")])],1):t._e(),103==e.row.live_status?a("div",[a("el-tag",{attrs:{type:"info",size:"mini"}},[t._v("已结束")])],1):t._e(),104==e.row.live_status?a("div",[a("el-tag",{attrs:{type:"danger",size:"mini"}},[t._v("禁播")])],1):t._e(),105==e.row.live_status?a("div",[a("el-tag",{attrs:{size:"mini"}},[t._v("暂停中")])],1):t._e(),106==e.row.live_status?a("div",[a("el-tag",{attrs:{type:"warning",size:"mini"}},[t._v("异常")])],1):t._e(),107==e.row.live_status?a("div",[a("el-tag",{attrs:{type:"info",size:"mini"}},[t._v("已过期")])],1):t._e()]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}})],1)])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("小程序直播")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pad_lr_20"},[a("div",{staticClass:"lh25 mar_t10 msgtext fon_14"},[t._v(" 温馨提示: 1、需要在小程序后台开通直播权限才可以使用本功能 "),a("p",{staticClass:"tind"},[t._v("2、点击同步直播间可获取小程序直播房间列表信息获取额度100000次/一天(与获取回放接口共用次数),请合理分配和获取次数)")]),a("p",{staticClass:"tind fon_14"},[t._v(" 3、微信小程序直播功能准入要求说明 "),a("span",{staticClass:"subjectcolor2"},[t._v("https://res.wx.qq.com/mmbizwxampnodelogicsvr_node/dist/images/access_02b58d.pdf")])])])])}],n=(a("d81d"),a("96cf"),a("1da1")),r=a("7cb7"),c={created:function(){this.fetchData()},data:function(){return{list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},synchro:"",updtebtn:!1}},methods:{fetchData:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(r["lb"])({page:t.page.currentPage,synchro:t.synchro});case 3:a=e.sent,s=a.data,i=a.count,t.list=s,t.page.total=i,t.listLoading=!1,t.updtebtn=!1;case 10:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.synchro=0,this.page.currentPage=t,this.fetchData()},updateLive:function(){this.updtebtn=!0,this.synchro=1,this.fetchData()},handleDelete:function(t){var e=this;if(t.id)this.$baseConfirm("你确定要删除当前项吗",null,Object(n["a"])(regeneratorRuntime.mark((function a(){var s,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,modifyReduce({id:t.id,type:2});case 2:s=a.sent,i=s.msg,e.$baseMessage(i,"success"),e.fetchData();case 6:case"end":return a.stop()}}),a)}))));else{if(!(this.selectRows.length>0))return this.$baseMessage("未选中任何行","error"),!1;var a=this.selectRows.map((function(t){return t.id}));this.$baseConfirm("你确定要删除选中项吗",null,Object(n["a"])(regeneratorRuntime.mark((function t(){var s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,modifyReduce({id:a,type:2});case 2:s=t.sent,i=s.msg,e.$baseMessage(i,"success"),e.fetchData();case 6:case"end":return t.stop()}}),t)}))))}},handleEdit:function(t){t.id?this.$router.push("/liveAdd?id=".concat(t.id)):this.$router.push({path:"liveAdd"})}}},l=c,o=(a("9eef"),a("2877")),u=Object(o["a"])(l,s,i,!1,null,"bb317dfa",null);e["default"]=u.exports},"9eef":function(t,e,a){"use strict";var s=a("7838"),i=a.n(s);i.a}}]);