import{r as a,$ as s,o as r,c as e,w as l,i as t,a as o,b as u,x as c,v as n,y as m,n as p,L as i,p as d,d as f,e as y}from"./index-9ce39810.js";import{d as _}from"./amount.d0f00b78.js";import{o as g,a as h}from"./uni-app.es.01965594.js";import{d as b}from"./apiManager.70733ad9.js";import{m as k}from"./theme.699ad95a.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";import"./http.893100ba.js";const U=v({__name:"paySuccess",setup(v){const U=a({amount:"0",doubleToThousands:_(),primaryColor:"",advertUrl:""});function C(){i()}g((a=>{U.amount=a.amount,U.primaryColor=k.changeColors(),U.member=a.member,b().then((({bizData:a})=>{a&&(U.advertUrl=a.imgUrl||"",U.linkUrl=a.linkUrl||"")})).catch((a=>{console.log(a)}))}));const j=()=>{U.linkUrl&&d({url:"/pages/H5/H5?url="+U.linkUrl})};return h((()=>{console.log("页面卸载"),s("onRechargeSuccess",!0)})),(a,s)=>{const i=f,d=y,g=t;return r(),e(g,{class:"pay-result"},{default:l((()=>[o(i,{src:"/cashier/assets/success-a14f02c6.svg",class:"pay-result-icon"}),o(d,{class:"pay-result-err"},{default:l((()=>[u("支付成功")])),_:1}),o(d,{style:{"margin-top":"30rpx",color:"#00000059"}},{default:l((()=>[u(c(U.member?"会员支付":"普通支付"),1)])),_:1}),o(g,{class:"pay-result-amount"},{default:l((()=>[o(d,{class:"pay-result-amount-text"},{default:l((()=>[u("金额："),o(d,{style:{color:"#FC0100"}},{default:l((()=>[u("￥")])),_:1})])),_:1}),o(d,{class:"pay-result-amount-value"},{default:l((()=>[u(c(n(_)(U.amount)),1)])),_:1})])),_:1}),U.advertUrl?(r(),e(g,{key:0,class:"ad-wrapper",onClick:j},{default:l((()=>[o(i,{mode:"aspectFill",src:U.advertUrl},null,8,["src"])])),_:1})):m("",!0),o(g,{class:"back-btn",style:p({backgroundColor:U.primaryColor||"#F1F1F1"}),onClick:C},{default:l((()=>[u("完 成")])),_:1},8,["style"])])),_:1})}}},[["__scopeId","data-v-0769f26d"]]);export{U as default};
