!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 r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(O){f=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:T(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=s;var g={};function p(){}function h(){}function m(){}var v={};f(v,u,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(D([])));w&&w!==n&&o.call(w,u)&&(v=w);var b=m.prototype=p.prototype=Object.create(v);function A(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function z(t,r){function n(i,a,u,c){var l=d(t[i],t,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==e(s)&&o.call(s,"__await")?r.resolve(s.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(s).then((function(e){f.value=e,u(f)}),(function(e){return n("throw",e,u,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return a=a?a.then(o,o):o()}})}function T(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function L(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function x(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),g}},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 o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),g}},r}function r(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,c,"next",e)}function c(e){r(a,o,i,u,c,"throw",e)}u(void 0)}))}}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(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){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){l=!0,o=f}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{}).window,t=void 0===e?F:e;if(!t)return{x:f(0),y:f(0)};var r=f(t.scrollX),n=f(t.scrollY);return X(t,"scroll",(function(){r.value=t.scrollX,n.value=t.scrollY}),{capture:!1,passive:!0}),{x:r,y:n}}e("default",s({name:"payment-result",setup:function(){var e=d();g();var r=p({refund:e.query.refund,orders:{},goodsInfos:[],background:"transparent",color:"#fff",backIconColor:"white",timer:null,timerCount:0});p({resionList:[],refundStatus:!1,resion:null,refundSelect:{},checked:null});var o=function(){var o=n(t().mark((function n(){var o,i,a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.query.orderNo){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,z.post("/edu-app/open/userOrder/paymentStatus/"+e.query.orderNo);case 5:o=t.sent,i=o.data,r.orders=i||{},(a=i.goodsInfos||[]).forEach((function(e){var t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=t})),r.goodsInfos=a,t.next=15;break;case 13:t.prev=13,t.t0=t.catch(0);case 15:case"end":return t.stop()}}),n,null,[[0,13]])})));return function(){return o.apply(this,arguments)}}(),i=function(){var e=n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:["WAIT_PAY","PAYING"].includes(r.orders.status)&&r.timerCount<=10?r.timer=setTimeout(n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.timerCount+=1,e.next=3,o();case 3:i();case 4:case"end":return e.stop()}}),e)}))),3e3):clearTimeout(r.timer);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return h(n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o();case 2:return e.next=4,i();case 4:X(document,"scroll",(function(){k().y.value>52?(r.background="#fff",r.color="#323333",r.backIconColor="black"):(r.background="transparent",r.color="#fff",r.backIconColor="white")}));case 5:case"end":return e.stop()}}),e)})))),function(){return m("div",{class:D.paymentResult},[m("div",{class:D.paymentTitle},[v().isApp&&m(y,{border:!1,background:r.background,color:r.color},null),r.orders.id&&m(w,null,[m("div",{class:D.orderType},[m(T,{class:D.img,src:(t=r.orders.status,{WAIT_PAY:I,PAYING:I,PAID:O,TIMEOUT:S,FAIL:S,CLOSED:S,REFUNDING:C,REFUNDED:O}[t]||O)},null),m("div",{class:D.orderInfo},[m("span",null,[(e=r.orders.status,{WAIT_PAY:"支付中",PAYING:"支付中",PAID:"支付成功",TIMEOUT:"订单超时",FAIL:"支付失败",CLOSED:"订单关闭",REFUNDING:"退款中",REFUNDED:"已退款"}[e])]),"PAID"===r.orders.status||"REFUNDING"===r.orders.status?m("div",{class:D.orderPrice},[b("实付金额:¥ "),A(r.orders.paymentCashAmount)]):"","REFUNDED"===r.orders.status&&m("div",{class:D.orderPrice},[b("退款金额:¥ "),A(r.orders.paymentCashAmount)])])])])]),m(L,{inset:!0,class:[D.cellGroup,D.mTop]},{default:function(){return[m(x,null,{title:function(){return"付款时间"},value:function(){return m("span",null,[r.orders.payTime||"--"])}}),m(x,null,{title:function(){return"订单编号"},value:function(){return m("span",null,[r.orders.orderNo])}})]}}),m(L,{inset:!0,class:D.cellGroup},{default:function(){return[m("div",{class:D.buyDetail},[m("div",{class:D.buyDetailTitle},[m("i",null,null),b(" 购买详情")])]),r.goodsInfos.map((function(e){return m(x,null,{icon:function(){return m(T,{class:D.buyImg,src:e.goodsUrl},null)},title:function(){return m("div",{class:D.buyContent},[m("p",{class:D.goodsTitle},[e.goodsName]),m(P,{class:D.brandName},{default:function(){return[e.brandName]}})])},value:function(){return m("span",null,["VIP"===e.goodsType||"DEPOSIT"===e.goodsType?"6个月":"x 1"])}})}))]}})]);var e,t}}}))}}}))}();