添加‘我的’页面的银行卡绑定接口和用户资料接口

This commit is contained in:
md
2021-06-29 18:21:05 +08:00
parent 4653d7a501
commit 5ad871a254
15 changed files with 845 additions and 111 deletions

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rlv_bank"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center_vertical"
app:layout_constraintTop_toTopOf="parent"
android:id="@+id/tv_bank"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -41,10 +41,10 @@
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_margin="20dp"
android:background="@drawable/gethering_shape"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:background="@drawable/gethering_shape"
app:layout_constraintTop_toBottomOf="@+id/rl_gathering">
<TextView
@@ -90,24 +90,25 @@
<TextView
android:layout_width="100dp"
android:layout_height="wrap_content"
android:textSize="18sp"
android:gravity="center"
android:text="持 卡 人:"
android:textColor="#333"
android:text="持 卡 人:" />
android:textSize="18sp" />
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:background="@null"
android:textSize="16sp"
android:layout_height="wrap_content"
android:hint="持卡人姓名" />
android:background="@null"
android:hint="持卡人姓名"
android:textSize="16sp" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#2196F3"
/>
android:background="#2196F3" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
@@ -117,23 +118,41 @@
<TextView
android:layout_width="100dp"
android:layout_height="wrap_content"
android:textSize="18sp"
android:gravity="center"
android:text="银行卡号:"
android:textColor="#333"
android:text="银行卡号:" />
android:textSize="18sp" />
<EditText
android:id="@+id/et_bank_num"
android:layout_width="wrap_content"
android:background="@null"
android:textSize="16sp"
android:layout_height="match_parent"
android:hint="银行卡号 " />
android:background="@null"
android:hint="银行卡号 "
android:textSize="16sp" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="100dp"
android:layout_height="match_parent">
<ImageView
android:id="@+id/gathering_camera"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginBottom="10dp"
android:src="@drawable/ic_baseline_camera"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#2196F3"
/>
android:background="#2196F3" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="60dp"
@@ -143,22 +162,23 @@
android:id="@+id/bank"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:textSize="18sp"
android:gravity="center"
android:textColor="#333"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="所属银行:" />
android:gravity="center"
android:text="所属银行:"
android:textColor="#333"
android:textSize="18sp" />
<TextView
android:id="@+id/tv_bank"
android:layout_width="wrap_content"
android:textSize="16sp"
android:layout_toRightOf="@id/bank"
android:layout_toLeftOf="@id/iv_bank"
android:layout_centerVertical="true"
android:layout_height="wrap_content"
android:hint="请选择所属银行" />
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/iv_bank"
android:layout_toRightOf="@id/bank"
android:hint="请选择所属银行"
android:textSize="16sp" />
<ImageView
android:id="@+id/iv_bank"
android:layout_width="50dp"
@@ -166,21 +186,22 @@
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:src="@drawable/ic_baseline_arrow"
/>
android:src="@drawable/ic_baseline_arrow_drop" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#2196F3"
/>
android:background="#2196F3" />
<Button
android:id="@+id/btn_bank"
style="@style/user_data_style"
android:layout_marginTop="40dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="绑定银行卡"
/>
android:layout_marginTop="40dp"
android:text="绑定银行卡" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/rl_attestation"
@@ -20,9 +20,9 @@
android:id="@+id/iv_attestation"
android:layout_width="50dp"
android:layout_height="50dp"
android:padding="15dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="15dp"
android:padding="15dp"
android:src="@drawable/ic_baseline_arrow" />
<TextView
@@ -110,60 +110,129 @@
android:layout_height="150dp"
android:layout_marginTop="20dp"
android:orientation="horizontal">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
>
<ImageView
android:id="@+id/iv_attestation1"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@color/colorPrimaryBlue"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/card_zhengmian"
android:layout_gravity="center"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="*身份证人像面"
android:textColor="@color/white"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/iv_attestation2"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
android:layout_height="100dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@mipmap/checkbox" />
<ImageView
android:id="@+id/iv_attestation3"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_attestation1"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@color/colorPrimaryBlue"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="@id/iv_attestation1"
app:layout_constraintLeft_toLeftOf="@id/iv_attestation1"
app:layout_constraintRight_toRightOf="@id/iv_attestation1"
app:layout_constraintTop_toTopOf="@id/iv_attestation1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/card_zhengmian" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="*身份证人像面"
android:textColor="@color/white" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_attestation2"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@color/colorPrimaryBlue"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="@id/iv_attestation2"
app:layout_constraintLeft_toLeftOf="@id/iv_attestation2"
app:layout_constraintRight_toRightOf="@id/iv_attestation2"
app:layout_constraintTop_toTopOf="@id/iv_attestation2">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/card_fanmian" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="*身份证国徽面"
android:textColor="@color/white" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
android:layout_height="100dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@mipmap/checkbox" />
android:layout_height="wrap_content"
>
<ImageView
android:id="@+id/iv_attestation3"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@color/colorPrimaryBlue"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@id/iv_attestation3"
app:layout_constraintLeft_toLeftOf="@id/iv_attestation3"
app:layout_constraintBottom_toBottomOf="@id/iv_attestation3"
app:layout_constraintRight_toRightOf="@id/iv_attestation3"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/card_shouchi" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="*手持身份证"
android:layout_gravity="center_horizontal"
android:textColor="@color/white"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<View
@@ -178,6 +247,5 @@
android:layout_height="match_parent"
android:layout_marginTop="40dp"
android:text="认证" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>