-
Notifications
You must be signed in to change notification settings - Fork 0
/
Signup.qml
64 lines (54 loc) · 1.13 KB
/
Signup.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
import Userdata 1.0
Item {
TextField {
id: username
x: 131
y: 105
width: 365
height: 20
font.pixelSize: 12
placeholderText: qsTr("用户名")
}
TextField {
id: telenum
x: 131
y: 156
width: 365
height: 20
font.pixelSize: 12
placeholderText: qsTr("电话号码")
}
TextField {
id: password
x: 131
y: 208
width: 365
height: 20
font.pixelSize: 12
placeholderText: qsTr("密码")
}
Button {
id: regist_button
x: 221
y: 275
text: qsTr("注册")
onClicked: {
if(user.isSignup(username.text))
{
console.log("用户已存在")
}else{
user.registInfo(username.text,telenum.text,password.text)
console.log("注册成功")
loginpage.pop()
}
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/