#放码来战.端云一体化开发#HarmonyOS 5 【农民叔叔】09.【端侧工程】用户手机号+短信验证码登录即注册
原创
上一篇我们已集成认证服务SDK。src>>main>>ets>>pages目录下新建登录页面LoginPage.ets,在登录页面引入authimportauth,{AuthUser,VerifyCodeAction}from'hwagconnectauth'定义几个变量,带有State装饰器StatephoneNo:string'';手机号StatevCode:string'';验证码StatevCodeTxt:string'获取验证码';StatevCodeEnabled:booleantrue;验证码按钮是否可用StatebtnLoginEnabled:booleanfalse;登录按钮是否可用StateisAgreed:booleanfa...