← Back
Editing: index-legacy155.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,l,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.toStringTag||"@@toStringTag";function c(e,i,o,a){var c=i&&i.prototype instanceof u?i:u,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,i){var o,a,c,u=0,s=i||[],d=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(e,t){return o=e,a=0,c=n,p.n=t,r}};function v(e,t){for(a=e,c=t,l=0;!d&&u&&!i&&l<s.length;l++){var i,o=s[l],v=p.p,y=o[2];e>3?(i=y===t)&&(c=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=n):o[0]<=v&&((i=e<2&&v<o[1])?(a=0,p.v=t,p.n=o[1]):v<y&&(i=e<3||o[0]>t||t>y)&&(o[4]=e,o[5]=t,p.n=y,a=0))}if(i||e>1)return r;throw d=!0,t}return function(i,s,y){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&v(s,y),a=s,c=y;(l=a<2?n:c)||!d;){o||(a?a<3?(a>1&&(p.n=-1),v(a,c)):p.n=c:p.v=c);try{if(u=2,o){if(a||(i="next"),l=o[i]){if(!(l=l.call(o,c)))throw TypeError("iterator result is not an object");if(!l.done)return l;c=l.value,a<2&&(a=0)}else 1===a&&(l=o.return)&&l.call(o),a<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=n}else if((l=(d=p.n<0)?c:e.call(t,p))!==r)break}catch(l){o=n,a=1,c=l}finally{u=1}}return{value:l,done:d}}}(e,o,a),!0),s}var r={};function u(){}function s(){}function d(){}l=Object.getPrototypeOf;var p=[][o]?l(l([][o]())):(t(l={},o,function(){return this}),l),v=d.prototype=u.prototype=Object.create(p);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return s.prototype=d,t(v,"constructor",d),t(d,"constructor",s),s.displayName="GeneratorFunction",t(d,a,"GeneratorFunction"),t(v),t(v,a,"Generator"),t(v,o,function(){return this}),t(v,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:y}})()}function t(e,n,l,i){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}t=function(e,n,l,i){function a(n,l){t(e,n,function(e){return this._invoke(n,l,e)})}n?o?o(e,n,{value:l,enumerable:!i,configurable:!i,writable:!i}):e[n]=l:(a("next",0),a("throw",1),a("return",2))},t(e,n,l,i)}function n(e,t,n,l,i,o,a){try{var c=e[o](a),r=c.value}catch(e){return void n(e)}c.done?t(r):Promise.resolve(r).then(l,i)}function l(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}System.register(["./base-lib-legacy.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./store-legacy6.js?v=1765440387","./store-legacy5.js?v=1765440387","./index-legacy94.js?v=1765440387","./index-legacy153.js?v=1765440387","./validator-legacy.js?v=1765440387","./index-legacy389.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./column-legacy.js?v=1765440387"],function(t,i){"use strict";var o,a,c,r,u,s,d,p,v,y,f,m,x,g,M,h,b,k,I,w,T,C,j,D,A,L,N,_,O,S,z,E,P,B,U,Q,V,H,R,G,F,W,Z,q,J;return{setters:[function(e){o=e.c,a=e.s,c=e.q,r=e.v,u=e.y,s=e.H,d=e.I,p=e.x,v=e.J,y=e.z,f=e.F,m=e.a$,x=e.e,g=e.A,M=e.B,h=e.C,b=e.M,k=e.G,I=e.D,w=e.r,T=e.w,C=e.Q,j=e.T,D=e.ak,A=e.ay,L=e.aj,N=e.p,_=e.a5},function(e){O=e.c,S=e.e,z=e.u,E=e.d,P=e.H,B=e.fI,U=e.R,Q=e.K,V=e.bq,H=e.r},function(e){R=e.P},function(e){G=e.H},function(e){F=e._},function(e){W=e.default},function(e){Z=e.b,q=e.j},function(e){J=e._},null,null],execute:function(){var i={class:"sidebar-title"},Y={class:"flex flex-col"},$={class:"sidebar-privilege"},K=["innerHTML"],X={key:1,class:"pt-16px"},ee={class:"whitespace-nowrap"},te={key:0,class:"sidebar-tips-item pro-introduce safe-report"},ne={key:1,class:"pro-left-footer-recom"},le=o({__name:"index",setup:function(e){var t=R(),n=a(t),o=(n.isRemarksLoading,n.productInfo),k=n.isPlugin,I=n.compData,w=(t.changeTypeTabEvent,t.openPrivilegeContrast);return function(e,t){var n,a,T,C,j,D,A,L,N,_,S,z,E=O;return c(),r("div",{class:v(["sidebar-info","sidebar-".concat(null===(n=p(o))||void 0===n||null===(n=n.activeTypeInfo)||void 0===n?void 0:n.type)])},[u("div",i,[s(u("span",{class:v("icon-currency !mr-10px !w-[2.4rem] icon-"+(null===(a=p(o))||void 0===a||null===(a=a.activeTypeInfo)||void 0===a?void 0:a.type))},null,2),[[d,!p(k)]]),u("span",null,y(null===(T=p(o))||void 0===T||null===(T=T.activeTypeInfo)||void 0===T?void 0:T.title),1)]),s(u("div",{class:"sidebar-describe"},y(null===(C=p(o))||void 0===C||null===(C=C.activeTypeInfo)||void 0===C?void 0:C.describe),513),[[d,!p(k)]]),u("div",Y,[u("div",$,y(null===(j=p(o))||void 0===j||null===(j=j.activeTypeInfo)||void 0===j?void 0:j.tipsTitle)+":",1),"plugin"===(null===(D=p(o))||void 0===D||null===(D=D.activeTypeInfo)||void 0===D?void 0:D.type)?(c(),r("div",{key:0,class:"w-[16.5rem] text-[1.4rem] leading-loose mt-[2rem]",innerHTML:null===(A=p(I))||void 0===A||null===(A=A.pluginInfo)||void 0===A?void 0:A.ps},null,8,K)):(c(),r("div",X,[(c(!0),r(f,null,m(null===(L=p(o))||void 0===L||null===(L=L.activeTypeInfo)||void 0===L?void 0:L.tipsList,function(e,n){return c(),r("div",{key:n,class:"sidebar-tips-item"},[t[1]||(t[1]=u("span",{class:"mr-8px"},[u("i",{class:"svgtofont-el-check font-black text-[#FEAA04] text-[1.6rem]"})],-1)),u("span",ee,y(e),1)])}),128))]))]),"dev"===(null===(N=p(o))||void 0===N||null===(N=N.activeTypeInfo)||void 0===N?void 0:N.type)?(c(),r("div",te,[t[3]||(t[3]=u("span",{"data-v-0c1f7542":"",class:"mr-4px"},[u("i",{class:"svgtofont-el-star-filled font-black text-[#FEAA04]"})],-1)),u("span",null,[x(E,{target:"_blank",href:"https://www.bt.cn/new/product/safety_report.html",style:{"text-decoration":"underline"}},{default:g(function(){return l(t[2]||(t[2]=[M("获取安全检查报告",-1)]))}),_:1})])])):h("",!0),"plugin"===(null===(_=p(o))||void 0===_||null===(_=_.activeTypeInfo)||void 0===_?void 0:_.type)?(c(),r("div",ne,[u("span",null,[M("Linux企业版可免费使用【"+y(null===(S=p(o))||void 0===S||null===(S=S.activeTypeInfo)||void 0===S?void 0:S.title)+"】等30+款插件,价格仅售¥",1),t[4]||(t[4]=u("span",{class:"plugin_pro_price"},"1399",-1)),t[5]||(t[5]=M("/年",-1))])])):"coupon"!==(null===(z=p(o))||void 0===z||null===(z=z.activeTypeInfo)||void 0===z?void 0:z.type)?(c(),r("div",{key:2,class:"sidebar-details",onClick:t[0]||(t[0]=function(){return p(w)&&p(w).apply(void 0,arguments)})},"特权对比")):(c(),b(E,{key:3,class:"sidebar-details",href:"https://www.bt.cn/new/activity.html",target:"_blank"},{default:g(function(){return l(t[6]||(t[6]=[M(" 查看更多活动 ",-1)]))}),_:1}))],2)}}}),ie=S(le,[["__scopeId","data-v-443cd607"]]),oe={class:"flex flex-col w-[16rem]"},ae=["onClick"],ce={class:"flex items-center pl-20px"},re={class:"relative p-12px h-[14rem] border-[1px] rounded-4px border-lightest"},ue={class:"relative"},se={class:"w-[11rem] flex items-center justify-center text-[1.4rem] mt-[2rem]"},de={class:"w-[11rem] flex items-center justify-center text-[1.2rem] mt-[4rem] text-[#999]"},pe={class:"pay-price-model"},ve={class:"repeat-buy-tips"},ye={class:"mt-4px mb-1.2rem"},fe={key:0,class:"repeat-buy-tips text-danger py-[8px] mb-1.2rem"},me={class:"userinfo"},xe={class:"line-through text-lighter"},ge={key:0,class:"font-bold mt-8px coupon-discounts-titile"},Me={class:"box"},he={class:"userinfo"},be={class:"my-16px price"},ke={class:"text-[3rem] font-bold"},Ie={class:"line-through text-lighter"},we={key:0,class:"font-bold mt-8px coupon-discounts-titile"},Te={key:0,class:"payment-cont h-13rem"},Ce={class:"mt-1.2rem"},je={class:"availableBalance text-[2.2rem]"},De={key:0,class:"flex items-center"},Ae={key:1,class:"flex flex-col w-[25rem] pl-2rem accounts-box"},Le={key:0,class:"unbind-mask"},Ne={class:"unbind-auth px-2rem py-1rem"},_e={class:"text-[1.4rem] unbind-author-content"},Oe={key:1,class:"flex flex-col items-center justify-center h-full w-full"},Se=o({__name:"index",setup:function(e){var t=z(),n=t.payment,i=t.authExpirationTime,o=t.forceLtd,b=R(),w=a(b),T=w.paymentLoading,C=w.payList,j=w.productInfo,D=w.product,A=w.activePayIcon,L=w.scanned,N=b.changeUnbindAuthor,_=b.changePayTypeEvent,S=b.changeBalanceBuyEvent,B=b.changeRefreshAuthor;return function(e,t){var a,b,w,z,U,Q,V,H,R,G,F,W,Y,$,K,X,ee,te,ne,le,ie,Se,ze,Ee,Pe,Be,Ue,Qe,Ve,He,Re,Ge,Fe,We,Ze,qe,Je=J,Ye=E,$e=O,Ke=I,Xe=P,et=k("bt-loading");return s((c(),r("div",{class:v(["pay-mode-view","pay-"+(null===(a=p(j))||void 0===a||null===(a=a.activeTypeInfo)||void 0===a?void 0:a.type)])},[p(n).bindUser?(c(),r(f,{key:0},[u("div",oe,[(c(!0),r(f,null,m(p(C),function(e){var t;return c(),r("div",{key:e.type,class:v(["pay-mode-item",{active:e.type===(null===(t=p(D))||void 0===t||null===(t=t.payMode)||void 0===t?void 0:t.activePayType)}]),onClick:function(t){return p(_)(e)}},[u("span",{class:v("icon icon-"+e.type)},null,2),u("span",null,y(e.title),1)],10,ae)}),128))]),u("div",ce,[["wechat","alipay"].includes((null===(b=p(D))||void 0===b||null===(b=b.payMode)||void 0===b?void 0:b.activePayType)||"")?(c(),r(f,{key:0},[u("div",re,[u("div",ue,[s(x(Je,{value:null===(w=p(D))||void 0===w||null===(w=w.payMode)||void 0===w||null===(w=w.qrcode)||void 0===w?void 0:w.value,size:null===(z=p(D))||void 0===z?void 0:z.payMode.qrcode.size},null,8,["value","size"]),[[d,null===(U=p(D))||void 0===U||null===(U=U.payMode)||void 0===U||null===(U=U.qrcode)||void 0===U?void 0:U.value]]),p(L)?(c(),r("div",{key:0,class:"absolute z-10 inset-0 flex items-center flex-col justify-center bg-black/70 text-white p-2 text-center rounded",onClick:t[0]||(t[0]=function(e){return p(_)({type:"alipay",isRegain:!0})})},l(t[8]||(t[8]=[M(" 已扫码,",-1),u("br",null,null,-1),M("请完成支付",-1),u("br",null,null,-1),u("div",{class:"svgtofont-el-refresh-right text-[1.6rem] cursor-pointer"},null,-1)])))):h("",!0)]),s(u("div",se,"获取中",512),[[d,!(null!==(Q=p(D))&&void 0!==Q&&null!==(Q=Q.payMode)&&void 0!==Q&&null!==(Q=Q.qrcode)&&void 0!==Q&&Q.value)]]),x(Ye,{type:"icons",src:p(A),class:"!absolute bg-white border-[0.2rem] border-lightest rounded-2px mr-4px w-2.4rem h-2.4rem top-24 left-22"},null,8,["src"]),s(u("div",de,"请尝试切换支付方式",512),[[d,!(null!==(V=p(D))&&void 0!==V&&null!==(V=V.payMode)&&void 0!==V&&null!==(V=V.qrcode)&&void 0!==V&&V.value)]])]),u("div",pe,[s(u("div",ve,[t[11]||(t[11]=u("div",{class:"text-danger p-8px"},"检测到您30分钟内有重复支付订单!",-1)),u("div",ye,[t[10]||(t[10]=M(" 如遇到支付后授权未生效,请尝试 ",-1)),x($e,{class:"underline",onClick:t[1]||(t[1]=function(e){return p(B)()})},{default:g(function(){return l(t[9]||(t[9]=[M("刷新授权",-1)]))}),_:1})])],512),[[d,null===(H=p(D))||void 0===H||null===(H=H.payMode)||void 0===H?void 0:H.isLastBuyRepeat]]),null===(R=p(D))||void 0===R||!R.payMode.payTips.status||null!==(G=p(D))&&void 0!==G&&null!==(G=G.payMode)&&void 0!==G&&G.isLastBuyRepeat?h("",!0):(c(),r("div",fe,[M(" 【"+y(null===(F=p(D))||void 0===F?void 0:F.payMode.payTips.name)+"】 ",1),(null===(W=p(D))||void 0===W?void 0:W.payMode.payTips.day)>=0?(c(),r(f,{key:0},[M(" 还剩 "+y(null===(Y=p(D))||void 0===Y?void 0:Y.payMode.payTips.day)+" 天到期",1)],64)):(c(),r(f,{key:1},[M(y(p(i)),1)],64)),M(" , 支付后【"+y(null===($=p(D))||void 0===$?void 0:$.payMode.payTips.name)+"】自动转为抵扣券 ",1)])),u("div",{class:v(["flex flex-col",null!==(K=p(D))&&void 0!==K&&null!==(K=K.payMode)&&void 0!==K&&K.isLastBuyRepeat&&null!==(X=p(D))&&void 0!==X&&X.couponMode.status?"":"mb-16px"])},[u("div",me,[M(" 当前账号:"+y(p(n).bindUser)+" ",1),p(o)?h("",!0):(c(),r("a",{key:0,class:"underline cursor-pointer",onClick:t[2]||(t[2]=function(){return p(Z)&&p(Z).apply(void 0,arguments)})},"切换账号"))]),u("div",{class:v(["buy-price",null!==(ee=p(D))&&void 0!==ee&&null!==(ee=ee.payMode)&&void 0!==ee&&ee.isLastBuyRepeat&&null!==(te=p(D))&&void 0!==te&&te.couponMode.status?"":"mt-16px"])},[t[13]||(t[13]=u("span",null,"支付金额:",-1)),u("span",null,[t[12]||(t[12]=u("span",{class:"text-[1.8rem] font-bold"},"¥",-1)),u("span",null,y(null===(ne=p(D))||void 0===ne?void 0:ne.payMode.activeBuyInfo.price),1)]),u("span",null,y(null===(le=p(D))||void 0===le?void 0:le.payMode.activeBuyInfo.cycle)+"/"+y(null===(ie=p(D))||void 0===ie?void 0:ie.payMode.activeBuyInfo.count)+"台",1),u("span",xe," 原价: "+y(null===(Se=p(D))||void 0===Se?void 0:Se.payMode.activeBuyInfo.originalPrice)+"元 ",1),null!==(ze=p(D))&&void 0!==ze&&ze.couponMode.status?(c(),r("div",ge,y(null===(Ee=p(D))||void 0===Ee?void 0:Ee.couponMode.discountsTitle),1)):h("",!0)],2)],2)])],64)):(c(),r(f,{key:1},[u("div",Me,[u("div",he,[M(" 当前账号:"+y(p(n).bindUser)+" ",1),p(o)?h("",!0):(c(),r("a",{key:0,class:"underline cursor-pointer",onClick:t[3]||(t[3]=function(){return p(Z)&&p(Z).apply(void 0,arguments)})},"切换账号"))]),u("div",be,[t[15]||(t[15]=M(" 支付金额: ",-1)),u("span",ke,[t[14]||(t[14]=u("b",{class:"text-[1.8rem]"},"¥",-1)),M(y(null===(Pe=p(D))||void 0===Pe?void 0:Pe.payMode.activeBuyInfo.price),1)]),u("span",null,y(null===(Be=p(D))||void 0===Be?void 0:Be.payMode.activeBuyInfo.cycle)+"/"+y(null===(Ue=p(D))||void 0===Ue?void 0:Ue.payMode.activeBuyInfo.count)+"台",1)]),u("div",Ie," 原价: "+y(null===(Qe=p(D))||void 0===Qe?void 0:Qe.payMode.activeBuyInfo.originalPrice)+"元 ",1),null!==(Ve=p(D))&&void 0!==Ve&&Ve.couponMode.status?(c(),r("div",we,y(null===(He=p(D))||void 0===He?void 0:He.couponMode.discountsTitle),1)):h("",!0)]),"balance"==(null===(Re=p(D))||void 0===Re?void 0:Re.payMode.activePayType)?(c(),r("div",Te,[t[20]||(t[20]=M(" 可用余额 ",-1)),u("div",Ce,[u("span",je,y(null===(Ge=p(D))||void 0===Ge?void 0:Ge.payMode.balance),1),t[16]||(t[16]=M("元 ",-1))]),x(Ke,{class:"!my-1rem",type:"primary",disabled:(null===(Fe=p(D))||void 0===Fe?void 0:Fe.payMode.balance)<p(D).payMode.activeBuyInfo.price,onClick:t[4]||(t[4]=function(e){return p(S)()})},{default:g(function(){return l(t[17]||(t[17]=[M("立即购买",-1)]))}),_:1},8,["disabled"]),(null===(We=p(D))||void 0===We?void 0:We.payMode.balance)<p(D).payMode.activeBuyInfo.price?(c(),r("div",De,[t[19]||(t[19]=M("当前余额不足,请先",-1)),x($e,{target:"_blank",href:"https://www.bt.cn/admin/recharge"},{default:g(function(){return l(t[18]||(t[18]=[M("充值余额",-1)]))}),_:1})])):h("",!0)])):(c(),r("div",Ae,[t[22]||(t[22]=u("div",null,[u("span",null,"开户名称: "),M("广东堡塔安全技术有限公司")],-1)),t[23]||(t[23]=u("div",null,[u("span",null,"开户银行: "),M("招商银行股份有限公司东莞天安数码城支行")],-1)),u("div",null,[t[21]||(t[21]=u("span",null,"银行账号: ",-1)),u("span",{class:"cursor-pointer",onClick:t[5]||(t[5]=function(){return p(q)&&p(q).apply(void 0,arguments)})},"联系客服")])]))],64))]),null!==(Ze=p(j))&&void 0!==Ze&&null!==(Ze=Ze.unbindAuthor)&&void 0!==Ze&&Ze.status?(c(),r("div",Le,[u("div",Ne,[t[28]||(t[28]=u("div",{class:"text-[2.2rem] mb-[1.2rem] mt-[.4rem]"},"检测到授权冲突",-1)),u("div",_e,[t[24]||(t[24]=M(" 当前面板已绑定【",-1)),u("span",{class:v(p(n).authType+"-author-name")},y(null===(qe=p(D))||void 0===qe?void 0:qe.payMode.payTips.name),3),t[25]||(t[25]=M("】 ",-1)),t[26]||(t[26]=u("span",{class:"text-danger"},"永久授权",-1)),t[27]||(t[27]=M(",若要购买/更换其他授权,请先解绑当前授权。 ",-1))]),t[29]||(t[29]=u("div",null,"专业版/企业版每月允许免费更改服务器IP(解绑授权)一次,超过限制次数后请手动购买解绑次数。",-1)),x(Ke,{type:"primary",class:"text-[1.5rem] !mt-[1.4rem]",onClick:t[6]||(t[6]=function(e){return p(N)(!0)})},{default:g(function(){var e,t;return[M(y((null===(e=p(j))||void 0===e||null===(e=e.unbindAuthor)||void 0===e?void 0:e.count)>0?"解绑授权,剩余次数".concat(null===(t=p(j))||void 0===t||null===(t=t.unbindAuthor)||void 0===t?void 0:t.count,"次"):"点击前往购买解绑次数"),1)]}),_:1})])])):h("",!0)],64)):(c(),r("div",Oe,[x(Xe,{type:"primary",onClick:t[7]||(t[7]=function(e){return p(Z)()})},{default:g(function(){return l(t[30]||(t[30]=[M("当前未绑定宝塔账号,无法购买产品,点击绑定",-1)]))}),_:1})]))],2)),[[et,!(!p(T).status||!p(n).bindUser)],[et,p(T).title,"title"],[et,"large","size"]])}}}),ze=S(Se,[["__scopeId","data-v-6981e838"]]),Ee={class:"h-[98%]"},Pe={class:"pay-view-title !mt-28px"},Be={key:0},Ue={class:"relative mb-8px"},Qe={class:"flex flex-wrap overflow-y-auto max-h-[12rem]"},Ve=["onClick"],He=["onClick"],Re={key:1,class:"pay-voucher-type btn-box active"},Ge={class:"relative"},Fe={class:"flex flex-wrap overflow-y-auto max-h-[25rem]"},We=["onClick"],Ze={class:"!text-[1rem]"},qe={key:0},Je={class:"mt-24px flex items-center"},Ye={key:1,class:"flex flex-col items-center justify-center w-full h-full mt-20rem"},$e=S(o({__name:"index",setup:function(e){var t=R(),n=z().forceLtd,i=a(t),o=i.product,d=i.voucherLoading,b=t.changeTypeTabEvent,w=t.changeVoucherTypeEvent,T=t.changeVoucherEvent,C=t.getVoucherCycleDescribe,j=t.useChangeVoucher;return function(e,t){var i,a=I,D=k("scroll-shadow"),A=k("bt-loading");return c(),r("section",Ee,[null!==(i=p(o))&&void 0!==i&&i.voucherMode.isExist?(c(),r(f,{key:0},[u("span",Pe,[t[1]||(t[1]=M("产品类型",-1)),p(n)?(c(),r("span",Be,"(当前为企业版,无法使用其他产品抵扣券)")):h("",!0)]),s((c(),r("div",Ue,[s((c(),r("div",Qe,[p(n)?(c(),r("div",Re,l(t[2]||(t[2]=[u("span",{class:"icon-ltd"},null,-1),u("span",null,"企业版",-1)])))):(c(),r(f,{key:0},[(c(!0),r(f,null,m(p(o).voucherMode.proTypeList,function(e){return c(),r("div",{key:e.pid,class:v(["pay-voucher-type btn-box",{active:p(o).voucherMode.typeActive===e.pid,hidden:e.hidden}]),onClick:function(t){return p(w)(e)}},[u("span",{class:v({"icon-pro":e.pid===p(B).pro,"icon-ltd":e.pid===p(B).ltd})},null,2),u("span",null,y(e.name),1)],10,Ve)}),128)),(c(!0),r(f,null,m(p(o).voucherMode.typeList,function(e){return c(),r("div",{key:e.pid,class:v(["pay-voucher-type btn-box",{active:p(o).voucherMode.typeActive===e.pid,hidden:e.hidden}]),onClick:function(t){return p(w)(e)}},[u("span",null,y(e.name),1)],10,He)}),128))],64))])),[[D]])])),[[A,p(o).voucherMode.loading]]),t[4]||(t[4]=u("div",{class:"flex"},[u("span",{class:"pay-view-title"},"抵扣券列表"),u("div",{class:"mt-20px"})],-1)),u("div",Ge,[s((c(),r("div",Fe,[(c(!0),r(f,null,m(p(o).voucherMode.list,function(e){return c(),r("div",{key:e.id,class:v(["pay-voucher-item",{active:p(o).voucherMode.active===e.id}]),onClick:function(t){return p(T)(e)}},[u("span",null,[999===e.cycle&&"month"===e.unit?(c(),r(f,{key:0},[M("永久授权")],64)):(c(),r(f,{key:1},[M(y(p(C)(e.cycle,e.unit)),1)],64))]),u("span",Ze,"到期时间: "+y(e.timeout>0?p(U)(e.endtime,"yyyy-MM-dd"):"长期有效"),1)],10,We)}),128)),p(o).voucherMode.list.length?h("",!0):(c(),r("div",qe,"抵扣券列表为空"))])),[[D]])]),u("div",Je,[x(a,{type:"primary",disabled:p(d)||!p(o).voucherMode.list.length,onClick:p(j)},{default:g(function(){return[M(y(p(d)?"正在提交中,请稍候...":"立即使用"),1)]}),_:1},8,["disabled","onClick"]),t[3]||(t[3]=u("div",{class:"ml-12px text-[1.4rem] text-light"},"堡塔官网后台、参与活动购买的产品抵扣券,可用于开通授权或续费",-1))]),t[5]||(t[5]=u("div",{class:"relative hidden"},null,-1))],64)):(c(),r("div",Ye,[t[7]||(t[7]=u("div",{class:"pay-voucher-empty"},null,-1)),x(a,{plain:"",onClick:t[0]||(t[0]=function(e){return p(b)("ltd")})},{default:g(function(){return l(t[6]||(t[6]=[M("抵扣券列表为空,点击购买",-1)]))}),_:1})]))])}}}),[["__scopeId","data-v-ea008846"]]),Ke={key:0,class:"h-[90px] w-full flex"},Xe={class:"tab-menu !flex-1 py-[1.6rem]"},et={key:1,class:"advantage-list"},tt={key:0,class:"text-[1.4rem] text-[##ff9900]"},nt={key:1,class:"text-[1.4rem] text-[##ff9900]"},lt={key:2,class:"h-full p-2rem"},it={class:"w-full flex items-center flex-col justify-center mt-[1.6rem]"},ot={key:3,class:"h-full"},at={key:0,class:"h-30 w-full flex"},ct=["onClick"],rt={class:"text-dark"},ut={class:"text-medium"},st={id:"lib-pay-theme-tips",class:"lib-pay-line-item proS lib-pay-theme-tips"},dt=["innerHTML"],pt={id:"list-box",class:"list-box",style:{"max-width":"72rem"}},vt={id:"list",class:"flex",style:{transition:"all 500ms",left:"0",position:"relative"}},yt=["onClick"],ft={class:"pay-product-price"},mt={class:"line-through border-b pb-4px pt-4px border-dashed border-lighter text-lighter"},xt={class:"text-center pt-4px"},gt={key:0,class:"pay-product-recommend transform scale-80"},Mt={class:"dev-advantage"},ht={key:0},bt={class:"mb-[1.6rem]"},kt={class:"flex"},It=["onClick"],wt={key:0,class:"pay-auth-discount transform scale-80"},Tt={key:0,class:"text-danger mt-[4px]"},Ct={class:"flex !ml-0"},jt={class:"artificial_price"},Dt={key:0,class:"text-[#999] voucherEndtime"},At={key:1,class:"mt-[1.6rem] flex justify-center"},Lt={key:4,class:"tooTool-links absolute right-[3rem] bottom-6 cursor-pointer"},Nt={class:"flex items-center inline-block"},_t=o({__name:"index",setup:function(t){var i=R(),o=a(i),N=o.productInfo,_=o.product,S=o.enterprise,P=o.tabLoading,B=o.iSwitch,U=o.countDown,H=o.productPriceLoading,G=i.switchLeft,Z=i.switchRight,J=i.changeTypeTabEvent,Y=i.changeCycleTabEvent,$=i.changeNumsTabEvent,K=i.enterpriseEvent,X=i.changeCouponBoxEvent,ee=i.changeCouponEvent,te=w(null),ne=z(),le=ne.aliyunEcsLtd,ie=ne.payment,oe=ne.aliyunEcsFailed;T(function(){return _.value.couponMode.endTimeNum>0},function(e){e&&_.value.couponMode.activeCouponId&&(clearInterval(te.value),te.value=setInterval(function(){var e,t,n,l,i;_.value.couponMode.endTimeNum>0?(_.value.couponMode.endTimeNum--,e=_.value.couponMode.endTimeNum,t=Math.floor(e/86400),n=Math.floor(e/3600%24),l=Math.floor(e/60%60),i=Math.floor(e%60),U.value.d=t<10?"0".concat(t.toString()):t.toString(),U.value.h=n<10?"0".concat(n.toString()):n.toString(),U.value.m=l<10?"0".concat(l.toString()):l.toString(),U.value.s=i<10?"0".concat(i.toString()):i.toString()):clearInterval(te.value)},1e3))});var ae=function(){var t,l=(t=e().m(function t(){var n;return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Q({loading:"正在获取阿里云授权,请稍后...",request:V({client:2})});case 1:n=e.v,oe.value=!n.status,window.location.reload();case 2:return e.a(2)}},t)}),function(){var e=this,l=arguments;return new Promise(function(i,o){var a=t.apply(e,l);function c(e){n(a,i,o,c,r,"next",e)}function r(e){n(a,i,o,c,r,"throw",e)}c(void 0)})});return function(){return l.apply(this,arguments)}}();setTimeout(function(){},1e3);var ce=function(){window.open("https://marketnext.console.aliyun.com/bizlist","_blank","noopener,noreferrer")};return function(e,t){var n,i,o,a,w,T,z,Q,V=E,R=I,te=j,ne=L,re=D,ue=W,se=A,de=F,pe=O,ve=k("bt-loading");return c(),r("div",{class:v(["flex flex-[8] flex-col","theme-".concat(null===(n=p(N))||void 0===n||null===(n=n.activeTypeInfo)||void 0===n?void 0:n.type," ").concat(p(le)?"h-full":"")])},[p(le)?(c(),r("div",Ke,[u("div",Xe,[u("span",{class:v(["text-[1.8rem] font-bold text-black flex items-center my-2","product-ltd"])},l(t[10]||(t[10]=[u("i",{class:v("svgtofont-icon-ltd !text-[2.4rem] text-[#9e6700] font-normal mr-[0.8rem]")},null,-1),u("span",{class:"text-[#20a53a]"},"阿里云 & Linux面板企业版",-1)])))])])):h("",!0),p(le)?(c(),r("div",et,[t[13]||(t[13]=u("i",{class:"svgtofont-el-warning-filled !text-[20px] text-[##ff9900] font-normal mr-[0.8rem]"},null,-1)),"ltd"===p(ie).authType?(c(),r("span",tt,[t[11]||(t[11]=M(" 此版本为阿里云联合宝塔面板定制的Linux企业版,续费企业版请从",-1)),u("span",{class:"btlink cursor-pointer",onClick:ce},"阿里云控制台"),t[12]||(t[12]=M("操作",-1))])):(c(),r("span",nt,y(p(oe)?"检测到无法正常绑定宝塔账号":"检测到无法正常使用企业版")+" ,请扫码联系客服处理",1))])):h("",!0),"ltd"!==p(ie).authType&&p(le)?(c(),r("div",lt,[u("div",it,[x(V,{class:"w-[24rem] h-[24rem]",src:"customer/customer-qrcode.png"}),x(R,{type:"primary",size:"large",class:"mt-[2.4rem] w-[10rem]",onClick:ae},{default:g(function(){return l(t[14]||(t[14]=[M("重新认证",-1)]))}),_:1})])])):(c(),r("div",ot,[p(le)?h("",!0):(c(),r("div",at,[(c(!0),r(f,null,m(null===(i=p(N))||void 0===i?void 0:i.typeList,function(e){var t;return c(),r("div",{key:e.type,class:v(["tab-menu",{"tab-acitve":e.type===(null===(t=p(N))||void 0===t||null===(t=t.activeTypeInfo)||void 0===t?void 0:t.type),"tab-rec":e.recommend,"!flex-1":"coupon"===e.type,"!hidden":e.isHidden||("coupon"===e.type||"plugin"===e.type)&&!p(ie).bindUser}]),onClick:function(t){return p(J)(e)}},[u("span",{class:v(["text-[1.6rem] font-bold text-black flex items-center my-2","product-"+e.type])},[u("span",{class:v("icon-currency icon-"+e.type)},null,2),u("span",rt,y(e.title),1)],2),u("span",ut,y(e.describe),1)],10,ct)}),128))])),s((c(),r("div",{class:v(["flex-[1] pb-16px px-28px",{"pt-16px":p(le)}])},[s(u("div",st,[t[15]||(t[15]=u("img",{style:{"margin-right":"10px"},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAuMDAwMDAwIiBoZWlnaHQ9IjIyLjAwMDAwMCIgdmlld0JveD0iMCAwIDIwIDIyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KCTxkZXNjPgoJCQlDcmVhdGVkIHdpdGggUGl4c28uCgk8L2Rlc2M+Cgk8cGF0aCBpZD0icGF0aCIgZD0iTTEzLjM0MDggNS4zNDIxOUMxMy43NDk1IDYuMjkxMzUgMTMuODEwOSA3Ljg1OTg5IDEyLjk2NDkgOC42MTQwMUMxMS41OTE0\t\t\t\t\t\t\t\t\t\t\t\tIDMuMDc5ODYgOC4xNTc3MSAyIDguMTU3NzEgMkM4LjU2NjM1IDQuODEzMzIgNi43MjI5IDcuODky\t\t\t\t\t\t\t\t\t\t\t\tMDkgNC45MTIwNSAxMC4yMTI3QzQuODUwNjUgOS4xMDA2NSA0Ljc4NTQ2IDguMzQ4NTcgNC4xOTQ1\t\t\t\t\t\t\t\t\t\t\t\tOCA3LjIwMjMzQzQuMDY3OTkgOS4yNjM1NSAyLjU3MTc4IDEwLjkwMDUgMi4xMzQ0IDEyLjk2MTdD\t\t\t\t\t\t\t\t\t\t\t\tMS42MDQ5OCAxNS44MDkyIDIuNTcxNzggMTcuODA2MSA2LjI1MjkzIDIwQzUuMDk4MDggMTcuNDgy\t\t\t\t\t\t\t\t\t\t\t\tMyA1LjcyMzQ1IDE2LjA0MDQgNi42Mjg5MSAxNC43MzMzQzcuNTk1NyAxMy4yMjkxIDcuODQ4ODgg\t\t\t\t\t\t\t\t\t\t\t\tMTEuNzg3MyA3Ljg0ODg4IDExLjc4NzNDNy44NDg4OCAxMS43ODczIDguNjI3NjkgMTIuODAwOCA4\t\t\t\t\t\t\t\t\t\t\t\tLjMxODg1IDE0LjQwMzVDOS42MjcxNCAxMi44MzUgOS44ODAzMSAxMC4zMTEyIDkuNjk0MjcgOS4z\t\t\t\t\t\t\t\t\t\t\t\tOTYyN0MxMi42ODg3IDExLjU5MDIgMTQuMDI5NSAxNi40MzQ2IDEyLjI4MzkgMTkuOTM1NkMyMS41\t\t\t\t\t\t\t\t\t\t\t\tMTg0IDE0LjQwNTUgMTQuNTU3IDYuMTkwODMgMTMuMzQwOCA1LjM0MjE5WiIgZmlsbC1ydWxlPSJu\t\t\t\t\t\t\t\t\t\t\t\tb256ZXJvIiBmaWxsPSIjRUMwMjAyIi8+Cgk8ZGVmcy8+Cjwvc3ZnPgo="},null,-1)),u("span",{class:"tips-span",style:{color:"#d98704","padding-right":"10px"},innerHTML:null===(o=p(N))||void 0===o?void 0:o.activityList},null,8,dt)],512),[[d,"coupon"!=(null===(a=p(N))||void 0===a||null===(a=a.activeTypeInfo)||void 0===a?void 0:a.type)&&(null===(w=p(N))||void 0===w?void 0:w.activityList)&&!p(le)]]),"coupon"!==(null===(T=p(N))||void 0===T||null===(T=T.activeTypeInfo)||void 0===T?void 0:T.type)?(c(),r(f,{key:0},[u("span",{class:v(["pay-view-title !mt-12px h-[1.8rem]","".concat(p(le)?"text-center":"")])},"产品周期",2),s((c(),r("div",{class:v(["box","".concat(p(le)?"flex justify-center":"")])},[s(u("div",{class:"switch-cycle-left",onClick:t[0]||(t[0]=function(){return p(G)&&p(G).apply(void 0,arguments)})},l(t[16]||(t[16]=[u("i",{id:"switch-left",class:"svgtofont-el-arrow-left",style:{"font-size":"18px","font-weight":"900"}},null,-1)])),512),[[d,p(B).left]]),u("div",pt,[u("div",vt,[(c(!0),r(f,null,m(p(_).cycleMode.list,function(e,n){return c(),r("div",{key:n,class:v(["pay-product-cycle btn-box btn-box-2 relative",{active:e.cycle===p(_).cycleMode.activeCycleInfo.cycle}]),onClick:function(t){return p(Y)(e)}},[u("div",ft,[t[17]||(t[17]=u("span",null,"¥",-1)),u("span",null,y(e.price),1),u("span",null,"/"+y(e.title),1)]),u("div",mt,"原价:"+y(e.originalPrice)+"元",1),u("div",xt,"低至"+y(e.everyDay)+"元/天",1),e.recommend?(c(),r("div",gt,y(e.recommend),1)):h("",!0)],10,yt)}),128)),s(u("div",Mt,null,512),[[d,"dev"==(null===(z=p(N))||void 0===z||null===(z=z.activeTypeInfo)||void 0===z?void 0:z.type)]])])]),s(u("div",{class:"switch-cycle-right",onClick:t[1]||(t[1]=function(){return p(Z)&&p(Z).apply(void 0,arguments)})},l(t[18]||(t[18]=[u("i",{id:"switch-right",class:"svgtofont-el-arrow-right",style:{"font-size":"18px","font-weight":"900"}},null,-1)])),512),[[d,p(B).right&&p(_).cycleMode.list.length>4]])],2)),[[ve,p(H)]]),p(le)?(c(),r("div",At,[x(se,{placement:"bottom-start",effect:"light",trigger:"hover",width:"180","popper-class":"el-tooltip-white !p-[8px]"},{reference:g(function(){return l(t[28]||(t[28]=[u("span",{class:"btlink"},"了解更多",-1)]))}),default:g(function(){return[x(ue,{class:"bg-white"})]}),_:1})])):(c(),r("div",ht,[t[27]||(t[27]=u("span",{class:"pay-view-title h-[1.8rem]"},"授权数量",-1)),u("div",bt,[u("div",kt,[(c(!0),r(f,null,m(p(_).numsMode.list,function(e,t){return c(),r("div",{key:t,class:v([{active:e.count===p(_).numsMode.activeNumsInfo.count},"pay-auth-item btn-box"]),onClick:function(t){return p($)(e)}},[u("span",null,y(e.count)+"台",1),1!=e.discount&&p(ie).bindUser?(c(),r("span",wt,y(10*e.discount)+"折 ",1)):h("",!0)],10,It)}),128))]),p(_).numsMode.activeNumsInfo.count>1?(c(),r("p",Tt,"购买多台授权会默认减1台用于本机授权,剩余的授权台数以抵扣券的方式发放到当前账号,购买后请切换至抵扣券查看")):h("",!0)]),p(_).enterpriseMode.isHidden?h("",!0):(c(),r("div",{key:0,class:v(["artificial",{active:p(_).enterpriseMode.status}]),onClick:t[4]||(t[4]=C(function(e){return p(K)(!p(_).enterpriseMode.status)},["self"]))},[x(te,{modelValue:p(_).enterpriseMode.status,"onUpdate:modelValue":t[2]||(t[2]=function(e){return p(_).enterpriseMode.status=e}),onChange:t[3]||(t[3]=function(e){return p(K)(e)})},{default:g(function(){return[u("div",Ct,[t[22]||(t[22]=u("span",null,"人工运维托管",-1)),u("span",jt,"¥"+y(p(S)),1),u("div",null,[x(V,{type:"icons",src:"icon-artificial1.svg"}),t[19]||(t[19]=u("span",{class:"ml-[5px]"},"专家技术支持",-1))]),u("div",null,[x(V,{type:"icons",src:"icon-artificial2.svg"}),t[20]||(t[20]=u("span",{class:"ml-[5px]"},"5分钟内急速响应",-1))]),u("div",null,[x(V,{type:"icons",src:"icon-artificial3.svg"}),t[21]||(t[21]=u("span",{class:"ml-[5px]"},"问题解决率达99%",-1))])])]}),_:1},8,["modelValue"])],2)),s(u("div",{class:v("product-coupon-box cursor-pointer "+(p(_).couponMode.status?"active":"")),onClick:t[7]||(t[7]=C(function(e){return p(X)()},["self"]))},[x(te,{modelValue:p(_).couponMode.status,"onUpdate:modelValue":t[5]||(t[5]=function(e){return p(_).couponMode.status=e}),disabled:p(_).couponMode.disabled,onChange:p(X)},{default:g(function(){return[M("优惠券("+y(p(_).couponMode.count)+")",1)]}),_:1},8,["modelValue","disabled","onChange"]),x(re,{modelValue:p(_).couponMode.activeCouponId,"onUpdate:modelValue":t[6]||(t[6]=function(e){return p(_).couponMode.activeCouponId=e}),disabled:p(_).couponMode.disabled,placeholder:p(_).couponMode.count>0?"请选择优惠券":"无可用优惠券",class:"!w-[18rem] coupon-select",onChange:p(ee)},{default:g(function(){return[(c(!0),r(f,null,m(p(_).couponMode.list,function(e){return c(),b(ne,{key:e.id,disabled:p(_).numsMode.activeNumsInfo.price<parseInt(e.val1),label:e.newName,value:"".concat(e.id)},null,8,["disabled","label","value"])}),128))]}),_:1},8,["modelValue","disabled","placeholder","onChange"]),p(_).couponMode.endTimeNum>0?(c(),r("div",Dt,[u("span",null,y(p(U).d),1),t[23]||(t[23]=M("天",-1)),u("span",null,y(p(U).h),1),t[24]||(t[24]=M("时",-1)),u("span",null,y(p(U).m),1),t[25]||(t[25]=M("分",-1)),u("span",null,y(p(U).s),1),t[26]||(t[26]=M("秒 后失效 ",-1))])):h("",!0)],2),[[d,"dev"!==(null===(Q=p(N))||void 0===Q||null===(Q=Q.activeTypeInfo)||void 0===Q?void 0:Q.type)]]),x(ze)]))],64)):(c(),b($e,{key:1}))],2)),[[ve,p(P).status],[ve,p(P).title,"title"],[ve,"large","size"]])])),p(le)?h("",!0):(c(),r("div",Lt,[u("span",{onClick:t[8]||(t[8]=function(){return p(q)&&p(q).apply(void 0,arguments)})},l(t[29]||(t[29]=[u("i",null,null,-1),M("购买未生效",-1)]))),x(de),u("div",Nt,[u("span",null,[t[31]||(t[31]=u("i",null,null,-1)),x(pe,{class:"!text-[#AAAFB8]",href:"https://www.bt.cn/admin/product_orders"},{default:g(function(){return l(t[30]||(t[30]=[M("申请发票",-1)]))}),_:1})]),x(de)]),u("span",{onClick:t[9]||(t[9]=function(){return p(q)&&p(q).apply(void 0,arguments)})},l(t[32]||(t[32]=[u("i",null,null,-1),M("联系客服",-1)])))]))],2)}}}),Ot=S(_t,[["__scopeId","data-v-af29584e"]]);t("default",o({__name:"index",props:{compData:{default:function(){return{disablePro:!0,sourceId:"0",plugin:!0,pluginInfo:{title:"",describe:"",pid:0},isHomeBubble:{}}}}},emits:["close"],setup:function(e,t){var n=t.expose,l=t.emit,i=z().aliyunEcsLtd,o=G(),u=e,s=R(),d=a(s),y=d.productInfo,f=d.emits,m=s.onCancel,g=s.init,M=s.$reset,k=l;return f.value=k,N(function(){g(u.compData)}),_(function(){M(),sessionStorage.removeItem("PAY-VIEW-INFO-TIME"),"home"===H.currentRoute.value.name&&o.getRecommendInfo()}),n({onCancel:m}),function(e,t){var n;return c(),r("div",{class:v(["flex w-full h-full","theme-"+(null===(n=p(y))||void 0===n||null===(n=n.activeTypeInfo)||void 0===n?void 0:n.type)])},[p(i)?h("",!0):(c(),b(ie,{key:0})),x(Ot,{ref:"productSelectRef"},null,512)],2)}}}))}}})}();
Save File
Cancel