"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[7959],{37959:(t,e,l)=>{l.r(e),l.d(e,{default:()=>k});var a=l(8929),i=l(57268),n=l(94209),s=l(29445),o=l(30067),c=l(80661),p=l.n(c),x=l(19012);const r={class:"mt-[20px]"},d=(0,i._)("div",{class:"h-[1px] w-full bg-color-m2 bg-opacity-[0.08]"},null,-1),u={class:"hide-scroll flex h-[472px] flex-col overflow-y-auto pt-[12px]"},m={class:"mb-[8px] flex items-center justify-between font-ali-65"},g={class:"truncate font-ali-65 text-[14px] leading-[20px] text-color-t2"},f={class:"font-ali-65 text-[14px] leading-[20px] text-color-t2"},b={class:"mb-[8px] flex items-center justify-between font-ali-55"},_=(0,i._)("span",{class:"text-[14px] leading-[20px] text-color-t2"},"付款时间：",-1),y={class:"text-[14px] leading-[20px] text-color-t3"},w={class:"flex items-center justify-between font-ali-55"},D=(0,i._)("span",{class:"text-[14px] leading-[20px] text-color-t2"},"到期时间：",-1),h={class:"text-[14px] leading-[20px] text-color-t3"},v=(0,i._)("div",{class:"my-[12px] h-[1px] w-full bg-color-m2 bg-opacity-[0.08]"},null,-1),Y=(0,i.aZ)({__name:"orders",props:{changeView:null},setup(t){const e=t,l=(0,s.iH)([]),c=(0,x.r)();(0,i.YP)((()=>c.subscriptionView),(t=>{t===x.k.ORDERS&&(async()=>{const[t,e]=await(0,o.sn)();!t&&null!=e&&e.list&&(l.value=e.list.map((t=>({id:t.id,name:t.planName,price:t.payAmount,date:p()(t.platformPayTime).format("YYYY-MM-DD"),endDate:p()(t.vipEndTime).format("YYYY-MM-DD")}))))})()}),{immediate:!0});const Y=()=>{e.changeView(x.k.INDEX)};return(t,e)=>{const s=a.Z;return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i.Wm)(s,{title:"历史订单","need-back":!0,onBack:Y}),(0,i._)("div",r,[d,(0,i._)("div",u,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(l.value,(t=>((0,i.wg)(),(0,i.iD)("div",{key:t.id,class:"rounded-[8px] bg-color-m1 bg-opacity-[0.04]"},[(0,i._)("div",m,[(0,i._)("span",g,(0,n.toDisplayString)(t.name),1),(0,i._)("span",f," ¥"+(0,n.toDisplayString)(t.price),1)]),(0,i._)("div",b,[_,(0,i._)("span",y,(0,n.toDisplayString)(t.date),1)]),(0,i._)("div",w,[D,(0,i._)("span",h,(0,n.toDisplayString)(t.endDate),1)]),v])))),128))])])],64)}}}),k=Y}}]);