PageSourceSearch

https://static.app.ailingtu.com/assets/js/benefits-CwbrE9bU.js

js ailingtu.com collected 2026-10-02 00:08:05 UTC 7,284 bytes, 1 lines download raw bytes

1import{cg as R,d0 as T,cF as j,c6 as a,cd as b,de as w,c$ as r,c3 as t,cX as i,f as p,cQ as g,co as E,cO as k,cJ as l,cb as L,cx as h,cc as F,c5 as H,cS as O}from"./vendor-vue-C3df0gLH.js";import{m as U,H as I}from"./index-ByVTmJon.js";import{_ as z}from"./AppFooter.vue_vue_type_script_setup_true_lang-BPGJgrXb.js";import{_ as P}from"./SecondaryPageNav.vue_vue_type_script_setup_true_lang-BELhEODh.js";import"./vendor-BAp2x3JD.js";import"./vendor-charts-BofaT7g3.js";import"./vendor-vuetify-Cd8aE-6N.js";import"./vendor-vxe-D9xzQ_Nx.js";import"./CustomerServiceDialog.vue_vue_type_script_setup_true_lang-BwnnZbmt.js";/* empty css                                                                  *//* empty css                                                                          */import"./iosDialog-3t7wGQfZ.js";/* empty css                                                                  */const W={class:"flex h-full min-h-0 flex-col overflow-hidden bg-[#F7F8FA] text-[#0D1321]"},$={class:"hidden sm:inline"},G={class:"mx-auto min-h-0 w-full max-w-7xl flex-1 space-y-4 overflow-y-auto px-4 py-4 md:px-6"},K={class:"mb-3 flex items-end justify-between gap-3"},Q={class:"text-base font-semibold text-[#0D1321]"},J={class:"inline-flex shrink-0 items-center rounded-full bg-[#F0F2F7] px-2.5 py-1 text-[11px] font-medium text-[#687280]"},X={key:0,class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3"},Y={key:1,class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3"},q={class:"flex items-start justify-between gap-3"},Z={class:"min-w-0"},ee={class:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1"},te=["title"],se={class:"text-[11px] text-[#98A2B3]"},ne=["title"],oe={class:"mt-3 border-t border-gray-100 pt-3"},re={class:"min-w-0 truncate text-[13px] text-[#687280]"},ie={class:"shrink-0 text-sm font-semibold text-[#0D1321]"},ae={key:1,class:"flex items-center justify-center gap-2 rounded-xl border border-dashed border-gray-200 bg-[#F7F8FA] px-4 py-3 text-center"},le={class:"text-xs text-[#687280]"},de={key:2,class:"rounded-2xl border border-dashed border-gray-200 bg-white px-6 py-8 text-center"},ce={class:"text-base font-semibold text-[#0D1321]"},pe={class:"mt-2 text-sm text-[#687280]"},Be=R({__name:"benefits",setup(ue){const{showMessage:A}=I(),{t:o,locale:_}=T(),v=E("inManagementHub",!1),u=k([]),f=k(!1),B=["兼职","任务点"],C=e=>{const n=e.productName||"",c=(e.benefits||[]).map(s=>s.type);return B.some(s=>n.includes(s))||c.includes("TASK_POINT")},m=e=>{const n=(e.benefits||[]).map(d=>d.type),c=n.some(d=>d.startsWith("MANAGE_")||d.startsWith("CREATOR_")||d==="SUB_ACCOUNT"||d==="CLOUD_STORAGE"),s=n.some(d=>d.endsWith("_POINT"));return c?0:s?1:2},x=e=>m(e)===0,D=e=>e.filter(n=>!C(n)).sort((n,c)=>m(n)-m(c)),N=async()=>{try{f.value=!0;const e=await U();u.value=D((e==null?void 0:e.list)||[])}catch(e){A(o("benefits.errors.fetchAllBenefitsFailed"),"error"),console.error("获取用户权益列表失败:",e)}finally{f.value=!1}},S=e=>{if(!e)return o("benefits.permanent");const n=_.value==="en-US"?"en-US":"zh-CN";return new Date(e).toLocaleString(n,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})},V=e=>o(`benefits.benefitTypes.${e}`)||e,M=e=>{if(e==null)return"0";const n=_.value==="en-US"?"en-US":"zh-CN";return e.toLocaleString(n)},y=e=>e?new Date(e)>new Date:!1;return j(()=>{N()}),(e,n)=>{const c=O("RouterLink");return l(),a("div",W,[b(P,{title:r(v)?r(o)("managementHub.planQuotaLabel"):r(o)("benefits.title"),"show-back":r(v),"back-label":r(o)("laboratory.batchPost.back"),"max-width":"1280"},{actions:w(()=>[b(c,{to:"/manage/power-records",class:"inline-flex h-8 shrink-0 items-center justify-center gap-1.5 rounded-full border border-gray-200 bg-white px-2.5 text-xs font-medium text-[#687280] transition-colors hover:border-purple-200 hover:bg-purple-50 hover:text-purple-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6A5CFF]/25",title:r(o)("benefits.powerConsumptionRecords")},{default:w(()=>[n[0]||(n[0]=t("svg",{class:"h-[15px] w-[15px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 17v-6m4 6V7m4 10v-4M5 21h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2z"})],-1)),t("span",$,i(r(o)("benefits.powerConsumptionRecords")),1)]),_:1},8,["title"])]),_:1},8,["title","show-back","back-label"]),t("main",G,[t("section",null,[t("div",K,[t("div",null,[t("h2",Q,i(r(o)("benefits.allBenefits")),1)]),t("span",J,i(u.value.length)+" "+i(r(o)("benefits.benef
1it")),1)]),f.value?(l(),a("div",X,[(l(),a(p,null,g(4,s=>t("div",{key:s,class:"rounded-2xl border border-gray-200/80 bg-white p-4"},[...n[1]||(n[1]=[L('<div class="mb-4 flex items-center justify-between"><div class="h-4 w-32 animate-pulse rounded bg-gray-200"></div><div class="h-5 w-14 animate-pulse rounded-full bg-gray-100"></div></div><div class="grid grid-cols-2 gap-2"><div class="h-14 animate-pulse rounded-xl bg-gray-100"></div><div class="h-14 animate-pulse rounded-xl bg-gray-100"></div></div>',2)])])),64))])):u.value.length>0?(l(),a("div",Y,[(l(!0),a(p,null,g(u.value,s=>(l(),a("article",{key:s.productId,class:h(["rounded-2xl border border-gray-200/80 bg-white p-4 shadow-sm transition-colors hover:border-[#6A5CFF]/25",x(s)?"md:col-span-2 xl:col-span-3":""])},[t("div",q,[t("div",Z,[t("div",ee,[t("h3",{class:"truncate text-[15px] font-semibold text-[#0D1321]",title:s.productName},i(x(s)?r(o)("benefits.membershipRights"):s.productName),9,te),t("span",se,[s.expiredAt?(l(),a(p,{key:0},[F(i(r(o)("benefits.expiredAt"))+" "+i(S(s.expiredAt)),1)],64)):(l(),a(p,{key:1},[F(i(r(o)("benefits.permanent")),1)],64))])]),s.productDesc?(l(),a("p",{key:0,class:"mt-1 line-clamp-1 text-xs leading-5 text-[#687280]",title:s.productDesc},i(s.productDesc),9,ne)):H("",!0)]),t("span",{class:h(["shrink-0 rounded-full px-2.5 py-1 text-[12px] font-semibold",y(s.expiredAt)?"bg-[#E6FFFB] text-[#047C75]":"bg-[#F0F2F7] text-[#687280]"])},i(y(s.expiredAt)?r(o)("benefits.activated"):r(o)("benefits.notActivated")),3)]),t("div",oe,[s.benefits&&s.benef
1its.length>0?(l(),a("div",{key:0,class:h(["grid gap-2",x(s)?"grid-cols-2 lg:grid-cols-3 xl:grid-cols-4":"grid-cols-1 sm:grid-cols-2 md:grid-cols-1 xl:grid-cols-2"])},[(l(!0),a(p,null,g(s.benefits,d=>(l(),a("div",{key:d.type,class:"flex min-w-0 items-center justify-between gap-3 rounded-xl bg-[#F7F8FA] px-3 py-2.5"},[t("span",re,i(V(d.type)),1),t("span",ie,i(M(d.balance)),1)]))),128))],2)):(l(),a("div",ae,[n[2]||(n[2]=t("span",{class:"text-sm font-semibold text-[#98A2B3]"},"—",-1)),t("span",le,i(r(o)("benefits.recommendBenefit")),1)]))])],2))),128))])):(l(),a("div",de,[n[3]||(n[3]=t("div",{class:"mx-auto mb-3 flex h-10 w-10 items-center justify-center rounded-xl bg-[#6A5CFF]/10 text-[#6A5CFF]"},[t("svg",{class:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 12V8.5A2.5 2.5 0 0017.5 6h-11A2.5 2.5 0 004 8.5V12m16 0v3.5A2.5 2.5 0 0117.5 18h-11A2.5 2.5 0 014 15.5V12m16 0H4m4-6V5a2 2 0 114 0v1m0 0V5a2 2 0 114 0v1"})])],-1)),t("h3",ce,i(r(o)("benefits.noBenefitCard")),1),t("p",pe,i(r(o)("benefits.noBenefitInfo")),1)]))])]),b(z)])}}});
1export{Be 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.