2 lines
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
import{_ as c,C as V}from"./common-RpMgvqEW.js";import{L as u}from"./LoginInput-DJYwJanT.js";import{T as p}from"./Tooltip-DTQgrM0A.js";import{B as m}from"./Base-BkRnk7Bb.js";import"./vendor-B3ZXv1Nn.js";const C={name:"RetrievePassword",extends:m,components:{Check:V,Tooltip:p,LoginInput:u},data(){return{phone:"",password:"",code:"",notice:"",isSendVerificationCode:!0,showVoiceCode:!1}},computed:{disabled(){return!(this.code&&this.password)}},created(){setTimeout(()=>{this.showVoiceCode=!0},3e3)},methods:{getVoiceCode(){return this.$showNoticeDialog("语音验证码","我们将以电话的方式告知你验证码,请注意接听","",()=>{setTimeout(()=>{this.$showConfirmDialog("","您的手机可能由于空号/欠费/停机无法收到验证码,请恢复手机号状态,如果您因为换号无法收到验证码,可以尝试找回账号","",()=>{},null,"找回账号","返回","")},2e3)},"知道了")},async sendCode(){this.$showLoading(),await this.$sleep(500),this.$hideLoading(),this.isSendVerificationCode=!0},async login(){await this.check()&&(this.loading=!0)}}},h=o=>(Vue.pushScopeId("data-v-9c6b8615"),o=o(),Vue.popScopeId(),o),v={class:"RetrievePassword"},f={class:"content"},N=h(()=>Vue.createElementVNode("div",{class:"desc"},[Vue.createElementVNode("div",{class:"title"},"找回密码"),Vue.createElementVNode("div",{class:"sub-title"}," 验证码已通过短信发送到+86 13800138000。 密码为8 - 20位,至少包含字母、数字、符号2种组合 ")],-1)),k={class:"left"},g={class:"right"},w={key:0,class:"notice"},y={key:1,class:"options"};function E(o,e,T,_,s,n){const i=Vue.resolveComponent("BaseHeader"),d=Vue.resolveComponent("LoginInput"),l=Vue.resolveComponent("Tooltip"),a=Vue.resolveComponent("Check"),r=Vue.resolveComponent("dy-button");return Vue.openBlock(),Vue.createElementBlock("div",v,[Vue.createVNode(i,{mode:"light",backMode:"dark",backImg:"back"}),Vue.createElementVNode("div",f,[N,Vue.createVNode(d,{autofocus:"",type:"code",modelValue:s.code,"onUpdate:modelValue":e[0]||(e[0]=t=>s.code=t),placeholder:"请输入验证码",isSendVerificationCode:s.isSendVerificationCode,"onUpdate:isSendVerificationCode":e[1]||(e[1]=t=>s.isSendVerificationCode=t),onSend:n.sendCode},null,8,["modelValue","isSendVerificationCode","onSend"]),Vue.createVNode(d,{class:"mt1r",autofocus:"",type:"password",modelValue:s.password,"onUpdate:modelValue":e[2]||(e[2]=t=>s.password=t),placeholder:"请输入密码"},null,8,["modelValue"]),Vue.createElementVNode("div",{class:Vue.normalizeClass(["protocol",o.showAnim?"anim-bounce":""])},[Vue.createVNode(l,{style:{top:"-150%",left:"-10rem"},modelValue:o.showTooltip,"onUpdate:modelValue":e[3]||(e[3]=t=>o.showTooltip=t)},null,8,["modelValue"]),Vue.createElementVNode("div",k,[Vue.createVNode(a,{modelValue:o.isAgree,"onUpdate:modelValue":e[4]||(e[4]=t=>o.isAgree=t)},null,8,["modelValue"])]),Vue.createElementVNode("div",g,[Vue.createTextVNode(" 已阅读并同意 "),Vue.createElementVNode("span",{class:"link",onClick:e[5]||(e[5]=t=>o.$nav("/service-protocol",{type:"“抖音”用户服务协议"}))},"用户协议"),Vue.createTextVNode(" 和 "),Vue.createElementVNode("span",{class:"link",onClick:e[6]||(e[6]=t=>o.$nav("/service-protocol",{type:"“抖音”隐私政策"}))},"隐私政策"),Vue.createTextVNode(" ,同时登录并使用抖音火山版(原“火山小视频”)和抖音 ")])],2),s.notice?(Vue.openBlock(),Vue.createElementBlock("div",w,Vue.toDisplayString(s.notice),1)):Vue.createCommentVNode("",!0),Vue.createVNode(r,{type:"primary",loading:o.loading,active:!1,loadingWithText:!0,disabled:n.disabled,onClick:n.login},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 完成 ")]),_:1},8,["loading","disabled","onClick"]),s.showVoiceCode?(Vue.openBlock(),Vue.createElementBlock("div",y,[Vue.createElementVNode("span",null,[Vue.createTextVNode(" 收不到短信?"),Vue.createElementVNode("span",{class:"link",onClick:e[7]||(e[7]=(...t)=>n.getVoiceCode&&n.getVoiceCode(...t))},"获取语音验证码")])])):Vue.createCommentVNode("",!0)])])}const U=c(C,[["render",E],["__scopeId","data-v-9c6b8615"]]);export{U as default};
|