import{d as x,r as l,o as R,c,f as o,g as a,h as e,e as C,l as s,m,j as _,K as i,X as W,x as b,y as z,z as j}from"./index.2c7321ca.js";import q from"./account.8da6a05e.js";import K from"./bank.7ffb9b5e.js";import M from"./successaccount.0b7be88f.js";import P from"./myWallet.bd7de7f9.js";import{C as E}from"./api.7608f319.js";import{_ as Q}from"./_plugin-vue_export-helper.cdc0426e.js";import"./successicon.8014a43c.js";import"./RechargeDialog.241dfbd2.js";import"./WithdrawalDialog.243eb7c0.js";const U="/assets/b_wallet.5e98180e.png",A=f=>(z("data-v-3829ed94"),f=f(),j(),f),X={class:"section-main-container layout-padding"},G={class:"section-main-padding layout-padding-auto layout-padding-view"},H={class:"financial_container"},J={key:0,class:"before_container"},L={class:"financial_header"},Y={class:"img_box"},Z=["src"],$={class:"header_info"},ee=A(()=>e("p",{class:"title"},"\u4F01\u4E1A\u94B1\u5305\u670D\u52A1",-1)),te={class:"agreement"},ue=A(()=>e("span",{class:"txttips"},[_("\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F\uFF1A"),e("a",{href:"https://bcxinstatic.bktang.cn/thirdparty/payagreement.pdf",target:"_blank"},"\u652F\u4ED8\u670D\u52A1\u534F\u8BAE"),_("\u53CA"),e("a",{href:"https://bcxinstatic.bktang.cn/thirdparty/useragreement.pdf",target:"_blank"},"\u7528\u6237\u670D\u52A1\u534F\u8BAE")],-1)),se=A(()=>e("div",{class:"question_info"},[e("h3",null,"Q\uFF1A\u94B1\u5305\u670D\u52A1\u5982\u4F55\u5F00\u901A\uFF1F"),e("div",null,[e("p",null,[_("\u4F01\u4E1A\u70B9\u51FB\u4E0A\u65B9\u7684\u201C\u7ACB\u5373\u5F00\u901A\u201D\u6309\u94AE\uFF0C\u6839\u636E\u9875\u9762\u63D0\u793A\u5B8C\u6210\u5F00\u6237\u5F00\u901A\u64CD\u4F5C\u5373\u53EF\uFF1B\u8BE6\u60C5\u53EF\u53C2\u8003\u5E2E\u52A9\u6587\u6863 "),e("a",{href:"https://wiki.baibaodun.cn/page/display?document_id=1906",target:"_blank"},"\u4F01\u4E1A\u94B1\u5305\u5F00\u901A")])])],-1)),oe={key:1,class:"account_container"},ae={class:"headerbreadcrumb"},ne={class:"stepsTitle"},le={key:0,class:"stepsOne"},ce={key:1,class:"stepsTwo"},ie={key:2,class:"stepsThree"},_e={key:2,class:"myWallet_container"},re=x({name:"payAccount"}),de=x({...re,setup(f){const h=l(!1),t=l(0),n=l(0),g=l(),k=l(),v=l(!1),w=()=>{console.log(t),t.value=1},D=()=>{t.value=4},S=u=>{t.value=1,b(()=>{g.value.openDialog(u)}),v.value=u,v.value&&(n.value=3)},V=u=>{t.value=2,b(()=>{k.value.openDialog(u)}),v.value=u,v.value&&(n.value=3)},I=()=>{E().walletServiceOpeninfoApi().then(async u=>{console.log("res",u);const{isAuthorize:r,isCompleteOpen:d}=u.data;if(r==1&&d==1)t.value=4;else if(r==1){let p=(await E().getComWalletCurrentProcessApi({})).data.step;d==0&&p==1?(t.value=1,n.value=0):d==0&&p==2&&(t.value=2,n.value=1)}else t.value=0})},B=u=>{console.log("Step",u),b(()=>{t.value=u+1,n.value=u})};return R(()=>{I()}),(u,r)=>{const d=c("el-button"),y=c("el-checkbox"),p=c("el-breadcrumb-item"),T=c("el-breadcrumb"),F=c("el-step"),N=c("el-steps");return o(),a("div",X,[e("div",G,[e("main",H,[t.value==0?(o(),a("section",J,[e("div",L,[e("div",Y,[e("img",{src:C(U)},null,8,Z)]),e("div",$,[ee,e("div",null,[s(d,{type:"primary",size:"mini",onClick:w,disabled:!h.value},{default:m(()=>[_("\u7ACB\u5373\u5F00\u901A")]),_:1},8,["disabled"])]),e("div",te,[s(y,{class:"elcheckbox",modelValue:h.value,"onUpdate:modelValue":r[0]||(r[0]=O=>h.value=O)},null,8,["modelValue"]),ue])])]),se])):i("",!0),t.value>0&&t.value<4?(o(),a("section",oe,[e("header",ae,[s(T,{"separator-icon":C(W)},{default:m(()=>[s(p,null,{default:m(()=>[_("\u4F01\u4E1A\u94B1\u5305")]),_:1}),s(p,null,{default:m(()=>[_("\u5F00\u901A\u94B1\u5305")]),_:1})]),_:1},8,["separator-icon"])]),e("header",ne,[s(N,{active:n.value,"finish-status":"success"},{default:m(()=>[s(F,{title:"\u586B\u5199\u5F00\u6237\u8D44\u6599"}),s(F,{title:"\u7ED1\u5B9A\u94F6\u884C\u5361"}),s(F,{title:"\u5F00\u6237\u6210\u529F"})]),_:1},8,["active"])]),t.value==1?(o(),a("section",le,[s(q,{ref_key:"accountRef",ref:g,onStepInfo:B},null,512)])):i("",!0),t.value==2?(o(),a("section",ce,[s(K,{ref_key:"bankRef",ref:k,onStepInfo:B},null,512)])):i("",!0),t.value==3?(o(),a("section",ie,[s(M,{onWalletViewBtn:D})])):i("",!0)])):i("",!0),t.value==4?(o(),a("section",_e,[s(P,{onAccountStep:S,onBankStep:V})])):i("",!0)])])])}}});const Be=Q(de,[["__scopeId","data-v-3829ed94"]]);export{Be as default};
