登录注册修改密码,网络请求

This commit is contained in:
2026-05-14 14:59:45 +08:00
parent 14d1969903
commit 652e10ec62
12 changed files with 455 additions and 229 deletions

View File

@@ -97,6 +97,64 @@
app:layout_constraintStart_toEndOf="@+id/ivPhoneIcon"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- 验证码输入框 -->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/smsRowLayout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp"
android:paddingEnd="16dp"
app:layout_constraintTop_toBottomOf="@+id/phoneRowLayout"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:visibility="visible">
<!-- 左侧图标 -->
<ImageView
android:id="@+id/ivSmsIcon"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@mipmap/vc"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<!-- 验证码输入框(无背景) -->
<EditText
android:id="@+id/etSmsCode"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:hint="@string/sms_code_hint"
android:textColorHint="@color/gray"
android:textColor="@android:color/black"
android:background="@null"
android:inputType="number"
android:paddingVertical="16dp"
app:layout_constraintStart_toEndOf="@+id/ivSmsIcon"
app:layout_constraintEnd_toStartOf="@+id/sendCodeBtn"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<!-- 发送验证码按钮 -->
<android.widget.Button
android:id="@+id/sendCodeBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_sms_code"
android:textSize="16sp"
android:textColor="@color/white"
android:background="@drawable/rounded_blue_bg"
android:paddingHorizontal="12dp"
android:maxWidth="120dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginStart="12dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- 身份证号输入框 -->
@@ -110,7 +168,7 @@
android:paddingEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/phoneRowLayout">
app:layout_constraintTop_toBottomOf="@+id/smsRowLayout">
<ImageView
android:id="@+id/ivIdIcon"

View File

@@ -39,6 +39,7 @@
<string name="and"></string>
<string name="privacy_policy">隐私政策</string>
<string name="register_success">注册成功</string>
<string name="registering">注册中...</string>
<string name="register_success_message">您的账号已成功创建</string>
<string name="go_to_login">去登录</string>
@@ -320,6 +321,7 @@
<string name="determine">确定</string>
<string name="id_number">身份证号</string>
<string name="enter_id_number">请输入身份证号</string>
<string name="hint_input_correct_id_card">请输入正确的身份证号</string>
<string name="invite_code_optional">邀请码(非必填)</string>
<string name="enter_invite_code">请输入邀请码</string>
<string name="scan_add">扫描添加</string>

View File

@@ -35,6 +35,7 @@
<string name="and">and</string>
<string name="privacy_policy">Privacy Policy</string>
<string name="register_success">Registration Successful</string>
<string name="registering">Registering...</string>
<string name="register_success_message">Your account has been created successfully</string>
<string name="go_to_login">Go to Login</string>
@@ -304,6 +305,7 @@
<string name="determine">Confirm</string>
<string name="id_number">ID Number</string>
<string name="enter_id_number">Enter ID number</string>
<string name="hint_input_correct_id_card">Please enter a valid ID card number</string>
<string name="invite_code_optional">Invite Code (Optional)</string>
<string name="enter_invite_code">Enter invite code</string>
<string name="scan_add">Scan to Add</string>