File: /www/server/panel/BTPanel/static/js/pay-bus-ssl2.js
import{R as M,w as k,k as $,e as q,_ as B,cZ as R}from"./utils-lib.js?v=1777008528";import{_ as N}from"./index273.js?v=1777008528";import{c as W,aI as Y,r as h,g as j,o as F,a8 as H,j as y,k as S,e as g,v as z,q as e,F as O,B as U,L as x,p as t,s as l,aV as Z}from"./base-lib.js?v=1777008528";import{u as G}from"./useStore3.js?v=1777008528";import{t as p,b as I,c as r,d as J,m as K}from"./usePayController.js?v=1777008528";import{applyCertOrderRenw as Q}from"./site.js?v=1777008528";import{u as X}from"./useStore11.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./useStore2.js?v=1777008528";import"./useController8.js?v=1777008528";import"./ssl.js?v=1777008528";import"./index118.js?v=1777008528";import"./index3.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";import"./useController18.js?v=1777008528";import"./useMethod3.js?v=1777008528";import"./useController13.js?v=1777008528";import"./useController19.js?v=1777008528";import"./useMethod12.js?v=1777008528";import"./index192.js?v=1777008528";import"./useController20.js?v=1777008528";const ee={class:"px-[3rem] py-[2rem] pb-[24px]"},se={class:"ssl-pay-type"},te=["onClick"],oe={class:"p-[24px] flex flex-col justify-center items-center"},ae={class:"mt-[16px] text-base font-bold flex items-center"},ne={class:"text-subtitleLarge ml-[8px] text-warning"},le={class:"ssl-pay-info"},ie={class:"ssl-pay-info-line"},re={class:"ssl-pay-info-line"},pe={class:"mt-[16px] flex items-center justify-center"},ce=W({__name:"pay-bus-ssl",props:{compData:{default:{oid:0,wxcode:"",alicode:"",qq:"",orderInfo:{},productInfo:{}}}},emits:["close"],setup(w,{emit:b}){const{productInfo:o,orderInfo:c}=G(),{sslIsRefresh:T}=Y(X()),D=w,E=b,P=[{name:"微信支付",label:"wxcode"},{name:"支付宝支付",label:"alicode"}],i=h(!1),C=j(()=>D.compData[p.value]),L=a=>{q({title:"支付成功",area:[60,60],component:()=>B(()=>import("./pay-bus-success2.js?v=1777008528"),__vite__mapDeps([]),import.meta.url),compData:a})},V=()=>{L({productInfo:o.value,orderInfo:c.value}),T.value=!0,E("close")},m=async a=>{a&&sessionStorage.setItem("PAY-SSL-VIEW-TIME","".concat(a));const s=sessionStorage.getItem("PAY-SSL-VIEW-TIME");if(s){if(parseInt("".concat(new Date().getTime()/1e3-Number(s)),10)>600&&i.value)return sessionStorage.removeItem("PAY-SSL-VIEW-TIME"),k({title:"支付超时",icon:"warning",content:"由于您长时间未操作,支付超时,请刷新网页重新购买!",onConfirm:()=>{close(),window.location.reload()},onCancel:()=>{close(),window.location.reload()}});i.value||sessionStorage.removeItem("PAY-SSL-VIEW-TIME")}await K(),I.value?(r.value&&clearTimeout(r.value),r.value=setTimeout(()=>{m()},3e3)):o.value.isRenew?await $({request:Q({oid:o.value.oid}),message:!0}):V()};return F(async()=>{i.value=!0,m(new Date().getTime()/1e3)}),H(()=>{I.value=!1,i.value=!1,clearTimeout(r.value)}),(a,s)=>{var d,f,_,v;const u=Z,A=N;return y(),S("div",ee,[g(u,{type:"error",closable:!1},{title:z(()=>[...s[0]||(s[0]=[e("span",{class:"text-small"},[e("i",{calss:"svgtofont-el-warning-outline text-small"}),e("span",null," 禁止含有诈骗、赌博、色情、木马、病毒等违法违规业务信息的站点申请SSL证书,如有违反,撤销申请,停用账号。 ")],-1)])]),_:1}),e("div",se,[(y(),S(O,null,U(P,n=>e("span",{key:n.name,class:x("ssl-pay-tab-item ".concat(n.label===t(p)?"isActive":"")),onClick:me=>t(J)(n.label,!0)},[e("span",{class:x("pay-icon ".concat(n.label))},null,2),e("span",null,l(n.name),1)],10,te)),64))]),e("div",oe,[g(A,{value:t(C),size:160},null,8,["value"]),e("span",ae,[s[1]||(s[1]=e("span",null,"总计",-1)),e("span",ne,l((d=t(o))==null?void 0:d.totalPrice.toFixed(2))+" 元 ",1)])]),e("div",le,[e("div",ie,[s[2]||(s[2]=e("span",{class:"w-[5rem]"},"商品名称",-1)),e("span",null,l("".concat(((f=t(o))==null?void 0:f.productName)+((_=t(o))==null?void 0:_.years),"年").concat((v=t(o))!=null&&v.install?"(包含部署服务)":"")),1)]),e("div",re,[s[3]||(s[3]=e("span",{class:"w-[5rem]"},"下单时间",-1)),e("span",null,l(t(M)(t(c).addtime,"yyyy-MM-dd HH:mm:ss")),1)])]),e("div",pe,[s[4]||(s[4]=e("span",{class:"scan-icon"},null,-1)),e("span",null,l(t(p)==="wxcode"?"微信扫一扫支付":"支付扫一扫支付"),1)])])}}}),$e=R(ce,[["__scopeId","data-v-28b71940"]]);export{$e as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}