(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-183f72c8"],{"3c9d":function(e,t,c){"use strict";c.r(t);var a=c("1297"),l=c("a410"),i=c("7a23"),s=c("6c43"),o=c("2849"),n=c("fc91"),d=c("0530"),r=c("986e");const p=e=>(Object(i["pushScopeId"])("data-v-5630b0d6"),e=e(),Object(i["popScopeId"])(),e),b={class:"history-wrap"},m={class:"history-content"},j={class:"list-wrap"},O=["onClick"],g={class:"left flex-ac"},f={class:"reac"},u=["src"],v={class:"status"},w={class:"info"},E={class:"title"},N={class:"times"},V=["onClick"],k=p(()=>Object(i["createElementVNode"])("div",{class:"icon"},null,-1)),y={class:"text"};var I={__name:"index",setup(e){const t=Object(i["reactive"])({list:[],page:1});let c=0;r["a"].on("pageInit",async()=>{if(0==c){c=1,console.log("pageInitpageInitpageInitpageInitpageInit"),t.list=[],t.page=1;const e=await Object(n["i"])({page:t.page++,size:10});t.list=t.list.concat(e.data.list||[]),setTimeout(()=>{c=0},1e3)}});const p=async e=>{try{const c=await Object(n["i"])({page:t.page++,size:10});0===c.data.pagination.total?e.complete():c.data.pagination.next?e.loaded():(e.loaded(),e.complete()),t.list=t.list.concat(c.data.list||[])}catch(c){e.complete()}},I=async e=>{await d["a"].playVideoById({drama_id:e.spid+"",platform:e.platform,target_index:e.user_set})},_=async e=>{if(e.collected){await Object(o["a"])({message:"取消后可能找不到本剧哦~",title:"确认取消追剧吗？",cancelButtonText:"再想想",className:"gloal-confirm"});await Object(n["e"])({item_id:e.spid,platform:e.platform,state:0})}else{await Object(n["e"])({item_id:e.spid,platform:e.platform,state:1});Object(s["c"])("已添加至追剧，可在【首页-追剧】查看所有在追剧")}d["a"].refreshFollowList(),e.collected=e.collected?0:1};return(e,c)=>{const s=l["a"],o=a["a"];return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",b,[Object(i["createVNode"])(s,{title:"观看历史",theme:""}),Object(i["createElementVNode"])("div",m,[Object(i["createElementVNode"])("div",j,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t.list,(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"item flex-ac-jb",onClick:t=>I(e),key:t},[Object(i["createElementVNode"])("div",g,[Object(i["createElementVNode"])("div",f,[Object(i["createElementVNode"])("img",{src:e.cover,alt:""},null,8,u),Object(i["createElementVNode"])("div",v,Object(i["toDisplayString"])(e.sp_status?"未完结":"已完结"),1)]),Object(i["createElementVNode"])("div",w,[Object(i["createElementVNode"])("div",E,Object(i["toDisplayString"])(e.title||"这是标题"),1),Object(i["createElementVNode"])("div",N,Object(i["toDisplayString"])(`已观看至第${e.user_set}集`),1)])]),Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(["right",e.collected?"collected":""]),onClick:Object(i["withModifiers"])(t=>_(e),["stop"])},[k,Object(i["createElementVNode"])("div",y,Object(i["toDisplayString"])(e.collected?"已追剧":"追剧"),1)],10,V)],8,O))),128)),Object(i["createVNode"])(o,{onInfinite:p})])])])}}},_=(c("f189"),c("6b0d")),h=c.n(_);const B=h()(I,[["__scopeId","data-v-5630b0d6"]]);t["default"]=B},ec62:function(e,t,c){},f189:function(e,t,c){"use strict";c("ec62")}}]);