import{_ as t}from"./uv-navbar.31c484ad.js";import{M as e,f as a,o as s,c as u,w as o,d as n,a as r,u as l,h as i,t as c,m as p,g as f,i as d}from"./index-3714412c.js";import{o as m,u as _,r as b}from"./useRouter.f44141c1.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.b515a02d.js";import"./uv-icon.c593f91d.js";const x=v({__name:"index",setup(v){const{getParams:x,goBack:y,push:k,pushToTab:g}=_(),j=e((()=>{const{type:t}=l(h);return void 0===Number(t)?"支付状态":0===Number(t)?"支付失败":1===Number(t)?"支付成功":void 0})),h=a({});function N(t){k({url:"/pages/orderList/orderList"},{data:{type:t},type:"reLaunch"})}function C(){g({url:"/pages/index/index"})}return m((t=>{h.value=t})),(e,a)=>{const m=b(f("uv-navbar"),t),_=d,v=n;return s(),u(v,{class:"pay-status"},{default:o((()=>[r(m,{fixed:!1,title:l(j),"left-arrow":"",onLeftClick:l(y)},null,8,["title","onLeftClick"]),r(v,{class:"status-main flex flex-column flex-ai__center"},{default:o((()=>[1===Number(h.value.type)?(s(),u(_,{key:0,class:"icon",src:"/assets/pay-success-81dd9d9e.png"})):(s(),u(_,{key:1,class:"icon",src:"/assets/pay-error-371ff458.png"})),r(v,{class:"text"},{default:o((()=>[i(c(l(j)),1)])),_:1})])),_:1}),r(v,{class:"button-group flex flex-ai__center flex-jc__center"},{default:o((()=>[1===Number(h.value.type)?(s(),u(v,{key:0,class:"animation-button button white-button",onClick:C},{default:o((()=>[i(" 继续逛逛 ")])),_:1})):p("",!0),1===Number(h.value.type)?(s(),u(v,{key:1,class:"animation-button button",onClick:a[0]||(a[0]=t=>N(1))},{default:o((()=>[i(" 查看订单 ")])),_:1})):(s(),u(v,{key:2,class:"animation-button button",onClick:a[1]||(a[1]=t=>N(0))},{default:o((()=>[i(" 重新支付 ")])),_:1}))])),_:1})])),_:1})}}},[["__scopeId","data-v-99b35227"]]);export{x as default};
