"use strict";const e=require("../../common/vendor.js"),o=require("../../api/index.js"),n=require("../../store/index.js"),s=require("../../utils/fun.js"),t=require("../../uni_modules/wot-design-uni/components/composables/useCountDown.js");require("../../uni_modules/wot-design-uni/locale/index.js"),require("../../uni_modules/wot-design-uni/dayjs/index.js");const a={__name:"zhaun",setup(a){let i=e.ref({toPhone:"",smsCode:"",money:""});const u=e.ref("获取验证码"),{start:l,pause:r,reset:d,current:c}=t.useCountDown({time:6e4,onChange(e){},onFinish(){u.value="重新发送"}}),m=e=>{h.value.mobile?c.value.seconds?s.toast("请等待倒计时结束"):o.api.smsCode({mobile:h.value.mobile,scene:6}).then((e=>{l(),s.toast("验证码发送成功")})).catch((e=>{console.log(e),s.toast("验证码发送失败")})):s.toast("请输入手机号")},v=n.Store(),h=e.computed((()=>v.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}})),f=()=>i.value.toPhone?i.value.money?i.value.smsCode?void o.api.transfer2other(i.value).then((o=>{e.index.showModal({title:"提示",content:"划转成功",showCancel:!1,success:()=>{e.index.reLaunch({url:"/pages/mine/mine"})}})})):e.index.showToast({title:"请输入验证码",icon:"none"}):e.index.showToast({title:"请输入划转金额",icon:"none"}):e.index.showToast({title:"请输入划转手机号",icon:"none"});return(o,n)=>({a:e.t(h.value.money),b:e.unref(i).money,c:e.o((o=>e.unref(i).money=o.detail.value)),d:e.unref(i).toPhone,e:e.o((o=>e.unref(i).toPhone=o.detail.value)),f:h.value.mobile,g:e.o((e=>h.value.mobile=e.detail.value)),h:e.unref(i).smsCode,i:e.o((o=>e.unref(i).smsCode=o.detail.value)),j:e.t(e.unref(c).seconds||u.value),k:e.o(m),l:e.o(f)})}},i=e._export_sfc(a,[["__scopeId","data-v-94f7856c"]]);wx.createPage(i);
