ptSend/view/dist/assets/subscribe-f4d39015.js
2023-08-08 21:02:58 +08:00

2 lines
1.2 KiB
JavaScript

import{g as l,d as f}from"./Video-8e45cd37.js";import{d as v,g as x,l as y,r,o,c,F as h,i as k,a as d,w as _,f as s,t as i,b as w,k as B,E as u}from"./index-adc67fa5.js";import"./axios-4a70c6fc.js";const C={class:"list"},E={class:"item"},M=["src"],N={style:{padding:"14px"}},S={class:"bottom"},T={class:"time"},$=v({__name:"subscribe",setup(V){const a=x([]);y(async()=>{const e=await l();a.value=e.data});function m(e){B.confirm("确认删除?","Warning",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{p(e)}).catch(()=>{})}async function p(e){(await f(e)).data=="删除成功"?u({message:"删除成功",type:"success"}):u({message:"删除失败",type:"error"});const n=await l();a.value=n.data}return(e,g)=>{const n=r("el-button"),b=r("el-card");return o(),c("div",C,[(o(!0),c(h,null,k(a.value,t=>(o(),c("div",E,[d(b,{"body-style":{padding:"0px"}},{default:_(()=>[s("img",{src:t.img,class:"image"},null,8,M),s("div",N,[s("span",null,i(t.name),1),s("div",S,[s("time",T,"正在订阅:"+i(t.skip)+"/"+i(t.count),1),d(n,{text:"",class:"button",onClick:F=>m(t.id)},{default:_(()=>[w("删除")]),_:2},1032,["onClick"])])])]),_:2},1024)]))),256))])}}});export{$ as default};