!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 s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(A){s=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),u=new L(n||[]);return i(a,"_invoke",{value:T(e,r,u)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(A){return{type:"throw",arg:A}}}r.wrap=d;var g={};function p(){}function h(){}function _(){}var m={};s(m,u,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==n&&o.call(v,u)&&(m=v);var b=_.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(t,r){function n(i,a,u,c){var l=f(t[i],t,a);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(d).then((function(e){s.value=e,u(s)}),(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 G()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(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=f(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 E(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,E(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=f(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 I(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function k(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),N(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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(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)}))}}System.register(["./index-legacy-82a21e4b.js","./index-legacy-d838e656.js","./api-legacy-123afea1.js","./index-legacy-c20f34c8.js","./index-legacy-1177b431.js","./index-legacy-cca49d64.js","./index-legacy-94f31488.js"],(function(e,r){"use strict";var o,i,a,u,c,l,s,d,f,g,p,h,_,m,y,v,b,w,x,T,E=document.createElement("style");return E.textContent="._paymentTitle_1g2i1_1{min-height:4.72rem;background:linear-gradient(180deg,#5becff 0%,#259cfe 100%);border-radius:0 0 .21333rem .21333rem}._paymentTitle_1g2i1_1 .van-nav-bar .van-icon,._paymentTitle_1g2i1_1 .van-nav-bar__title{color:#fff}._paymentTitle_1g2i1_1 ._orderType_1g2i1_10{padding-top:.93333rem;padding-bottom:2.4rem;display:flex;align-items:center;justify-content:center;color:#fff}._paymentTitle_1g2i1_1 ._orderType_1g2i1_10 ._img_1g2i1_18{width:1.38667rem;height:1.38667rem;margin-right:.37333rem}._paymentTitle_1g2i1_1 ._orderType_1g2i1_10 span{font-size:.58667rem;font-weight:500;line-height:.8rem}._paymentTitle_1g2i1_1 ._orderPrice_1g2i1_28{padding-top:.05333rem;font-size:.58667rem;text-align:center;font-size:.37333rem}._mTop_1g2i1_34{margin-top:-1.38667rem!important}._cellGroup_1g2i1_37{margin:.26667rem .34667rem}._cellGroup_1g2i1_37 ._brandName_1g2i1_40{line-height:.48rem;font-size:.32rem;padding:0 .16rem;background:linear-gradient(180deg,#FFF5E6 0%,#FFF6E7 100%);border-radius:.10667rem;border:.02667rem solid #FFE9D9;color:#be7332}._cellGroup_1g2i1_37 .van-cell{padding:.42667rem .45333rem;font-size:.42667rem;color:#333}._cellGroup_1g2i1_37 .van-cell__value{flex:0 auto}._cellGroup_1g2i1_37 ._buyDetail_1g2i1_57{display:flex;align-items:center;justify-content:space-between;padding:.48rem .48rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._cellGroup_1g2i1_37 ._buyDetail_1g2i1_57 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.37333rem;background:linear-gradient(180deg,#FFB790 0%,#FF8057 100%);border-radius:.05333rem}._cellGroup_1g2i1_37 ._buyDetail_1g2i1_57 ._buyDetailTitle_1g2i1_75{display:flex;align-items:center}._cellGroup_1g2i1_37 ._buyDetail_1g2i1_57 ._refundBtn_1g2i1_79{font-size:.42667rem;color:#777;line-height:.58667rem}._cellGroup_1g2i1_37 ._buyImg_1g2i1_84{width:1.54667rem;height:1.54667rem;overflow:hidden;border-radius:.13333rem;margin-right:.24rem}._container_1g2i1_91 .van-button{font-size:.48rem;font-weight:500}._dialogTitle_1g2i1_95{text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding:.53333rem 0 .4rem .66667rem}._dialogTitle_1g2i1_95 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._refundContent_1g2i1_111{padding:0 .53333rem .66667rem}._refundContent_1g2i1_111 ._tips_1g2i1_114{font-size:.4rem;color:#333;line-height:.56rem}._refundTitle_1g2i1_119{padding-top:.66667rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._refundTitle_1g2i1_119 span{color:#f44541}._phoneName_1g2i1_129{background:#f2f2f2;border-radius:.16rem}\n",document.head.appendChild(E),{setters:[function(e){o=e.d,i=e.U,a=e.q,u=e.x,c=e.y,l=e.a,s=e.S,d=e.F,f=e.A,g=e.P,p=e.C,h=e.E},function(e){_=e.u,m=e.a},function(e){y=e.g,v=e.h},function(e){b=e.I},function(e){w=e.C},function(e){x=e.C},function(e){T=e.T}],execute:function(){var E={paymentTitle:"_paymentTitle_1g2i1_1",orderType:"_orderType_1g2i1_10",img:"_img_1g2i1_18",orderPrice:"_orderPrice_1g2i1_28",mTop:"_mTop_1g2i1_34",cellGroup:"_cellGroup_1g2i1_37",brandName:"_brandName_1g2i1_40",buyDetail:"_buyDetail_1g2i1_57",buyDetailTitle:"_buyDetailTitle_1g2i1_75",refundBtn:"_refundBtn_1g2i1_79",buyImg:"_buyImg_1g2i1_84",container:"_container_1g2i1_91",dialogTitle:"_dialogTitle_1g2i1_95",refundContent:"_refundContent_1g2i1_111",tips:"_tips_1g2i1_114",refundTitle:"_refundTitle_1g2i1_119",phoneName:"_phoneName_1g2i1_129"},I=""+new URL("icon_refunding-47b787dd.svg",r.meta.url).href,N=""+new URL("icon_success-418d3aaa.svg",r.meta.url).href,L=""+new URL("icon_close-c5194700.svg",r.meta.url).href,k=""+new URL("icon_tradeing-f6dadddb.svg",r.meta.url).href;e("default",o({name:"collection-record-detail",setup:function(){var e=i();a();var r=u({refundAudit:"",refundOrderId:"",orders:{},goodsInfos:[],background:"transparent",color:"#fff",backIconColor:"white",timer:null,timerCount:0}),o=function(){var o=n(t().mark((function n(){var o,i,a,u,c,l,s;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,y(e.query.orderNo);case 5:if(200===(null==(i=t.sent)?void 0:i.code)){t.next=8;break}return t.abrupt("return");case 8:r.orders=i.data.order||{},(a=i.data.order.goodsInfos||[]).forEach((function(e){var t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=t})),r.goodsInfos=a,Array.isArray(null===(o=i.data)||void 0===o?void 0:o.refund)&&(l=i.data.refund,s=l.length-1,r.refundAudit=(null===(u=l[s])||void 0===u?void 0:u.refundAudit)||"",r.refundOrderId=(null===(c=l[s])||void 0===c?void 0:c.id)||"","ING"===r.refundAudit?r.orders.status="REFUNDING":"PASS"===r.refundAudit&&(r.orders.status="REFUNDED")),t.next=17;break;case 15:t.prev=15,t.t0=t.catch(0);case 17:case"end":return t.stop()}}),n,null,[[0,15]])})));return function(){return o.apply(this,arguments)}}(),G=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:G();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)}}();c(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,G();case 4:_(document,"scroll",(function(){m().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)}))));var A=function(){var e=n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(r.refundOrderId);case 2:return h("撤销退回成功"),e.next=5,o();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return function(){return l("div",{class:E.paymentResult},[l("div",{class:[E.paymentTitle]},[l(s,{background:"transparent"},null),r.orders.id&&l(d,null,[l("div",{class:E.orderType},[l(b,{class:E.img,src:(t=r.orders.status,{WAIT_PAY:k,PAYING:k,PAID:N,TIMEOUT:L,FAIL:L,CLOSED:L,REFUNDING:I,REFUNDED:N}[t]||N)},null),l("div",{class:E.orderInfo},[l("span",null,[(e=r.orders.status,{WAIT_PAY:"领取中",PAYING:"领取中",PAID:"领取成功",TIMEOUT:"订单超时",FAIL:"领取失败",CLOSED:"已关闭",REFUNDING:"退回申请中",REFUNDED:"已退回"}[e])]),"PAID"===r.orders.status?l("div",{class:E.orderPrice},[f("实付金额:¥ "),g(r.orders.paymentCashAmount)]):"",["REFUNDING","REFUNDED"].includes(r.orders.status)&&l("div",{class:E.orderPrice},[f("退回金额:¥ "),g(r.orders.paymentCashAmount)])])])])]),l(w,{inset:!0,class:[E.cellGroup,E.mTop]},{default:function(){return[l(x,null,{title:function(){return"付款时间"},value:function(){return l("span",null,[r.orders.payTime||"--"])}}),l(x,null,{title:function(){return"订单编号"},value:function(){return l("span",null,[r.orders.orderNo])}})]}}),l(w,{inset:!0,class:E.cellGroup},{default:function(){return[l("div",{class:E.buyDetail},[l("div",{class:E.buyDetailTitle},[l("i",null,null),f(" 购买详情")])]),r.goodsInfos.map((function(e){return l(x,null,{icon:function(){return l(b,{class:E.buyImg,src:e.goodsUrl},null)},title:function(){return l("div",{class:E.buyContent},[l("p",{class:E.goodsTitle},[e.goodsName]),l(T,{class:E.brandName},{default:function(){return["VIP"===r.orders.orderType?"12个月":e.brandName]}})])},value:function(){return l("span",null,[f("x "),e.goodsNum])}})}))]}}),"ING"===r.refundAudit&&l(p,{class:E.cancelBtn,block:!0,round:!0,type:"primary",onClick:function(){return A()}},{default:function(){return[f("撤销退回")]}})]);var e,t}}}))}}}))}();