← Back
Editing: index312.js
import{c as e,s,g as t,q as a,v as l,y as r,z as n,x as c,e as o,C as i,A as m,J as d,B as u,F as p,a_ as f,M as v,H as x,I as y,a$ as h,D as w,aV as b,ax as g}from"./base-lib.js?v=VERSION_NUMBER";import{u as k,R as _,c as j,d as C,e as P}from"./utils-lib.js?v=VERSION_NUMBER";import{_ as z}from"./index413.js?v=VERSION_NUMBER";import{_ as L}from"./index105.js?v=VERSION_NUMBER";import{aJ as q,aK as H,b as M}from"./validator.js?v=VERSION_NUMBER";import{H as A}from"./store3.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";import"./store4.js?v=VERSION_NUMBER";const E={class:"flex flex-col p-[10px] user-info-popover"},I={class:"flex justify-between mb-[14px]"},J={key:0},T={class:"flex mb-[14px]"},B={key:0,class:"user-ltd-info p-[1.4rem] h-[4.6rem] flex items-center justify-between"},D={class:"flex items-center"},F={key:1,class:"user-ltd-info p-[1rem] pl-[1.4rem] pr-[1.4rem] h-[7.2rem] mt-[-0.5rem]"},K={class:"flex items-center"},R={class:"ml-[0.4rem] text-[1.2rem] text-{#666}"},U={class:"flex justify-between items-end"},V={class:"product-card-content"},$={key:0,class:"advantage-item"},G={class:"flex flex-col"},N={class:"menu-item"},O={class:"svgtofont-free-customer ltd-customer-tips"},Q={class:"qrcode-wechat"},S={class:"qrcode-content"},W=P(e({__name:"index",setup(e){const P=A(),{authExpirationTime:W,bindUser:X,authType:Y,advantageList:Z,v2AdvantageList:ee}=s(P),{forceLtd:se,aliyunEcsLtd:te}=k(),ae=t((()=>{switch(Y.value){case"ltd":return"icon-paid-ltd";case"pro":return"icon-paid-pro";default:return"icon-unpaid-ltd"}})),le=t((()=>"ltd"===Y.value?"续费":"立即升级")),re=async()=>{M(X.value?"切换宝塔账号":"绑定宝塔账号,享受更多服务")},ne=t((()=>{const e=_(W.value,"yyyy-MM-dd");switch(Y.value){case"ltd":return"".concat(e,"到期");case"pro":return 0===W.value?"永久授权":"".concat(e,"到期");default:return""}})),ce=t((()=>"https://www.bt.cn/new/wechat_customer?".concat("ltd"===Y.value?"vip=":""))),oe=t((()=>"ltd"===Y.value?"您的专属客服":"帮助与客服"));return(e,s)=>{const t=h,k=w,_=L,M=j,A=b,Z=z,ie=C,me=g;return a(),l("div",E,[r("div",I,[r("span",null,n(c(X)),1),c(se)||c(te)?i("",!0):(a(),l("span",J,[r("span",{class:"user-operate",onClick:re},"切换"),o(t,{direction:"vertical"}),r("span",{class:"user-operate",onClick:s[0]||(s[0]=(...e)=>c(q)&&c(q)(...e))},"解绑")]))]),r("div",T,[o(A,{shadow:"never",class:"!border-none"},{default:m((()=>["pro"!==c(Y)?(a(),l("div",B,[r("div",D,[r("span",{class:d(["h-[2.2rem] leading-[2rem] mt-[0.2rem] bg-left bg-no-repeat cursor-pointer",c(ae)]),onClick:s[1]||(s[1]=(...e)=>c(P).productPayment&&c(P).productPayment(...e))},null,2),r("div",{class:d([c(W)?"text-{#666}":"text-danger","ml-[0.4rem] text-[1.2rem]"])},n(c(ne)),3)]),o(k,{class:"payment-btn",type:"primary",size:"small",onClick:c(P).productPayment},{default:m((()=>[u(n(c(le)),1)])),_:1},8,["onClick"])])):(a(),l("div",F,[r("div",K,[r("span",{class:d(["h-[2.4rem] w-[6rem] mt-[0.2rem] bg-left bg-no-repeat cursor-pointer",c(ae)]),onClick:s[2]||(s[2]=(...e)=>c(P).productPayment&&c(P).productPayment(...e))},null,2),r("div",R,n(c(ne)),1)]),r("div",U,[s[3]||(s[3]=r("span",{class:"ml-[0.4rem] leading-none"},"企业版享有以下特权",-1)),o(k,{type:"primary",size:"small",onClick:c(P).productPayment},{default:m((()=>[u(n(c(le)),1)])),_:1},8,["onClick"])])])),r("div",V,[(a(!0),l(p,null,f(c(ee),((e,s)=>(a(),l(p,{key:s},["other"!==e[0]?(a(),l("div",$,[o(_,{name:"tools-".concat(e[0]),size:"18",class:"mr-[4px]"},null,8,["name"]),r("span",null,n(e[1]),1)])):i("",!0),"other"===e[0]?(a(),v(M,{key:1,class:"advantage-item other",href:"https://www.bt.cn/new/pricing.html"},{default:m((()=>[u(n(e[1]),1)])),_:2},1024)):i("",!0)],64)))),128))])])),_:1})]),r("div",G,[o(me,{width:"172","show-arrow":!1,placement:"right"},{reference:m((()=>[r("div",N,[r("span",null,n(c(oe)),1),x(r("i",O,null,512),[[y,"ltd"===c(Y)]])])])),default:m((()=>[r("div",Q,[o(M,{href:c(ce),class:"seek-link",target:"_blank"},{default:m((()=>s[4]||(s[4]=[u(" 点击咨询客服"),r("i",{class:"svgtofont-arrow text-[#20a53a]"},null,-1)]))),_:1},8,["href"]),r("div",S,[o(Z,{value:c(ce),size:128},null,8,["value"]),o(ie,{all:!0,src:"/static/icons/we-com.svg",class:"!absolute bg-white border-[0.2rem] border-lightest rounded-[2px] mr-[4px] w-2.4rem h-2.4rem top-[50%] left-[50%] -ml-1.2rem -mt-1.2rem"})]),s[6]||(s[6]=r("div",{class:"wechat-title flex items-center justify-center"},[r("i",{class:"svgtofont-icon-scan !text-[2.2rem]"}),r("div",{class:"scan-title text-[1.6rem] ml-[.4rem] text-[#666666] font-bold"},"扫一扫")],-1)),"ltd"===c(Y)?(a(),v(M,{key:0,class:"survey-link",onClick:c(H)},{default:m((()=>s[5]||(s[5]=[u(" 企业版用户专属调研 ")]))),_:1},8,["onClick"])):i("",!0)])])),_:1})])])}}}),[["__scopeId","data-v-d220a6c3"]]);export{W as default};
Save File
Cancel