import"./modulepreload-polyfill-B5Qt9EMX.js";import{d as N,u as A,r,g as B,o as $,c as o,a as l,x as m,e as s,f as p,F as I,j as S,t as i,b as V,q as F,z as M,G as b,K as q,Y as W}from"./vendor-nt8ldNfT.js";import{N as D,F as H}from"./FooterBar-J0dB23BZ.js";import{c as T,l as E,_ as L}from"./ThemeSwitcher.vue_vue_type_script_setup_true_lang-hbZuyjE_.js";import{_ as O}from"./tailwind-Bkcu6GYy.js";const U={class:"flex-1 p-4 pb-20"},G={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-4"},K=["title"],R={class:"relative z-10"},Y={class:"text-xl font-bold text-center text-warning mb-3 tracking-wide uppercase"},J={class:"flex items-start gap-3 mb-3"},Q={class:"w-1/2 text-left text-lg leading-relaxed font-semibold space-y-1"},X={class:"text-red-500 font-bold"},Z={class:"w-1/2 text-xs text-base-content bg-base-300 p-2 rounded whitespace-pre-line font-mono shadow-inner"},ee={class:"mt-auto pt-4"},te=["onClick"],se={key:0,class:"modal-overlay fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50"},ae={class:"modal-content relative bg-base-100 p-6 rounded-lg shadow-lg w-80"},ne={class:"flex flex-col gap-4"},oe={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50"},le={class:"bg-white p-6 rounded-lg shadow-lg w-11/12 lg:w-2/3"},re=["src"],ie=N({__name:"Huiyuan",setup(de){const v=A();function y(a){if(!a)return"";let e=a;for(let t=0;t<3;t++){const n=e.replace(/&amp;#/gi,"&#");if(n===e)break;e=n}return e=e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#39;/g,"'").replace(/&amp;/gi,"&"),e=e.replace(/&#x([0-9a-fA-F]+);/g,(t,n)=>{try{const c=parseInt(n,16);return c?String.fromCodePoint(c):t}catch{return t}}),e=e.replace(/&#(\d+);/g,(t,n)=>{try{const c=parseInt(n,10);return c?String.fromCodePoint(c):t}catch{return t}}),e}const d=r({hideWxPay:!1,hideAliPay:!1}),w=async()=>{try{const e=await(await fetch("/chongzhi.html?query=Payment")).json();e.status===200&&(d.value.hideWxPay=e.data.hideWxPay==="true",d.value.hideAliPay=e.data.hideAliPay==="true")}catch(a){console.error("获取支付显示配置失败",a)}},k=B(()=>({backgroundImage:`url(${T.value})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}));$(async()=>{await E(),await P(),await w()});const x=r([]),u=r(!1),g=r(!1),f=r(null),h=r(""),P=async()=>{try{const e=await(await fetch("/huiyuan.html?query=member")).json();e.status===200?x.value=(e.data||[]).map(t=>({...t,huiyuanchenghao:y(t.huiyuanchenghao||""),tips:y(t.tips||"")})):v.warning(e.msg||"获取会员数据失败")}catch{v.error("请求失败")}},z=a=>{f.value=a,u.value=!0},_=a=>{f.value&&(h.value=`/zhifu.html/?vip=${f.value.dengji}&pay=${a}`,u.value=!1,g.value=!0)},j=()=>{u.value=!1},C=()=>{g.value=!1,h.value=""};return(a,e)=>(l(),o("div",{class:"flex flex-col min-h-screen",style:F(k.value)},[m(D),m(L),s("main",U,[s("div",G,[(l(!0),o(I,null,S(x.value,t=>(l(),o("div",{key:t.huiyuandengji,class:"relative card shadow-xl border border-warning p-4 text-sm flex flex-col justify-between transition-transform hover:scale-105 overflow-hidden",title:t.tips||""},[e[3]||(e[3]=s("div",{class:"absolute inset-0 bg-base-100/60 backdrop-blur-sm z-0"},null,-1)),s("div",R,[s("h2",Y,i(t.huiyuanchenghao),1),s("div",J,[s("div",Q,[s("p",null,"👑 等级："+i(t.huiyuandengji)+"级",1),s("p",null,[e[2]||(e[2]=V("💰 价格：")),s("span",X,"￥"+i(t.rmb),1)]),s("p",null,"⏳ 时效："+i(t.tianshu),1)]),s("div",Z,i(t.gouwuzhekou),1)]),s("div",ee,[s("button",{class:"btn btn-warning btn-sm w-full tracking-wider text-lg",onClick:n=>z(t)},i(t.zanzhu||"立即开通"),9,te)])])],8,K))),128))])]),u.value?(l(),o("div",se,[s("div",ae,[s("button",{class:"absolute top-2 right-2 btn btn-sm btn-circle",onClick:j},"×"),e[4]||(e[4]=s("h2",{class:"text-lg font-bold mb-4 text-center"},"选择支付方式",-1)),s("div",ne,[d.value.hideAliPay?p("",!0):(l(),o("button",{key:0,class:"btn btn-primary",onClick:e[0]||(e[0]=t=>_("alipay"))}," 支付宝支付 ")),d.value.hideWxPay?p("",!0):(l(),o("button",{key:1,class:"btn btn-success",onClick:e[1]||(e[1]=t=>_("vx"))}," 微信支付 "))])])])):p("",!0),g.value?(l(),o("div",oe,[s("div",le,[s("div",{class:"text-right mb-2"},[s("button",{onClick:C,class:"btn btn-xs btn-error"},"关闭")]),s("iframe",{src:h.value,class:"w-full h-[70vh]",frameborder:"0"},null,8,re)])])):p("",!0),m(H)],4))}}),ce=O(ie,[["__scopeId","data-v-8f35a0b7"]]);M({render:()=>b(q,null,{default:()=>b(W,null,{default:()=>b(ce)})})}).mount("#app");
