parent
c90cae7787
commit
4a703b5ea0
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
|
||||
<AnchorPane xmlns:fx="http://javafx.com/fxml" fx:controller="com.example.myapp.controller.RegisterController"
|
||||
prefWidth="450" prefHeight="300"
|
||||
style="-fx-padding: 20;">
|
||||
<children>
|
||||
<Label layoutX="20" layoutY="20" text="用户注册" style="-fx-font-size: 18; -fx-font-weight: bold;"/>
|
||||
|
||||
<Label layoutX="20" layoutY="60" text="邮箱:" style="-fx-font-size: 14;"/>
|
||||
<TextField fx:id="emailField" layoutX="100" layoutY="56" prefWidth="240"
|
||||
style="-fx-font-size: 14;" promptText="请输入邮箱地址"/>
|
||||
|
||||
<Button fx:id="sendCodeBtn" text="发送注册码" layoutX="350" layoutY="56"
|
||||
onAction="#onSendCode" prefWidth="80" style="-fx-font-size: 12;"/>
|
||||
|
||||
<Label layoutX="20" layoutY="100" text="输入注册码:" style="-fx-font-size: 14;"/>
|
||||
<TextField fx:id="codeField" layoutX="100" layoutY="96" prefWidth="160"
|
||||
style="-fx-font-size: 14;" promptText="请输入6位验证码"/>
|
||||
<Button fx:id="verifyBtn" text="验证" layoutX="270" layoutY="96"
|
||||
onAction="#onVerify" prefWidth="60" style="-fx-font-size: 12;"/>
|
||||
|
||||
<Label fx:id="statusLabel" layoutX="20" layoutY="140" prefWidth="410"
|
||||
style="-fx-font-size: 12; -fx-wrap-text: true;"/>
|
||||
|
||||
<HBox layoutX="100" layoutY="180" spacing="20">
|
||||
<Button text="返回登录" onAction="#onBackToLogin"
|
||||
prefWidth="80" style="-fx-font-size: 12;"/>
|
||||
<Button text="清空" onAction="#onClear"
|
||||
prefWidth="80" style="-fx-font-size: 12;"/>
|
||||
</HBox>
|
||||
|
||||
<!-- 注册说明 -->
|
||||
<Label layoutX="20" layoutY="230" prefWidth="410"
|
||||
text="说明:每个邮箱只能注册一次,如果忘记密码请在登录后修改密码"
|
||||
style="-fx-font-size: 11; -fx-text-fill: gray; -fx-wrap-text: true;"/>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
Loading…
Reference in new issue