mirror of https://github.com/allinssl/allinssl
2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
import{d as e,c as t,o as c,a as i,m as s,s as a,r as l,x as r,h as o,e as n,U as d,j as p,B as u,V as v,f as m,k as f}from"./main-CuOpVGSB.js";import{N as y}from"./Badge-CQuWF61E.js";import{L as S}from"./LockOutlined-DtNDMe1c.js";import{N as b,a as g}from"./Tabs-lanu86Ug.js";const _={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},L=e({name:"ShoppingCartOutlined",render:function(e,s){return c(),t("svg",_,s[0]||(s[0]=[i("path",{d:"M922.9 701.9H327.4l29.9-60.9l496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 0 0-26.6-12.5l-632-2.1l-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 1 0 0 70.6h125.9L246 312.8l58.1 281.3l-74.8 122.1a34.96 34.96 0 0 0-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 0 0-35.4-35.2zM305.7 253l575.8 1.9l-56.4 315.8l-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6c0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6c0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6z",fill:"currentColor"},null,-1)]))}}),h=s("cert-apply-store",(()=>{const e=l("证书申请"),t=l("commercial"),c=l("dv"),i=l([{key:"commercial",title:"商业证书",desc:"品牌SSL证书,安全保障,全球兼容"},{key:"free",title:"免费证书",desc:"适用于个人博客、测试环境的免费SSL证书"}]),s=l({dv:"域名型(DV)",ov:"企业型(OV)",ev:"增强型(EV)"}),a=l([{type:"dv",title:"个人(DV 证书)",explain:"个人博客、个人项目等<br>可选择DV SSL证书。"},{type:"ov",title:"传统行业(OV 证书)",explain:"企业官网、电商、教育、医疗、公共<br>部门等,可选择OV SSL证书。"},{type:"ev",title:"金融机构(EV 证书)",explain:"银行、金融、保险、电子商务、中大型企<br>业、政府机关等,可选择EV SSL证书。"}]),o=l({dv:{title:"域名型SSL证书 (DV SSL)",features:["适用场景: 个人网站、博客、论坛等","验证方式: 仅验证域名所有权","签发时间: 最快5分钟","安全级别: 基础级"],advantages:"优势: 价格低廉,签发速度快,适合个人使用",disadvantages:"劣势: 仅显示锁形图标,不显示企业信息",recommendation:"推荐指数: ★★★☆☆"},ov:{title:"企业型SSL证书 (OV SSL)",features:["适用场景: 企业官网、电商网站、教育医疗网站等","验证方式: 验证域名所有权和企业真实性","签发时间: 1-3个工作日","安全级别: 中级"],advantages:"优势: 兼顾安全和价格,适合一般企业使用",disadvantages:"劣势: 签发时间较DV长",recommendation:"推荐指数: ★★★★☆"},ev:{title:"增强型SSL证书 (EV SSL)",features:["适用场景: 银行、金融机构、政府网站、大型企业","验证方式: 最严格的身份验证流程","签发时间: 5-7个工作日","安全级别: 最高级"],advantages:"优势: 提供最高级别安全认证,浏览器地址栏显示企业名称",disadvantages:"劣势: 价格较高,签发时间最长",recommendation:"推荐指数: ★★★★★"}}),n=l({dv:[{pid:8001,brand:"Positive",type:"域名型(DV)",add_price:0,other_price:398,title:"PositiveSSL 单域名SSL证书",code:"comodo-positivessl",num:1,price:159,discount:1,state:1,install_price:150,src_price:159},{pid:8002,brand:"Positive",type:"域名型(DV)",add_price:98,other_price:1194,title:"PositiveSSL 多域名SSL证书",code:"comodo-positive-multi-domain",num:3,price:589,discount:1,state:1,install_price:200,src_price:589},{pid:8008,brand:"Positive",type:"域名型(DV)",add_price:0,other_price:2100,title:"PositiveSSL 通配符SSL证书",code:"comodo-positivessl-wildcard",num:1,price:1289,discount:1,state:1,install_price:200,src_price:1289},{pid:8009,brand:"Positive",type:"域名型(DV)",add_price:880,other_price:4500,title:"PositiveSSL 多域名通配符SSL证书",code:"comodo-positive-multi-domain-wildcard",num:2,price:3789,discount:1,state:1,install_price:200,src_price:3789}],ov:[{pid:8303,brand:"Sectigo",type:"企业型(OV)",add_price:0,other_price:1880,title:"Sectigo OV SSL证书",code:"sectigo-ov",num:1,price:1388,discount:1,state:1,install_price:500,src_price:1388},{pid:8304,brand:"Sectigo",type:"企业型(OV)",add_price:880,other_price:5640,title:"Sectigo OV多域名SSL证书",code:"sectigo-ov-multi-san",num:3,price:3888,discount:1,state:1,install_price:500,src_price:3888},{pid:8305,brand:"Sectigo",type:"企业型(OV)",add_price:0,other_price:6980,title:"Sectigo OV通配符SSL证书",code:"sectigo-ov-wildcard",num:1,price:4888,discount:1,state:1,install_price:500,src_price:4888},{pid:8307,brand:"Sectigo",type:"企业型(OV)",add_price:3680,other_price:2094,title:"Sectigo OV多域名通配符SSL证书",code:"comodo-multi-domain-wildcard-certificate",num:3,price:15888,discount:1,state:1,install_price:500,src_price:15888}],ev:[{pid:8300,brand:"Sectigo",type:"企业增强型(EV)",add_price:0,other_price:3400,title:"Sectigo EV SSL证书",code:"comodo-ev-ssl-certificate",num:1,price:2788,discount:1,state:1,install_price:500,src_price:2788},{pid:8302,brand:"Sectigo",type:"企业增强型(EV)",add_price:1488,other_price:10200,title:"Sectigo EV多域名SSL证书",code:"comodo-ev-multi-domin-ssl",num:3,price:8388,discount:1,state:1,install_price:500,src_price:8388},{pid:8520,brand:"锐安信",type:"企业增强型(EV)",add_price:0,other_price:3480,title:"锐安信EV SSL证书",code:"ssltrus-ev-ssl",num:1,price:2688,discount:1,state:1,install_price:500,src_price:2688},{pid:8521,brand:"锐安信",type:"企业增强型(EV)",add_price:2380,other_price:10440,title:"锐安信EV多域名SSL证书",code:"ssltrus-ev-multi",num:3,price:9096,discount:1,state:1,install_price:500,src_price:9096}]}),d=l([{pid:9001,brand:"Let's Encrypt",type:"域名型(DV)",title:"Let's Encrypt 单域名SSL证书",code:"letsencrypt-single",num:1,valid_days:90,features:["90天有效期","自动续期","单域名","全球认可"]}]),p=r((()=>"commercial"===t.value&&n.value[c.value]||[]));return{test:e,handleTest:()=>{e.value="点击了证书申请"},activeMainTab:t,activeTab:c,mainTabOptions:i,typeOptions:s,sslTypeList:a,sslTypeDescriptions:o,products:n,freeProducts:d,filteredProducts:p}})),w=()=>{const e=o(),{test:t,handleTest:c,activeMainTab:i,activeTab:s,mainTabOptions:l,typeOptions:r,sslTypeList:n,sslTypeDescriptions:d,freeProducts:p,filteredProducts:u}=(()=>{const e=h();return{...e,...a(e)}})();return{test:t,handleTest:c,activeMainTab:i,activeTab:s,mainTabOptions:l,typeOptions:r,sslTypeList:n,sslTypeDescriptions:d,freeProducts:p,filteredProducts:u,handleBuyProduct:e=>{window.open("https://www.bt.cn/new/ssl.html","_blank")},handleOpenApplyModal:()=>{e.push({name:"workflow-view",params:{type:"letsencrypt"}})},formatPrice:e=>Math.floor(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}},V=e({name:"ProductCard",props:{product:{type:Object,required:!0},formatPrice:{type:Function,required:!0},onBuy:{type:Function,required:!0}},setup(e){r((()=>{const t=e.product.title.toLowerCase();return t.includes("通配符")&&t.includes("多域名")?"多域名通配符":t.includes("通配符")?"通配符":t.includes("多域名")?"多域名":"单域名"}));const t=r((()=>e.product.title.toLowerCase().includes("通配符"))),c=r((()=>e.product.title.toLowerCase().includes("多域名"))),i=()=>{e.onBuy(e.product.pid)},s=e=>{const t=e.toLowerCase();return t.includes("sectigo")?"/static/icons/sectigo-ico.png":t.includes("positive")?"/static/icons/positive-ico.png":t.includes("锐安信")?"/static/icons/ssltrus-ico.png":t.includes("let's encrypt")?"/static/icons/letsencrypt-icon.svg":void 0};return()=>n("div",{class:"product-card-flat"},[e.product.discount<1&&n("div",{class:"product-recommended-badge"},[n(y,{type:"success",value:"推荐"},null)]),n("div",{class:"product-card-header"},[n("div",{class:"product-logo"},[n(d,{width:"100%",src:s(e.product.brand),fallbackSrc:"/static/icons/default.png",alt:e.product.brand},null)]),n("div",{class:"product-title"},[n("h3",null,[e.product.title]),n("p",{class:"product-desc"},[e.product.brand,p("是知名的证书颁发机构,提供高质量的SSL证书解决方案。")])])]),n("div",{class:"product-card-content"},[n("div",{class:"product-info-flat"},[n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("支持域名数:")]),n("span",{class:"info-value"},[e.product.num,p("个")])]),n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("支持通配符:")]),n("span",{class:"info-value"},[t.value?"支持":"不支持"])]),n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("绿色地址栏:")]),n("span",{class:"info-value"},[e.product.type.includes("EV")?"显示":"不显示"])]),n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("支持小程序:")]),n("span",{class:"info-value"},[p("支持")])]),n("div",{class:"product-info-item product-example"},[n("span",{class:"info-label"},[p("适用网站:")]),n("span",{class:"info-value"},[t.value?c.value?"*.bt.cn、*.btnode.cn":"*.bt.cn":c.value?"bt.cn、btnode.cn":"www.bt.cn、bt.cn"])])]),n("div",{class:"product-price-flat"},[n("div",{class:"price-container"},[n("div",{class:"current-price"},[n("span",{class:"price-value"},[e.formatPrice(e.product.price)]),n("span",{class:"price-unit"},[p("元/年")])]),n("div",{class:"original-price"},[p("原价 "),e.formatPrice(e.product.other_price),p("元/年")])]),n(u,{type:"primary",class:"buy-button-flat",onClick:i,strong:!0,round:!0},{default:()=>[p("立即查看")]})])])])}}),O=e({name:"FreeProductCard",props:{product:{type:Object,required:!0},onApply:{type:Function,required:!0}},setup(e){const t=r((()=>e.product.title.toLowerCase().includes("通配符"))),c=r((()=>e.product.title.toLowerCase().includes("多域名"))),i=()=>{e.onApply(e.product.pid)},s=e=>{const t=e.toLowerCase();return t.includes("sectigo")?"/static/icons/sectigo-ico.png":t.includes("positive")?"/static/icons/positive-ico.png":t.includes("ssltrus")?"/static/icons/ssltrus-ico.png":t.includes("let's encrypt")?"/static/icons/letsencrypt-icon.svg":void 0};return()=>n("div",{class:"product-card-flat free-product-card"},["Let's Encrypt"===e.product.brand&&n("div",{class:"product-recommended-badge"},[n(y,{type:"info",value:"热门"},null)]),n("div",{class:"product-card-header"},[n("div",{class:"product-logo"},[n(d,{src:s(e.product.brand),fallbackSrc:"/static/icons/default.png",alt:e.product.brand},null)]),n("div",{class:"product-title"},[n("h3",null,[e.product.title]),n("p",{class:"product-desc"},[e.product.brand,p("是广泛使用的免费SSL证书提供商,适合个人网站和测试环境。")])])]),n("div",{class:"product-card-content"},[n("div",{class:"product-info-flat"},[n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("支持域名数:")]),n("span",{class:"info-value"},[e.product.num,p("个")])]),n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("支持通配符:")]),n("span",{class:"info-value"},[t.value?"支持":"不支持"])]),n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("有效期:")]),n("span",{class:"info-value"},[e.product.valid_days,p("天")])]),n("div",{class:"product-info-item"},[n("span",{class:"info-label"},[p("支持小程序:")]),n("span",{class:"info-value"},[p("支持")])]),n("div",{class:"product-info-item product-example"},[n("span",{class:"info-label"},[p("适用网站:")]),n("span",{class:"info-value"},[t.value?c.value?"*.example.com、*.demo.com":"*.example.com":c.value?"example.com、demo.com":"www.example.com、example.com"])])]),n("div",{class:"product-price-flat"},[n("div",{class:"price-container"},[n("div",{class:"current-price"},[n("span",{class:"price-value"},[p("免费")])]),n("div",{class:"original-price"},[p("需要手动续期")])]),n(u,{type:"primary",class:"buy-button-flat",onClick:i,strong:!0,round:!0},{default:()=>[p("立即申请")]})])])])}});function P(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!f(e)}const T=e({setup(){const{activeMainTab:e,activeTab:t,mainTabOptions:c,sslTypeList:i,freeProducts:s,filteredProducts:a,handleBuyProduct:l,formatPrice:r,handleOpenApplyModal:o}=w();return()=>{let d;return n("div",{class:"cert-apply-container"},[n("div",{class:"cert-tabs-container"},[n(b,{class:"main-tabs",type:"segment",value:e.value,"onUpdate:value":t=>e.value=t,size:"large",justifyContent:"space-evenly"},P(d=c.value.map((c=>n(g,{key:c.key,name:c.key},{tab:()=>n("div",{class:"main-tab-header"},[n(m,{size:"20"},{default:()=>["commercial"===c.key?n(L,null,null):n(S,null,null)]}),n("span",{style:"margin-left: 8px"},[c.title])]),default:()=>{let c;return n("div",{class:"main-tab-pane"},["commercial"===e.value&&n(b,{class:"cert-tabs",type:"line",value:t.value,"onUpdate:value":e=>t.value=e,size:"medium",justifyContent:"space-evenly"},P(c=i.value.map((e=>n(g,{key:e.type,name:e.type,tab:e.title},{default:()=>[n("div",{class:"cert-type-container"},[a.value.length>0?n("div",{class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"},[a.value.map((e=>n(V,{key:e.pid,product:e,formatPrice:r,onBuy:l},null)))]):n(v,{description:"暂无产品"},null)])]}))))?c:{default:()=>[c]}),"free"===e.value&&n("div",{class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"},[s.value.map((e=>n(O,{key:e.pid,product:e,onApply:o},null)))])])}}))))?d:{default:()=>[d]})])])}}});export{T as default};
|