"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[44259],{64369:function(l,e,c){c.r(e),c.d(e,{default:function(){return o}});var A=c(7557),w=c.n(A),s=c(41498),h=c.n(s),j=c(79800),I=c.n(j),a=c(59301),n={flex_box_center:"flex_box_center___ktxmB",flex_space_between:"flex_space_between___aaSdK",flex_box_vertical_center:"flex_box_vertical_center___LQw1e",flex_box_center_end:"flex_box_center_end___BoZsk",flex_box_column:"flex_box_column___XEVdl",result:"result___rXuZj",bg:"bg___Q9OW2",content:"content___pSuIc",left:"left___hPTIJ",status:"status___ww7yd",subject:"subject___G_htZ",btns:"btns___uW3En",line:"line___ZRWLE",right:"right___us2X3",code:"code___tA886",title:"title___jlMrr"},k=c(53114),i=c(94171),t=c(61621),C=c(3113),U=c(49389),g=c(37712),o=function(){var l=(0,U.useSearchParams)(),e=I()(l,1)[0],c=(0,U.useParams)(),A=(0,a.useState)(!0),s=I()(A,2),j=s[0],o=s[1],D=((0,U.useLocation)(),(0,a.useState)({})),S=I()(D,2),Z=S[0],R=S[1];(0,a.useEffect)((function(){d()}),[c.orderNum]);var d=function(){var l=h()(w()().mark((function l(){var A;return w()().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return o(!0),l.next=3,(0,i.ZP)("/api/payments/".concat(null==c?void 0:c.orderNum,"/detail.json"),{method:"get",params:{userid:e.get("userid")}});case 3:null!=(A=l.sent)&&A.order&&(R(null==A?void 0:A.order),o(!1));case 5:case"end":return l.stop()}}),l)})));return function(){return l.apply(this,arguments)}}();return(0,g.jsxs)("section",{className:n.result,children:[(0,g.jsx)("aside",{className:n.bg}),(0,g.jsxs)("div",{className:n.content,children:[(0,g.jsxs)("div",{className:n.left,children:[(0,g.jsx)("img",{src:"data:image/png;base64,[encoded data, 29256 characters]",alt:""}),(0,g.jsxs)(t.Z,{loading:j,active:!0,paragraph:{rows:5},children:[(0,g.jsx)("div",{className:n.status,children:"支付成功"}),(0,g.jsxs)("div",{className:n.subject,children:[(0,g.jsxs)("div",{className:n.d1,children:["商品订单：",null==Z?void 0:Z.num]}),(0,g.jsxs)("div",{className:n.d2,children:["支付金额：",null==Z?void 0:Z.price," "]}),(0,g.jsxs)("div",{className:n.d3,children:["商品名称：",null==Z?void 0:Z.name]}),(0,g.jsxs)("div",{className:n.d3,children:["支付方式：",null==Z?void 0:Z.payment_method]})]}),(0,g.jsxs)("div",{className:n.btns,children:[(0,g.jsx)(C.ZP,{onClick:function(){return U.history.push("/order")},type:"primary",ghost:!0,children:"我购买的课程"}),(0,g.jsx)(C.ZP,{onClick:function(){return U.history.push("/paths/".concat(null==Z?void 0:Z.subject_id))},type:"primary",children:"开始学习"})]})]})]}),(0,g.jsx)("div",{className:n.line}),(0,g.jsxs)("div",{className:n.right,children:[(0,g.jsx)("div",{className:n.code,children:(0,g.jsx)("img",{width:180,height:180,src:k,alt:""})}),(0,g.jsx)("div",{className:n.title,children:"Hello，新同学，恭喜报课！"}),(0,g.jsx)("p",{children:"请扫码添加助教微信，获取课程资料和答疑服务。"})]})]})]})}}}]);