PageSourceSearch

https://dywang.cn/chunks/4546.12c38801.js

js dywang.cn collected 2026-10-06 07:00:44 UTC 3,116 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdy"]=self["webpackChunkdy"]||[]).push([[4546],{94546:function(e,t,s){s.r(t),s.d(t,{default:function(){return h}});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tv-detail-page"},[t("div",{staticClass:"breadcrumb"},[t("span",{staticClass:"breadcrumb-link",on:{click:e.goToHome}},[e._v("网站首页")]),t("span",{staticClass:"separator"},[e._v(">")]),t("span",{staticClass:"breadcrumb-link",on:{click:e.goToTV}},[e._v("看电视")]),t("span",{staticClass:"separator"},[e._v(">")]),t("span",[e._v(e._s(e.channelInfo.title||"电视频道"))])]),t("div",{staticClass:"tv-player-section"},[t("div",{ref:"playerContainer",staticClass:"player-container"},[e.showVideo?t("div",{staticClass:"video-player"},[e.videoUrl?[e.isM3u8()?t("M3u8Player",{attrs:{src:e.videoUrl,poster:e.channelInfo.icon}}):t("Videos",{attrs:{autoplay:!0,videoInit:!0,mp4Url:e.videoUrl,mp4Pic:e.channelInfo.icon}})]:e._e()],2):t("div",{staticClass:"placeholder"},[t("div",{staticClass:"placeholder-content"},[t("img",{staticClass:"channel-icon",attrs:{src:e.channelInfo.icon,alt:"频道封面"}})])])])])])},i=[],a=(s(57658),s(48806)),o=s(42887),l=s(92931),r={name:"TVDetailPage",components:{Videos:o.Z,M3u8Player:l.Z},data(){return{loading:!1,channelInfo:{},videoUrl:"",showVideo:!1}},async created(){await this.loadChannelDetail(this.$route.params.id)},methods:{async loadChannelDetail(e){this.loading=!0;try{const t=await(0,a.W5)(e);1===t.code&&(this.channelInfo=t.data,this.setupVideoPlayback())}catch(t){console.error("加载频道详情失败:",t)}finally{this.loading=!1}},setupVideoPlayback(){1===this.channelInfo.videoStatus?(this.videoUrl=this.channelInfo.streamH5||this.channelInfo.stream,this.showVideo=!0,this.$nextTick((()=>{}))):2===this.channelInfo.videoStatus?(this.videoUrl=this.channelInfo.video,this.showVideo=!0,this.$nextTick((()=>{}))):this.showVideo=!1},enterFullscreen(){const e=this.$refs.playerContainer;if(!e)return;const t=e.querySelector&&e.querySelector("video"),s=t||e;try{const e=s.requestFullscreen||s.webkitRequestFullscreen||s.mozRequestFullScreen||s.msRequestFullscreen||s.webkitEnterFullscreen;"function"===typeof e&&e.call(s)}catch(n){}t||setTimeout((()=>{const t=e.querySelector&&e.querySelector("video");if(t)try{const e=t.requestFullscreen||t.webkitRequestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitEnterFullscreen;"function"===typeof e&&e.call(t)}catch(s){}}),300)},isM3u8(){return this.videoUrl&&this.videoUrl.includes(".m3u8")},getStatusText(){const e={0:"未开始",1:"直播中",2:"已结束"};return e[this.channelInfo.videoStatus]||"未知"},getStatusClass(){const e={0:"status-pending",1:"status-live",2:"status-ended"};return e[this.channelInfo.videoStatus]||""},formatTime(e){if(!e)return"";const t=new Date(parseInt(e));return t.toLocaleDateString()},goToHome(){this.$router.push("/main")},goToTV(){this.$router.push("/tv")},openRecommendation(e){this.$router.push({path:"/video/info",query:{id:e.id,title:e.title,video:e.video,cover:e.cover}})}}},c=r,u=s(1001),d=(0,u.Z)(c,n,i,!1,null,"436d5a7e",null),h=d.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.