整理代码

This commit is contained in:
MrZ626
2020-11-23 09:39:19 +08:00
parent 914a962a94
commit 44b151c617
44 changed files with 559 additions and 559 deletions

View File

@@ -16,12 +16,12 @@ function keyDown.login(key)
elseif password~=password2 then
LOG.print(text.diffPassword)return
end
local data=urlencode.encode({
local data=urlencode.encode{
username=username,
email=email,
password=password,
code=code,
})
}
httpRequest(
TICK.httpREQ_register,
"api/account/register",
@@ -37,11 +37,11 @@ function keyDown.login(key)
end
WIDGET.init("login",{
WIDGET.newText({name="title", x=80, y=50,font=70,align="L"}),
WIDGET.newTextBox({name="username", x=380, y=160,w=500,h=60,regex="[0-9A-Za-z_]"}),
WIDGET.newTextBox({name="email", x=380, y=260,w=626,h=60,regex="[0-9A-Za-z@._-]"}),
WIDGET.newTextBox({name="code", x=380, y=360,w=626,h=60,regex="[0-9A-Za-z]"}),
WIDGET.newTextBox({name="password", x=380, y=460,w=626,h=60,secret=true,regex="[ -~]"}),
WIDGET.newTextBox({name="password2",x=380, y=560,w=626,h=60,secret=true,regex="[ -~]"}),
WIDGET.newButton({name="back", x=1140, y=640,w=170,h=80,font=40,code=WIDGET.lnk_BACK}),
WIDGET.newText{name="title", x=80, y=50,font=70,align="L"},
WIDGET.newTextBox{name="username", x=380, y=160,w=500,h=60,regex="[0-9A-Za-z_]"},
WIDGET.newTextBox{name="email", x=380, y=260,w=626,h=60,regex="[0-9A-Za-z@._-]"},
WIDGET.newTextBox{name="code", x=380, y=360,w=626,h=60,regex="[0-9A-Za-z]"},
WIDGET.newTextBox{name="password", x=380, y=460,w=626,h=60,secret=true,regex="[ -~]"},
WIDGET.newTextBox{name="password2", x=380, y=560,w=626,h=60,secret=true,regex="[ -~]"},
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,font=40,code=WIDGET.lnk_BACK},
})