PageSourceSearch

https://www.iqinghu.com/workbench/pages/dashboard/coupons-BGUPo_rz.js

js iqinghu.com collected 2026-09-24 12:33:10 UTC 3,923 bytes, 1 lines download raw bytes

1import{b as E,U as m,V as N,_ as S}from"../../assets/index-DoWvVrc1.js";import{d as V,A as K,k,h as $,e as l,o as n,a as s,b as u,w as d,i as R,t as y,l as o,Z as q,aC as z,Q as M,aD as Q,F as p,r as _,p as F,c as A,aE as Z,aF as j}from"../../assets/vendor-Bh6u8-zI.js";import"../../assets/pingtai-DLWCcYtj.js";const G={class:"h-full p-0"},H={class:"flex items-center py-4 mx-5 gap-2 cursor-pointer"},J={class:"px-20px"},O={class:"flex gap-3"},P=["textContent","onClick"],W={class:"coupon-grid py-4"},X={key:1,class:"coupon-grid__empty w-full py-10 flex-center"},Y={class:"flex gap-3"},ee=["textContent","onClick"],oe={class:"coupon-grid py-4"},ne={key:1,class:"coupon-grid__empty w-full py-10 flex-center"},te={class:"flex gap-3"},se=["textContent","onClick"],ae={class:"coupon-grid py-4"},ce={key:1,class:"coupon-grid__empty w-full py-10 flex-center"},le=V({__name:"coupons",setup(re){const h=K(),v=k("all"),i=k("available"),{t:r}=E(),x=[{name:r("workbench.coupons.9326576-0"),key:"available"},{name:r("workbench.coupons.9326576-1"),key:"expired"}],f=a=>{i.value=a.key,c.value=b.value.filter(t=>{if(!t.isExpired&&i.value==="available"||t.isExpired&&i.value==="expired")return!0})},b=k([]),c=k([]),L=async()=>{const{success:a,payload:t}=await N();a&&(b.value=t,c.value=t)},D=a=>{a==="all"?c.value=b.value:c.value=b.value.filter(t=>t.type===Number(a))},C=a=>{a.couponId=="607603"&&h.push("/product?tabIndex=1"),a.couponId=="1103412"||a.description.includes("SoClaw")?h.push("/qinghu-claw/buy"):h.push("/upgrade")};return $(()=>{L()}),(a,t)=>{const I=q,g=Z,w=Q,T=z,B=j;return n(),l("div",G,[s("div",H,[t[1]||(t[1]=s("div",{class:"w-1.5 h-4 bg-#08C18A rounded-70"},null,-1)),u(I,{level:4,class:"!m-0"},{default:d(()=>[R(y(o(r)("workbench.coupons.9326576-2")),1)]),_:1})]),s("div",J,[u(B,{class:"shadow rounded-12px! mx-3"},{default:d(()=>[u(T,{activeKey:o(v),"onUpdate:activeKey":t[0]||(t[0]=e=>M(v)?v.value=e:null),onChange:D},{default:d(()=>[u(w,{tab:o(r)("workbench.coupons.9326576-3"),key:"all"},{default:d(()=>[s("div",O,[(n(),l(p,null,_(x,e=>s("div",{class:F(["w-20 h-8 rounded-25 flex-center border-#08C18A border-1px select-none cursor-pointer",o(i)===e.key?"border-solid text-#08C18A bg-[rgba(8,193,138,0.1)]":"bg-#F2F3F5 text-#658D95"]),key:e.key,textContent:y(e.name),onClick:U=>f(e)},null,10,P)),64))]),s("div",W,[o(c).length?(n(!0),l(p,{key:0},_(o(c),e=>(n(),A(m,{key:e.id,coupon:e,canClick:!0,onUseCoupon:C},null,8,["coupon"]))),128)):(n(),l("div",X,[u(g,{description:o(r)("workbench.coupons.9326576-4")},null,8,["description"])]))])]),_:1},8,["tab"]),u(w,{tab:o(r)("workbench.coupons.9326576-5"),key:"2"},{default:d(()=>[s("div",Y,[(n(),l(p,null,_(x,e=>s("div",{class:F(["w-20 h-8 rounded-25 flex-center border-#08C18A border-1px select-none cursor-pointer",o(i)===e.key?"border-solid text-#08C18A bg-[rgba(8,193,138,0.1)]":"bg-#F2F3F5 text-#658D95"]),key:e.key,textContent:y(e.name),onClick:U=>f(e)},null,10,ee)),64))]),s("div",oe,[o(c).length?(n(!0),l(p,{key:0},_(o(c),e=>(n(),A(m,{key:e.id,coupon:e,"can-click":!0,onUseCoupon:C},null,8,["coupon"]))),128)):(n(),l("div",ne,[u(g,{description:o(r)("workbench.coupons.9326576-4")},null,8,["description"])]))])]),_:1},8,["tab"]),u(w,{tab:o(r)("workbench.coupons.9326576-6"),key:"1"},{default:d(()=>[s("div",te,[(n(),l(p,null,_(x,e=>s("div",{class:F(["w-20 h-8 rounded-25 flex-center border-#08C18A border-1px select-none cursor-pointer",o(i)===e.key?"border-solid text-#08C18A bg-[rgba(8,193,138,0.1)]":"bg-#F2F3F5 text-#658D95"]),key:e.key,textContent:y(e.name),onClick:U=>f(e)},null,10,se)),64))]),s("div",ae,[o(c).length?(n(!0),l(p,{key:0},_(o(c),e=>(n(),A(m,{key:e.id,coupon:e,"can-click":!0,onUseCoupon:C},null,8,["coupon"]))),128)):(n(),l("div",ce,[u(g,{description:o(r)("workbench.coupons.9326576-4")},null,8,["description"])]))])]),_:1},8,["tab"])]),_:1},8,["activeKey"])]),_:1})])])}}}),pe=S(le,[["__scopeId","data-v-35068ebd"]]);export{pe as default};

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.