Files
hnxdcount-uniapp/unpackage/dist/build/web/assets/pages-mine-withdraw.d06CPeNJ.js
PC-202306242200\Administrator dac42e3b0c first commit
2026-03-28 23:09:02 +08:00

2 lines
13 KiB
JavaScript

import{d as e,m as t,a as o,W as a,K as n,c as i,X as l,o as r,g as s,w as d,n as u,h as p,v as c,F as m,x as h,i as g,s as f,t as y,j as b,z as S,Y as _,Z as x,p as C,q as w,r as v,_ as A,l as z,E as k,$ as T,u as I,y as N,k as B,J as U,Q as E,R as V,A as M,G as R}from"./index-BycOfjPK.js";import{_ as q}from"./u-tag.Ct2nTF77.js";import{_ as F,r as H,c as J,a as G,s as K,u as Q}from"./api.Cc9YjI0f.js";import{_ as L}from"./u-input.BXN8t6Qx.js";import{_ as O}from"./u-code.DqKoqWLQ.js";import{_ as X}from"./u-icon.Bn8ZYdhI.js";const P=F({name:"u-loading-icon",mixins:[t,o,{props:{show:{type:Boolean,default:()=>e.loadingIcon.show},color:{type:String,default:()=>e.loadingIcon.color},textColor:{type:String,default:()=>e.loadingIcon.textColor},vertical:{type:Boolean,default:()=>e.loadingIcon.vertical},mode:{type:String,default:()=>e.loadingIcon.mode},size:{type:[String,Number],default:()=>e.loadingIcon.size},textSize:{type:[String,Number],default:()=>e.loadingIcon.textSize},text:{type:[String,Number],default:()=>e.loadingIcon.text},timingFunction:{type:String,default:()=>e.loadingIcon.timingFunction},duration:{type:[String,Number],default:()=>e.loadingIcon.duration},inactiveColor:{type:String,default:()=>e.loadingIcon.inactiveColor}}}],data:()=>({array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}),computed:{otherBorderColor(){const e=a(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:e:"transparent"}},watch:{show(e){}},mounted(){this.init()},methods:{addUnit:n,addStyle:i,init(){setTimeout((()=>{}),20)},addEventListenerToWebview(){const e=l(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))}}},[["render",function(e,t,o,a,n,i){const l=b,_=S;return e.show?(r(),s(l,{key:0,class:u(["u-loading-icon",[e.vertical&&"u-loading-icon--vertical"]]),style:p([i.addStyle(e.customStyle)])},{default:d((()=>[n.webviewHide?g("",!0):(r(),s(l,{key:0,class:u(["u-loading-icon__spinner",[`u-loading-icon__spinner--${e.mode}`]]),ref:"ani",style:p({color:e.color,width:i.addUnit(e.size),height:i.addUnit(e.size),borderTopColor:e.color,borderBottomColor:i.otherBorderColor,borderLeftColor:i.otherBorderColor,borderRightColor:i.otherBorderColor,"animation-duration":`${e.duration}ms`,"animation-timing-function":"semicircle"===e.mode||"circle"===e.mode?e.timingFunction:""})},{default:d((()=>["spinner"===e.mode?(r(!0),c(m,{key:0},h(n.array12,((e,t)=>(r(),s(l,{key:t,class:"u-loading-icon__dot"})))),128)):g("",!0)])),_:1},8,["class","style"])),e.text?(r(),s(_,{key:1,class:"u-loading-icon__text",style:p({fontSize:i.addUnit(e.textSize),color:e.textColor})},{default:d((()=>[f(y(e.text),1)])),_:1},8,["style"])):g("",!0)])),_:1},8,["style","class"])):g("",!0)}],["__scopeId","data-v-40fecea9"]]);const W=F({name:"u-button",mixins:[t,o,{props:{hairline:{type:Boolean,default:()=>e.button.hairline},type:{type:String,default:()=>e.button.type},size:{type:String,default:()=>e.button.size},shape:{type:String,default:()=>e.button.shape},plain:{type:Boolean,default:()=>e.button.plain},disabled:{type:Boolean,default:()=>e.button.disabled},loading:{type:Boolean,default:()=>e.button.loading},loadingText:{type:[String,Number],default:()=>e.button.loadingText},loadingMode:{type:String,default:()=>e.button.loadingMode},loadingSize:{type:[String,Number],default:()=>e.button.loadingSize},openType:{type:String,default:()=>e.button.openType},formType:{type:String,default:()=>e.button.formType},appParameter:{type:String,default:()=>e.button.appParameter},hoverStopPropagation:{type:Boolean,default:()=>e.button.hoverStopPropagation},lang:{type:String,default:()=>e.button.lang},sessionFrom:{type:String,default:()=>e.button.sessionFrom},sendMessageTitle:{type:String,default:()=>e.button.sendMessageTitle},sendMessagePath:{type:String,default:()=>e.button.sendMessagePath},sendMessageImg:{type:String,default:()=>e.button.sendMessageImg},showMessageCard:{type:Boolean,default:()=>e.button.showMessageCard},dataName:{type:String,default:()=>e.button.dataName},throttleTime:{type:[String,Number],default:()=>e.button.throttleTime},hoverStartTime:{type:[String,Number],default:()=>e.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:()=>e.button.hoverStayTime},text:{type:[String,Number],default:()=>e.button.text},icon:{type:String,default:()=>e.button.icon},iconColor:{type:String,default:()=>e.button.icon},color:{type:String,default:()=>e.button.color}}}],data:()=>({}),computed:{bemClass(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor(){return this.plain?this.color?this.color:_[`u-${this.type}`]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor(){let e={};return this.color&&(e.color=this.plain?this.color:"white",this.plain||(e["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(e.borderTopWidth=0,e.borderRightWidth=0,e.borderBottomWidth=0,e.borderLeftWidth=0,this.plain||(e.backgroundImage=this.color)):(e.borderColor=this.color,e.borderWidth="1px",e.borderStyle="solid")),e},nvueTextStyle(){let e={};return"info"===this.type&&(e.color="#323233"),this.color&&(e.color=this.plain?this.color:"white"),e.fontSize=this.textSize+"px",e},textSize(){let e=14,{size:t}=this;return"large"===t&&(e=16),"normal"===t&&(e=14),"small"===t&&(e=12),"mini"===t&&(e=10),e}},emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp","agreeprivacyauthorization"],methods:{addStyle:i,clickHandler(){this.disabled||this.loading||x((()=>{this.$emit("click")}),this.throttleTime)},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)},agreeprivacyauthorization(e){this.$emit("agreeprivacyauthorization",e)}}},[["render",function(e,t,o,a,n,i){const l=H(C("u-loading-icon"),P),h=S,b=H(C("u-icon"),X),_=A;return r(),s(_,{"hover-start-time":Number(e.hoverStartTime),"hover-stay-time":Number(e.hoverStayTime),"form-type":e.formType,"open-type":e.openType,"app-parameter":e.appParameter,"hover-stop-propagation":e.hoverStopPropagation,"send-message-title":e.sendMessageTitle,"send-message-path":e.sendMessagePath,lang:e.lang,"data-name":e.dataName,"session-from":e.sessionFrom,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,onGetphonenumber:i.getphonenumber,onGetuserinfo:i.getuserinfo,onError:i.error,onOpensetting:i.opensetting,onLaunchapp:i.launchapp,onAgreeprivacyauthorization:i.agreeprivacyauthorization,"hover-class":e.disabled||e.loading?"":"u-button--active",class:u(["u-button u-reset-button",i.bemClass]),style:p([i.baseColor,i.addStyle(e.customStyle)]),onClick:i.clickHandler},{default:d((()=>[e.loading?(r(),c(m,{key:0},[w(l,{mode:e.loadingMode,size:1.15*e.loadingSize,color:i.loadingColor},null,8,["mode","size","color"]),w(h,{class:"u-button__loading-text",style:p([{fontSize:i.textSize+"px"}])},{default:d((()=>[f(y(e.loadingText||e.text),1)])),_:1},8,["style"])],64)):(r(),c(m,{key:1},[e.icon?(r(),s(b,{key:0,name:e.icon,color:i.iconColorCom,size:1.35*i.textSize,customStyle:{marginRight:"2px"}},null,8,["name","color","size"])):g("",!0),v(e.$slots,"default",{},(()=>[w(h,{class:"u-button__text",style:p([{fontSize:i.textSize+"px"}])},{default:d((()=>[f(y(e.text),1)])),_:1},8,["style"])]),!0)],64))])),_:3},8,["hover-start-time","hover-stay-time","form-type","open-type","app-parameter","hover-stop-propagation","send-message-title","send-message-path","lang","data-name","session-from","send-message-img","show-message-card","onGetphonenumber","onGetuserinfo","onError","onOpensetting","onLaunchapp","onAgreeprivacyauthorization","hover-class","style","onClick","class"])}],["__scopeId","data-v-f850317b"]]),j=F({__name:"withdraw",setup(e){z();let t=z({}),o=z(""),a=z(null),n=k({amount:"",smsCode:"",accountId:""}),i=z();J((async()=>{let e=await G();t.value=e,T("bank",(e=>{i.value=e,n.accountId=e.id,console.log(e)}))}));let l=()=>{B({url:"/pages/mine/bankCard?type=xz"})},u=e=>{o.value=e},p=()=>{if(console.log(123456),!t.value.phone)return U({title:"请输入手机号",icon:"none"});a.value.canGetCode?(E({title:"正在获取验证码"}),K({phone:t.value.phone}).then((e=>{V(),uni.$u.toast("验证码已发送"),a.value.start()}))):uni.$u.toast("倒计时结束后再发送")},c=async()=>Number(t.value.balance)<Number(n.amount)?U({title:"可提现金额不足",icon:"none"}):n.accountId?n.amount?n.smsCode?(await Q(n),void M({title:"提示",content:"提交成功",showCancel:!1,success(){R()}})):U({title:"请输入验证码",icon:"none"}):U({title:"请输入提现金额",icon:"none"}):U({title:"请先选择提现银行卡",icon:"none"});return(e,m)=>{const h=b,S=N,_=H(C("u-tag"),q),x=H(C("up-input"),L),v=H(C("up-code"),O),A=H(C("up-button"),W);return r(),s(h,{class:"withdraw p30"},{default:d((()=>[w(h,{class:"withdraw_k",onClick:I(l)},{default:d((()=>[w(h,{class:"withdraw_k_tit"},{default:d((()=>[f("提现到")])),_:1}),w(h,{class:"withdraw_k_input"},{default:d((()=>[f("请选择银行卡")])),_:1}),w(S,{class:"withdraw_k_img",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAAAwtJREFUaEPtlj9oE1Ecx7+/d2f+OBhFqaLFQTqUGluSS7I42EEUHAQXqRVRJ+sf6mgRRRF3HXS3XVQEO1cHu0UrZ0q1mEXo4KAIJiDYXsz7PfMgLTVN6rtrWijcze/3u8993+f93hE24UObkBkh9EbtWph0mPQqCYR6hHqEemyUA2HS65e0nmTKpL3xyHMcZ4tt23Fm3srM867r/gLAJi9pskbkcrkdUsqIZVmVqampkp9efqC7lVJHARwD8MbzvNHZ2dmfQaCTyeTuaDR6E0A3gM9SyrvT09Nl017G0Ol0+gIRjQDYD6DIzC+llE9mZma+mr5Mr3Mc5xCA0wAGARzQ0Mw8JITIu677x6SXMbTjOLeFEPeUUiAiSCm/KaVuSSknDMFFNpvtkFJeA3CViLZblqX7fFdKXfc877XpzhlDp1Kpk0Q0TET9QgiLmaVS6geAR8z8+H/bm81m9zDzfQDHAXTqD9cBKKXyRHTOdd0vJinrNcbQ2sNIJNIPQINnhBAR3UBK+RHA82q1Otoq8Uwmk2TmASI6T0Sduo6Z9aSYUEqNJRKJ8cnJyYW2Q+uGXV1d0UQiMVRzegBADkDNGLGaKiuUqCf8G8AnZn5QKBSemcIurjNOerGgp6cnEovFBolIw2c1dStVmimhEyai91LKG+Vy+e3c3JxxwkGgl4Z/b29vh23bJ4joEoB0oyqVSmXMsqxdtm2fAnCxmRKlUmk8CLAvpxu3UCcej8cvN1OldrPdUUodFEKcBbCzQYmHhULhqV8llq/3rcfy4laq1A6rvnT0Qd1GRNQOJdoB3UqVlBAiuvgCPdKYWV/1r/SUWIsS7YD+Z3ebqdJuJdoOrRvWwc8AuEJEehzqi+OdlHIk6JRo5f2anK43XVIllUrttSzrCDMfBlBVSn2IxWIv8vn8/FoOXmNtO6BX8PT19e3zPG+hWCzqA2n0j+zno9YFGoBVhw36v73qN6wXtJ/gfK8NoX1HFrAgTDpgcL7LwqR9RxawIEw6YHC+y8KkfUcWsCBMOmBwvss2ZdJ/AWOUfD1ykjrvAAAAAElFTkSuQmCC"})])),_:1},8,["onClick"]),I(i)?(r(),s(h,{key:0},{default:d((()=>[w(h,{style:{"background-color":"#ffffff","border-radius":"12rpx",padding:"20rpx","margin-bottom":"20rpx"}},{default:d((()=>[w(h,{class:"u-flex u-flex-y-center",style:{"font-size":"28rpx"}},{default:d((()=>[w(h,null,{default:d((()=>[w(_,{text:1==I(i).type?"个人":"企业",size:"mini",type:1==I(i).type?"success":"error",plain:"",plainFill:""},null,8,["text","type"])])),_:1}),w(h,{style:{width:"30rpx"}}),w(h,{style:{"font-size":"26rpx"}},{default:d((()=>[f(y(I(i).name),1)])),_:1}),w(h,{style:{width:"30rpx"}}),w(h,{style:{"font-size":"26rpx"}},{default:d((()=>[f(y(I(i).phone||""),1)])),_:1})])),_:1}),w(h,{style:{height:"20rpx"}}),w(h,{style:{color:"#232323"}},{default:d((()=>[2==I(i).type?(r(),s(h,{key:0,style:{"font-size":"28rpx"}},{default:d((()=>[f("开户行:"+y(I(i).subbranchName),1)])),_:1})):g("",!0),w(h,{style:{height:"10rpx"}}),w(h,{style:{"font-size":"28rpx"}},{default:d((()=>[f("银行卡号:"+y(I(i).bankCard),1)])),_:1}),w(h,{style:{height:"10rpx"}})])),_:1})])),_:1})])),_:1})):g("",!0),w(h,{class:"withdraw_mon"},{default:d((()=>[w(h,{class:"withdraw_mon_tit"},{default:d((()=>[f("提现金额")])),_:1}),w(h,{class:"withdraw_mon_input"},{default:d((()=>[w(h,{class:"withdraw_mon_input_fu"},{default:d((()=>[f("¥")])),_:1}),w(h,null,{default:d((()=>[w(x,{fontSize:"36rpx",placeholder:"请输入金额",border:!1,modelValue:I(n).amount,"onUpdate:modelValue":m[0]||(m[0]=e=>I(n).amount=e)},null,8,["modelValue"])])),_:1}),w(h,{class:"withdraw_mon_input_note",onClick:m[1]||(m[1]=e=>I(n).amount=I(t).balance)},{default:d((()=>[f("全部提现")])),_:1})])),_:1}),w(h,null,{default:d((()=>[w(x,{border:!1,disabled:"",modelValue:I(t).phone,"onUpdate:modelValue":m[2]||(m[2]=e=>I(t).phone=e)},null,8,["modelValue"])])),_:1}),w(h,{class:"withdraw_mon_input"},{default:d((()=>[w(x,{placeholder:"请输入验证码",border:!1,modelValue:I(n).smsCode,"onUpdate:modelValue":m[3]||(m[3]=e=>I(n).smsCode=e)},null,8,["modelValue"]),w(h,{style:{width:"250rpx"}},{default:d((()=>[w(v,{ref_key:"uCode",ref:a,onChange:I(u),"keep-running":"","start-text":"点我获取验证码"},null,8,["onChange"]),w(A,{onClick:I(p),color:"#4874e5"},{default:d((()=>[f(y(I(o)),1)])),_:1},8,["onClick"])])),_:1})])),_:1}),w(h,{class:"withdraw_mon_note"},{default:d((()=>[f("可提现金额:¥"+y(I(t).balance),1)])),_:1})])),_:1}),w(h,{style:{height:"50rpx"}}),w(h,{style:{display:"flex","justify-content":"center","margin-top":"80rpx"}},{default:d((()=>[w(h,{class:"affirm_btn",onClick:I(c)},{default:d((()=>[f("立即提现")])),_:1},8,["onClick"])])),_:1}),w(h,{style:{height:"50rpx"}})])),_:1})}}},[["__scopeId","data-v-4aff9d0b"]]);export{j as default};