← Back
Editing: pay-bus-ssl-legacy2.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:k(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var y="suspendedStart",v="suspendedYield",d="executing",m="completed",g={};function w(){}function x(){}function b(){}var j={};f(j,l,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(N([])));E&&E!==o&&a.call(E,l)&&(j=E);var S=b.prototype=w.prototype=Object.create(j);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function I(e,n){function r(o,i,c,l){var u=h(e[o],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,l)}),(function(t){r("throw",t,c,l)})):n.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,l)}))}l(u.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function k(t,e,r){var o=y;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=h(t,e,r);if("normal"===u.type){if(o=r.done?m:v,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return x.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:x,configurable:!0}),x.displayName=f(b,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},_(I.prototype),f(I.prototype,u,(function(){return this})),r.AsyncIterator=I,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new I(p(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(S),f(S,s,"Generator"),f(S,l,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=N,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,l,"next",t)}function l(t){n(i,o,a,c,l,"throw",t)}c(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy413.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./useStore-legacy12.js?v=VERSION_NUMBER","./usePayController-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./useStore-legacy11.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./useController-legacy13.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(t,n){"use strict";var o,a,i,c,l,u,s,f,p,h,y,v,d,m,g,w,x,b,j,L,E,S,_,I,k,O,P,T,C,N,A,G;return{setters:[function(t){o=t.R,a=t.p,i=t.K,c=t.n,l=t.L,u=t.e},function(t){s=t._},function(t){f=t.c,p=t.s,h=t.r,y=t.g,v=t.p,d=t.a4,m=t.q,g=t.v,w=t.e,x=t.A,b=t.y,j=t.F,L=t.a_,E=t.J,S=t.x,_=t.z,I=t.aW},function(t){k=t.u},function(t){O=t.t,P=t.b,T=t.c,C=t.d,N=t.m},function(t){A=t.applyCertOrderRenw},function(t){G=t.u},null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var F={class:"px-[3rem] py-[2rem] pb-[24px]"},M={class:"ssl-pay-type"},Y=["onClick"],D={class:"p-[24px] flex flex-col justify-center items-center"},W={class:"mt-[16px] text-[1.4rem] font-bold flex items-center"},q={class:"text-[2.5rem] ml-[8px] text-orange"},R={class:"ssl-pay-info"},V={class:"ssl-pay-info-line"},H={class:"ssl-pay-info-line"},z={class:"mt-[16px] flex items-center justify-center"},J=f({__name:"pay-bus-ssl",props:{compData:{default:{oid:0,wxcode:"",alicode:"",qq:"",orderInfo:{},productInfo:{}}}},emits:["close"],setup:function(t,u){var f=u.emit,J=k(),K=J.productInfo,B=J.orderInfo,Q=p(G()).sslIsRefresh,U=t,X=f,Z=[{name:"微信支付",label:"wxcode"},{name:"支付宝支付",label:"alicode"}],$=h(!1),tt=y((function(){return U.compData[O.value]})),et=function(){var t;t={productInfo:K.value,orderInfo:B.value},c({title:"支付成功",area:[60,60],component:function(){return l((function(){return n.import("./pay-bus-success-legacy2.js?v=VERSION_NUMBER")}),void 0,n.meta.url)},compData:t}),Q.value=!0,X("close")},nt=function(){var t=r(e().mark((function t(n){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&sessionStorage.setItem("PAY-SSL-VIEW-TIME","".concat(n)),!(r=sessionStorage.getItem("PAY-SSL-VIEW-TIME"))){t.next=8;break}if(!(parseInt("".concat((new Date).getTime()/1e3-Number(r)),10)>600&&$.value)){t.next=7;break}return sessionStorage.removeItem("PAY-SSL-VIEW-TIME"),t.abrupt("return",a({title:"支付超时",icon:"warning",content:"由于您长时间未操作,支付超时,请刷新网页重新购买!",onConfirm:function(){close(),window.location.reload()},onCancel:function(){close(),window.location.reload()}}));case 7:$.value||sessionStorage.removeItem("PAY-SSL-VIEW-TIME");case 8:return t.next=10,N();case 10:if(!P.value){t.next=15;break}T.value&&clearTimeout(T.value),T.value=setTimeout((function(){nt()}),3e3),t.next=21;break;case 15:if(!K.value.isRenew){t.next=20;break}return t.next=18,i({request:A({oid:K.value.oid}),message:!0});case 18:t.next=21;break;case 20:et();case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return v(r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:$.value=!0,nt((new Date).getTime()/1e3);case 2:case"end":return t.stop()}}),t)})))),d((function(){P.value=!1,$.value=!1,clearTimeout(T.value)})),function(t,e){var n,r,a,i,c=I,l=s;return m(),g("div",F,[w(c,{type:"error",closable:!1},{title:x((function(){return e[0]||(e[0]=[b("span",{class:"text-[1.2rem]"},[b("i",{calss:"svgtofont-el-warning-outline text-[1.2rem]"}),b("span",null," 禁止含有诈骗、赌博、色情、木马、病毒等违法违规业务信息的站点申请SSL证书,如有违反,撤销申请,停用账号。 ")],-1)])})),_:1}),b("div",M,[(m(),g(j,null,L(Z,(function(t){return b("span",{key:t.name,class:E("ssl-pay-tab-item ".concat(t.label===S(O)?"isActive":"")),onClick:function(e){return S(C)(t.label,!0)}},[b("span",{class:E("pay-icon ".concat(t.label))},null,2),b("span",null,_(t.name),1)],10,Y)})),64))]),b("div",D,[w(l,{value:S(tt),size:160},null,8,["value"]),b("span",W,[e[1]||(e[1]=b("span",null,"总计",-1)),b("span",q,_(null===(n=S(K))||void 0===n?void 0:n.totalPrice.toFixed(2))+" 元 ",1)])]),b("div",R,[b("div",V,[e[2]||(e[2]=b("span",{class:"w-[5rem]"},"商品名称",-1)),b("span",null,_("".concat((null===(r=S(K))||void 0===r?void 0:r.productName)+(null===(a=S(K))||void 0===a?void 0:a.years),"年").concat(null!==(i=S(K))&&void 0!==i&&i.install?"(包含部署服务)":"")),1)]),b("div",H,[e[3]||(e[3]=b("span",{class:"w-[5rem]"},"下单时间",-1)),b("span",null,_(S(o)(S(B).addtime,"yyyy-MM-dd HH:mm:ss")),1)])]),b("div",z,[e[4]||(e[4]=b("span",{class:"scan-icon"},null,-1)),b("span",null,_("wxcode"===S(O)?"微信扫一扫支付":"支付扫一扫支付"),1)])])}}});t("default",u(J,[["__scopeId","data-v-20d1c6a0"]]))}}}))}();
Save File
Cancel