← Back
Editing: index-legacy380.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var r,n={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function v(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{v({},"")}catch(r){v=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,l=Object.create(i.prototype),s=new D(n||[]);return a(l,"_invoke",{value:k(e,r,s)}),l}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var d="suspendedStart",m="suspendedYield",y="executing",h="completed",b={};function g(){}function w(){}function x(){}var L={};v(L,c,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(S([])));C&&C!==i&&l.call(C,c)&&(L=C);var j=x.prototype=g.prototype=Object.create(L);function P(e){["next","throw","return"].forEach((function(t){v(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,r){function n(i,a,s,c){var o=f(t[i],t,a);if("throw"!==o.type){var u=o.arg,v=u.value;return v&&"object"==e(v)&&l.call(v,"__await")?r.resolve(v.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):r.resolve(v).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(o.arg)}var i;a(this,"_invoke",{value:function(e,t){function l(){return new r((function(r,i){n(e,t,r,i)}))}return i=i?i.then(l,l):l()}})}function k(e,t,n){var i=d;return function(l,a){if(i===y)throw Error("Generator is already running");if(i===h){if("throw"===l)throw a;return{value:r,done:!0}}for(n.method=l,n.arg=a;;){var s=n.delegate;if(s){var c=T(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var o=f(e,t,n);if("normal"===o.type){if(i=n.done?h:m,o.arg===b)continue;return{value:o.arg,done:n.done}}"throw"===o.type&&(i=h,n.method="throw",n.arg=o.arg)}}}function T(e,t){var n=t.method,i=e.iterator[n];if(i===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var l=f(i,e.iterator,t.arg);if("throw"===l.type)return t.method="throw",t.arg=l.arg,t.delegate=null,b;var a=l.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function e(){for(;++i<t.length;)if(l.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=x,a(j,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=v(x,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,v(e,u,"GeneratorFunction")),e.prototype=Object.create(j),e},n.awrap=function(e){return{__await:e}},P(O.prototype),v(O.prototype,o,(function(){return this})),n.AsyncIterator=O,n.async=function(e,t,r,i,l){void 0===l&&(l=Promise);var a=new O(p(e,t,r,i),l);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(j),v(j,u,"Generator"),v(j,c,(function(){return this})),v(j,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=S,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=r),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=l.call(a,"catchLoc"),o=l.call(a,"finallyLoc");if(c&&o){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!o)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}},n}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,r||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function l(e,t,r,n,i,l,a){try{var s=e[l](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){l(a,n,i,s,c,"next",e)}function c(e){l(a,n,i,s,c,"throw",e)}s(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./useStore-legacy12.js?v=VERSION_NUMBER","./useController-legacy13.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./useController-legacy5.js?v=VERSION_NUMBER","./useMethod-legacy5.js?v=VERSION_NUMBER","./useController-legacy4.js?v=VERSION_NUMBER","./useStore-legacy10.js?v=VERSION_NUMBER"],(function(e,r){"use strict";var i,l,s,c,o,u,v,p,f,d,m,y,h,b,g,w,x,L,A,C,j,P,O,k,T,_,E,D,S,N,I,B;return{setters:[function(e){i=e.K,l=e.n,s=e.L,c=e.d,o=e.b,u=e.e},function(e){v=e.c,p=e.r,f=e.g,d=e.p,m=e.G,y=e.H,h=e.x,b=e.q,g=e.v,w=e.y,x=e.e,L=e.A,A=e.J,C=e.bp,j=e.z,P=e.I,O=e.F,k=e.a_,T=e.C,_=e.B,E=e.aW,D=e.D},function(e){S=e.getBusSslProductList,N=e.applyCertOrderPay},function(e){I=e.u},function(e){B=e.C},null,null,null,null,null,null,null,null,null,null,null],execute:function(){var F={class:""},V={class:"px-[3rem] py-[2rem] min-h-[62rem]"},G={class:"ssl-bus-pay-form"},q={class:"ssl-line"},M={class:"ssl-content"},z={class:"ssl-box mb-[4px]"},H={class:"ssl-number-select"},J={class:"ssl-service"},Y={class:"flex items-center"},K={class:"ssl-line"},U={class:"ssl-content"},W={class:"ssl-option-list w-full"},Q=["onClick"],R={class:"ssl-type-title"},X={class:"ssl-type-tips"},Z={key:0,class:"ssl-subscript-tips"},$={class:"ssl-tips-list mb-[.4rem]"},ee={class:"mt-[.4rem]"},te={class:"ssl-line"},re={class:"ssl-content"},ne={class:"ssl-option-list"},ie=["onClick"],le={class:"ssl-type-title !font-normal border-none"},ae={key:0,class:"ssl-subscript-tips"},se={class:"ssl-tips-list mb-[.4rem]"},ce={class:"mt-[.4rem]"},oe={class:"ssl-line"},ue={class:"ssl-content"},ve={class:"ssl-option-list"},pe=["onClick"],fe={class:"ssl-type-title !font-normal border-none"},de={key:0,class:"ssl-subscript-tips"},me={class:"ssl-tips-list mb-[.4rem]"},ye={class:"mt-[.4rem]"},he={class:"ssl-line"},be={class:"ssl-content"},ge={class:"ssl-option-list"},we=["onClick"],xe={class:"ssl-type-title !font-normal border-none"},Le={key:0,class:"ssl-subscript-tips"},Ae={class:"ssl-tips-list mb-[.4rem]"},Ce={class:"mt-[.4rem]"},je={class:"mt-[4px]"},Pe={class:"ssl-line"},Oe={class:"ssl-content"},ke={class:"ssl-option-list"},Te=["onClick"],_e={class:"ssl-type-title !font-normal border-none"},Ee={key:0,class:"ssl-subscript-tips"},De={class:"ssl-tips-list mb-[.4rem]"},Se={class:"mt-[.4rem]"},Ne={class:"ssl-info-view rounded-sm"},Ie={class:"flex justify-between w-full"},Be={class:"flex flex-col"},Fe={class:"mb-[4px]"},Ve={class:"mr-[1rem]"},Ge={class:"flex flex-col"},qe={class:"flex h-[2.2rem] items-end mb-[4px]"},Me={class:"text-[#FC6D26] text-[1.2rem]"},ze={class:"text-[2rem] font-bold"},He={class:"pl-[6rem] text-[1.2rem] text-[#aaa] line-through"},Je={class:"flex items-center"},Ye=v({__name:"index",emits:["close"],setup:function(e,u){var v=u.emit,Ye=o(),Ke=I(),Ue=Ke.sslApplicationInfo,We=Ke.productInfo,Qe=Ke.orderInfo,Re=v,Xe=p(!1),Ze=p(0),$e={single:["仅支持绑定一个二级域名或者子域名,例如 bt.com、cloud.bt.com、dnspod.cloud.bt.com的其中之一 。","如需要绑定同级的所有子域名,例如*.bt.com,请购买泛域名证书。"],wildcard:["带通配符的域名,例如:*.bt.com、*.cloud.bt.com均为泛域名,包含同一级的全部子域名。","注意泛域名不支持跨级,例如*.bt.com 不包含 *.cloud.bt.com的支持"]},et={0:[],1:["宝塔提供9:00 - 24:00的人工部署证书部署服务,帮助客户排查部署证书部署生效问题,快速上线"],2:["宝塔提供9:00 - 24:00的人工部署国密算法证书部署服务,帮助客户排查部署证书部署生效问题,快速上线"]},tt=p({num:1,certClassAcitve:"OV",certClass:[{name:"OV证书",title:"推荐企业使用",value:"OV",tips:[],data:[]},{name:"DV证书",title:"推荐个人,测试使用",value:"DV",subscript:"热销",tips:[]},{name:"EV证书",title:"推荐大型政企使用,高安全性",value:"EV",tips:[]}],certBrandAcitve:"",certBrand:[{name:"宝塔证书",title:"宝塔证书",value:"宝塔证书",tips:[]},{name:"Positive",title:"Positive",value:"Positive",tips:[]},{name:"锐安信",title:"锐安信",value:"锐安信",tips:[]},{name:"CFCA",title:"CFCA",value:"CFCA",tips:[]},{name:"Digicert",title:"Digicert",value:"Digicert",tips:[]},{name:"GeoTrust",title:"GeoTrust",value:"GeoTrust",tips:[]},{name:"Sectigo",title:"Sectigo",value:"Sectigo",tips:[]},{name:"亚洲诚信",title:"亚洲诚信",value:"亚洲诚信",tips:[]}],certTypeAcitve:"single",certType:[{name:"single",title:"单域名",value:"single",tips:[]},{name:"multiple",title:"多域名",value:"multiple",tips:[]},{name:"wildcard",title:"泛域名",value:"wildcard",tips:[]},{name:"ip",title:"IP证书",value:"ip",tips:[]}],certLifeAcitve:1,certLife:[{name:"1年",title:"1年",value:1,tips:[]},{name:"2年",title:"2年",value:2,tips:[]},{name:"3年",title:"3年",value:3,tips:[]},{name:"4年",title:"4年",value:4,tips:[]},{name:"5年",title:"5年",value:5,tips:[]}],certDeployAcitve:1,certDeploy:[{name:"不需要",title:"不需要",value:0,tips:[]},{name:"部署服务",title:"部署服务",value:1,tips:[]},{name:"部署服务(国密)",title:"部署服务(国密)",value:2,tips:[]}]}),rt=p({}),nt=p({addPrice:0,productName:"",price:0,totalPrice:0,originalPrice:0,deploymentPrice:0,pid:0,years:1,yearsPrice:0,number:1,extraNumber:0,extraPrice:0,install:1}),it=p({oid:0,wxcode:"",alicode:"",qq:"",orderInfo:{}}),lt={defalutList:[],domianNumList:[],classList:[],brandList:[],typeList:[]},at=f((function(){var e=tt.value.certClass.filter((function(e){return e.value===tt.value.certClassAcitve}));return e&&e.length>0?e[0].tips:[]})),st=f((function(){var e=tt.value.certBrand.filter((function(e){return e.value===tt.value.certBrandAcitve}));return e&&e.length>0?e[0].tips:[]})),ct=f((function(){var e=tt.value.certType.filter((function(e){return e.value===tt.value.certTypeAcitve}));return e&&e.length>0?e[0].tips:[]})),ot=f((function(){var e=tt.value.certLife.filter((function(e){return e.value===parseInt(tt.value.certLifeAcitve)}));return e&&e.length>0?e[0].tips:[]})),ut=f((function(){var e=tt.value.certDeploy.filter((function(e){return e.value===parseInt(tt.value.certDeployAcitve)}));return e&&e.length>0?e[0].tips:[]})),vt=function(){var e=a(t().mark((function e(){var r,i,l,a,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Xe.value=!0,e.next=4,S();case 4:r=e.sent,i=r.data,l=i.info,a=i.data,s=i.administrator,rt.value=l.recommend,mt(),pt(l),ft(a),yt(),Ue.value=n({},s),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0);case 20:return e.prev=20,Xe.value=!1,e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[0,17,20,23]])})));return function(){return e.apply(this,arguments)}}(),pt=function(e){var t=e.type,r=e.brand,n=e.times;tt.value.certClass=Ot(tt.value.certClass,t,(function(e,t){return t["".concat(e.value).toLowerCase()]})),$e.multiple=$e.single,tt.value.certType=Ot(tt.value.certType,$e),tt.value.certDeploy=Ot(tt.value.certDeploy,et),tt.value.certBrand=Ot(tt.value.certBrand,r,(function(e,t){return t["Positive"!==e.value?"".concat(e.value).toLowerCase():"Positive"]})),tt.value.certLife=Ot(tt.value.certLife,n,(function(e,t){return t[e.value+"_year"]}))},ft=function(e){var t=[];e.forEach((function(e){var r,i=null===(r=e.type.match(/(OV|DV|EV)/))||void 0===r?void 0:r[0],l=-1!==e.code.indexOf("wildcard"),a=-1!==e.code.indexOf("ip"),s=e.add_price>0,c=l?"wildcard":s?"multiple":"single";"Digicert"===e.brand&&(c=l?"wildcard":"single"),t.push(n(n({},e),{type:i,certType:c,isMulti:s,isIp:a}))})),lt.defalutList=t},dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.num,r=e.classify,n=e.brand,i=e.type,l=e.life,a=e.deploy,s=tt.value;return t||(t=s.num),r||(r=s.certClassAcitve),n||(n=s.certBrandAcitve),i||(i=s.certTypeAcitve),l||(l=s.certLifeAcitve),a||(a=s.certDeployAcitve),{num:t,classify:r,brand:n,type:i,life:l,deploy:a}},mt=function(){tt.value.certClassAcitve="DV",tt.value.certBrandAcitve=ht(),tt.value.certTypeAcitve="single",tt.value.certLifeAcitve=1,tt.value.certDeployAcitve=1},yt=function(){gt(lt.defalutList),bt(),jt()},ht=function(){var e;return rt.value[null===(e=tt.value.certClassAcitve)||void 0===e?void 0:e.toLowerCase()]},bt=function(){var e=lt.domianNumList,t=lt.classList,r=lt.brandList;lt.typeList;tt.value.certClass.forEach((function(t){var r=e.some((function(e){return e.type===t.value}));"EV"==t.value&&"wildcard"===tt.value.certTypeAcitve&&(r=!1),t.disable=!r})),tt.value.certBrand.forEach((function(e){var r=!t.some((function(t){return t.brand===e.value}));if(e.hidden=r,e.subscript=e.value===ht()?"推荐":"",e.value===tt.value.certBrandAcitve&&e.hidden){var n,i;if(tt.value.certBrandAcitve=ht(),e.value===tt.value.certBrandAcitve&&e.hidden)tt.value.certBrandAcitve=null==lt||null===(i=lt.classList)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.brand;var l=null==lt||null===(n=lt.classList)||void 0===n?void 0:n.filter((function(e){return e.brand===tt.value.certBrandAcitve}));l.length>0&&(lt.brandList=l,Lt(l))}})),tt.value.certType.forEach((function(e){var t=!r.some((function(t){return!(!t.isIp||"ip"!==e.value)||t.certType===e.value}));"single"===e.value&&tt.value.num>1&&(t=!0),"multiple"===e.value&&1===tt.value.num&&(t=!0),"multiple"===e.value&&tt.value.num>1&&(t=!1),"ip"===e.value&&tt.value.num>1&&(t=!0),e.hidden=t})),"CFCA"!==tt.value.certBrandAcitve&&2===tt.value.certDeployAcitve&&(tt.value.certDeployAcitve=1)},gt=function(e){var t=dt().num,r=e.filter((function(e){return!(t>1)||e.isMulti}));r.length>0&&(lt.domianNumList=r,wt(r))},wt=function(e){var t=dt().classify,r=e.filter((function(e){return e.type===t}));r.length>0&&(lt.classList=r,xt(r))},xt=function(e){var t=dt().brand,r=e.filter((function(e){return e.brand===t}));r.length>0&&(lt.brandList=r,Lt(r))},Lt=function(e){var t=dt().type;1===e.length&&(tt.value.certTypeAcitve=e[0].certType);var r=e.filter((function(e){var r="multiple"===tt.value.certTypeAcitve&&"wildcard"!==e.certType&&e.isMulti,n="wildcard"===tt.value.certTypeAcitve&&"wildcard"===e.certType&&e.isMulti,i="ip"===tt.value.certTypeAcitve&&e.isIp;return e.certType===t||r||n||i}));r.length>0&&(lt.typeList=r)},At=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt.value.num,t=e;if("number"!=typeof e?(e=parseInt(e.data),t=parseInt(tt.value.num)||1):t=parseInt(tt.value.num+e)||1,t&&(t<1||t>99))return tt.value.num=t<1?1:99,Ye.error("域名数量范围为1-99");tt.value.num=t,"wildcard"!==tt.value.certTypeAcitve&&(tt.value.certTypeAcitve=tt.value.num>1?"multiple":"single"),yt()},Ct=function(e,t,r){r||(r=tt.value[t].filter((function(t){return t.value===e}))),r.disable||("".concat(t,"Acitve")in tt.value&&(tt.value["".concat(t,"Acitve")]=e),yt())},jt=function(){var e=lt.typeList[0]||null;if(Ze.value=(null==e?void 0:e.num)||0,e){var t=dt(),r=t.num,n=t.life,i=t.deploy,l=e.price,a=e.other_price,s=e.add_price,c=e.pid,o=e.num,u=r-o<0?0:r-o,v=[0,e.install_price,e.install_price_v2][i],p=s*u,f=(p+l)*n+v,d=a+p+v;nt.value={addPrice:s||0,productName:e.title,price:l,totalPrice:f,originalPrice:d,deploymentPrice:v,pid:c,years:n,yearsPrice:l*n,number:o,extraNumber:u,extraPrice:p,install:Number(i)}}},Pt=function(){var e=a(t().mark((function e(){var r,l,a,s,c,o,u,v,p,f,d,m,y,h,b;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=nt.value,l=r.pid,a=r.install,s=r.years,c=r.extraNumber,o={pdata:JSON.stringify({pid:l,install:a,years:s,num:c})},e.next=5,i({loading:"正在创建商业证书订单,请稍后...",request:N(o)});case 5:if(u=e.sent,v=u.data,p=u.msg,v.status){e.next=11;break}return e.abrupt("return",Ye.error(p));case 11:f=v.msg,d=f.oid,m=f.wxcode,y=f.alicode,h=f.qq,b=f.order_info,it.value={oid:d,wxcode:m,alicode:y,qq:h,orderInfo:b},kt(n(n({},it.value),{},{productInfo:nt.value})),Re("close"),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0);case 20:return e.prev=20,e.finish(20);case 22:case"end":return e.stop()}}),e,null,[[0,17,20,22]])})));return function(){return e.apply(this,arguments)}}(),Ot=function(e,t,r){return e.map((function(e,i){var l=r?r(e,t):t[e.value];return n(n({},e),{},{tips:l})}))},kt=function(e){We.value=e.productInfo,Qe.value=e.orderInfo,l({title:"支付商业证书订单",area:[60],component:function(){return s((function(){return r.import("./pay-bus-ssl-legacy2.js?v=VERSION_NUMBER")}),void 0,r.meta.url)},compData:e})};return d((function(){vt()})),function(e,t){var r=E,n=c,i=D,l=m("bt-loading");return y((b(),g("div",F,[w("div",V,[x(r,{type:"error",closable:!1},{title:L((function(){return t[3]||(t[3]=[w("span",{class:"text-[1.2rem] flex items-center"},[w("span",{class:"svgtofont-hint-confirm-icon !text-[2rem]"}),w("span",null," 禁止含有诈骗、赌博、色情、木马、病毒等违法违规业务信息的站点申请SSL证书,如有违反,撤销申请,停用账号。 ")],-1)])})),_:1}),w("div",G,[w("div",q,[t[6]||(t[6]=w("div",{class:"ssl-label"},"域名数量",-1)),w("div",M,[w("div",z,[w("div",H,[w("div",{class:A(["del-number",{"is-disable":1===h(tt).num}]),onClick:t[0]||(t[0]=function(e){return At(-1)})},null,2),y(w("input",{type:"number",class:"input-number",min:"1",max:"99","onUpdate:modelValue":t[1]||(t[1]=function(e){return h(tt).num=e}),onInput:At},null,544),[[C,h(tt).num]]),w("div",{class:A(["add-number",{"is-disable":99===h(tt).num}]),onClick:t[2]||(t[2]=function(e){return At(1)})},null,2)]),w("div",J,[x(B,{placement:"right"},{default:L((function(){return[w("div",Y,[x(n,{src:"../icons/service-icon.svg",class:"mx-[.4rem] w-1.6rem h-1.6rem"}),t[4]||(t[4]=w("span",{class:"ml5"},"教我选择?",-1))])]})),_:1})]),y(w("div",{class:"ssl-tips"},"默认包含"+j(h(Ze))+"个域名,超出数量每个域名"+j(h(nt).addPrice)+"元/个/年",513),[[P,0!==h(nt).addPrice]])]),t[5]||(t[5]=w("div",{class:"ssl-tips"},"请选择当前证书包含的域名数量",-1))])]),w("div",K,[t[7]||(t[7]=w("div",{class:"ssl-label"},"证书分类",-1)),w("div",U,[w("div",W,[(b(!0),g(O,null,k(h(tt).certClass,(function(e){return b(),g("div",{class:A(["ssl-option-item flex-1",{"is-active":e.value===h(tt).certClassAcitve,"is-disabled":e.disable,"!hidden":e.hidden}]),key:e.value,onClick:function(t){return Ct(e.value,"certClass",e)}},[w("div",R,j(e.name),1),w("div",X,j(e.title),1),e.subscript?(b(),g("em",Z,j(e.subscript),1)):T("",!0)],10,Q)})),128))]),w("div",$,[(b(!0),g(O,null,k(h(at),(function(e){return b(),g("p",ee,j(e),1)})),256))])])]),w("div",te,[t[8]||(t[8]=w("div",{class:"ssl-label"},"证书品牌",-1)),w("div",re,[w("div",ne,[(b(!0),g(O,null,k(h(tt).certBrand,(function(e){return b(),g("div",{class:A(["ssl-option-item min-w-[9rem]",{"is-active":e.value===h(tt).certBrandAcitve,"is-disabled":e.disable,"!hidden":e.hidden}]),key:e.value,onClick:function(t){return Ct(e.value,"certBrand",e)}},[w("div",le,j(e.title),1),e.subscript?(b(),g("em",ae,j(e.subscript),1)):T("",!0)],10,ie)})),128))]),w("div",se,[(b(!0),g(O,null,k(h(st),(function(e){return b(),g("p",ce,j(e),1)})),256))])])]),w("div",oe,[t[9]||(t[9]=w("div",{class:"ssl-label"},"证书类型",-1)),w("div",ue,[w("div",ve,[(b(!0),g(O,null,k(h(tt).certType,(function(e){return b(),g("div",{class:A(["ssl-option-item min-w-[9rem]",{"is-active":e.value===h(tt).certTypeAcitve,"is-disabled":e.disable,"!hidden":e.hidden}]),key:e.value,onClick:function(t){return Ct(e.value,"certType",e)}},[w("div",fe,j(e.title),1),e.subscript?(b(),g("em",de,j(e.subscript),1)):T("",!0)],10,pe)})),128))]),w("div",me,[(b(!0),g(O,null,k(h(ct),(function(e){return b(),g("p",ye,j(e),1)})),256))])])]),w("div",he,[t[10]||(t[10]=w("div",{class:"ssl-label"},"购买年限",-1)),w("div",be,[w("div",ge,[(b(!0),g(O,null,k(h(tt).certLife,(function(e){return b(),g("div",{class:A(["ssl-option-item min-w-[9rem]",{"is-active":e.value===h(tt).certLifeAcitve}]),key:e.value,onClick:function(t){return Ct(e.value,"certLife",e)}},[w("div",xe,j(e.title),1),e.subscript?(b(),g("em",Le,j(e.subscript),1)):T("",!0)],10,we)})),128))]),w("div",Ae,[(b(!0),g(O,null,k(h(ot),(function(e){return b(),g("p",Ce,j(e),1)})),256)),y(w("p",je," 部署成功后会生成自动续签任务 请不要变更DNS验证内容 ",512),[[P,"宝塔证书"===h(tt).certBrandAcitve&&h(tt).certLifeAcitve>1]])])])]),w("div",Pe,[t[11]||(t[11]=w("div",{class:"ssl-label"},"部署服务",-1)),w("div",Oe,[w("div",ke,[(b(!0),g(O,null,k(h(tt).certDeploy,(function(e){return b(),g(O,{key:e.value},[2!==e.value||"CFCA"===h(tt).certBrandAcitve?(b(),g("div",{key:0,class:A(["ssl-option-item min-w-[9rem]",{"is-active":e.value===h(tt).certDeployAcitve}]),onClick:function(t){return Ct(e.value,"certDeploy",e)}},[w("div",_e,j(e.title),1),e.subscript?(b(),g("em",Ee,j(e.subscript),1)):T("",!0)],10,Te)):T("",!0)],64)})),128))]),w("div",De,[(b(!0),g(O,null,k(h(ut),(function(e){return b(),g("p",Se,j(e),1)})),256))])])])])]),w("div",Ne,[w("div",Ie,[w("div",Be,[w("div",Fe,[t[12]||(t[12]=_(" 商品包含:")),w("span",Ve,j("".concat(h(nt).productName," - 默认包含").concat(h(nt).number,"个域名 ").concat(h(nt).yearsPrice,"元/").concat(h(nt).years,"年"))+j(h(nt).extraNumber>0?",额外超出".concat(h(nt).extraNumber,"个域名").concat(h(nt).extraPrice.toFixed(2),"元/").concat(h(nt).years,"年"):""),1)]),w("div",Ge,[w("div",qe,[t[13]||(t[13]=w("span",null,"总计费用:",-1)),w("div",Me,[w("span",ze,j(h(nt).totalPrice.toFixed(2)),1),w("span",null,"元/"+j(h(nt).years)+"年",1),y(w("span",null,"(包含部署服务)",512),[[P,h(nt).install]])])]),w("div",He,"原价"+j((Number(h(nt).originalPrice)*h(nt).years).toFixed(2))+"元/"+j(h(nt).years)+"年",1)])]),w("div",Je,[x(i,{size:"large",type:"primary",onClick:Pt},{default:L((function(){return t[14]||(t[14]=[_("立即购买")])})),_:1})])])])])),[[l,h(Xe)],[l,"正在获取商业证书信息,请稍后...","title"]])}}});e("default",u(Ye,[["__scopeId","data-v-372a7563"]]))}}}))}();
Save File
Cancel