刚注册完跳转到设置密码界面的时候会自动填入注册用的验证码(因为服务端就这么设计的可以复用一次)

This commit is contained in:
MrZ_26
2022-10-26 10:33:14 +08:00
parent 0d015de359
commit 85ff1cd1c3
2 changed files with 6 additions and 1 deletions

View File

@@ -174,7 +174,7 @@ function NET.codeLogin(email,code)
USER.aToken=res.data.accessToken
saveUser()
SCN.pop()SCN.push('net_menu')
SCN.go('reset_password')
SCN.go('reset_password',nil,code)
end
end

View File

@@ -15,6 +15,11 @@ local function _setPW()
end
end
function scene.enter()
if SCN.args[1] then
scene.widgetList.code:setText(SCN.args[1])
end
end
function scene.keyDown(key,rep)
if key=='escape' and not rep then
SCN.back()