douyin/js/VerificationCode-C3qXi_TF.js
2024-04-23 09:37:32 +00:00

2 lines
2.6 KiB
JavaScript

import{L as u}from"./LoginInput-XJbmu1Mr.js";import{u as r}from"./other-s7HPCK19.js";import{al as V,R as p,T as m,V as f,ai as _,_ as C}from"./common-DzJQztrr.js";import"./vendor-B0vIwkRg.js";const g=t=>(Vue.pushScopeId("data-v-150292f2"),t=t(),Vue.popScopeId(),t),h={class:"VerificationCode"},v={class:"content"},N=g(()=>Vue.createElementVNode("div",{class:"desc"},[Vue.createElementVNode("div",{class:"title"},"请输入验证码"),Vue.createElementVNode("div",{class:"sub-title"},"验证码已通过短信发送到+86 13800138000")],-1)),k={key:0,class:"options"},w=Vue.defineComponent({name:"VerificationCode"}),S=Vue.defineComponent({...w,setup(t){const i=r(),e=Vue.reactive({showAnim:!1,showTooltip:!1,loading:!1,phone:"",password:"",code:"",isSendVerificationCode:!0,showVoiceCode:!1});Vue.onMounted(()=>{setTimeout(()=>{e.showVoiceCode=!0},3e3)});function a(){return V("语音验证码","我们将以电话的方式告知你验证码,请注意接听","",()=>{setTimeout(()=>{_("","您的手机可能由于空号/欠费/停机无法收到验证码,请恢复手机号状态,如果您因为换号无法收到验证码,可以尝试找回账号","",()=>{},null,"找回账号","返回","")},2e3)},"知道了")}async function d(){p(),await m(500),f(),e.isSendVerificationCode=!0}function s(){e.loading=!0,setTimeout(()=>{e.isSendVerificationCode=!0,e.loading=!1},1e3)}return(E,o)=>{const c=Vue.resolveComponent("BaseHeader"),l=Vue.resolveComponent("dy-button");return Vue.openBlock(),Vue.createElementBlock("div",h,[Vue.createVNode(c,{mode:"light",backMode:"dark",backImg:"back"},{right:Vue.withCtx(()=>[Vue.createElementVNode("span",{class:"f14",onClick:o[0]||(o[0]=n=>Vue.unref(i)("/login/help"))},"帮助与设置")]),_:1}),Vue.createElementVNode("div",v,[N,Vue.createVNode(u,{autofocus:"",type:"code",modelValue:e.code,"onUpdate:modelValue":o[1]||(o[1]=n=>e.code=n),placeholder:"请输入验证码",isSendVerificationCode:e.isSendVerificationCode,"onUpdate:isSendVerificationCode":o[2]||(o[2]=n=>e.isSendVerificationCode=n),onSend:d},null,8,["modelValue","isSendVerificationCode"]),e.showVoiceCode?(Vue.openBlock(),Vue.createElementBlock("div",k,[Vue.createElementVNode("span",null,[Vue.createTextVNode(" 收不到短信?"),Vue.createElementVNode("span",{class:"link",onClick:a},"获取语音验证码")])])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{type:"primary",loading:e.loading,active:!1,disabled:e.code.length<4,onClick:s},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.loading?"登录中":"登录"),1)]),_:1},8,["loading","disabled"])])])}}}),B=C(S,[["__scopeId","data-v-150292f2"]]);export{B as default};