version:4.9

fix:
update:更新下单流程,增加备注,增加桌面图标
This commit is contained in:
2024-03-13 18:13:33 +08:00
parent 7cb6eecb3d
commit 5e9b850d6b
41 changed files with 945 additions and 124 deletions

View File

@@ -6,9 +6,15 @@
<data>
<import type="android.view.View" />
<variable
name="goodsInfo"
type="com.uiuios.aios.bean.GoodsInfo" />
<variable
name="addressInfo"
type="com.uiuios.aios.bean.AddressInfo" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
@@ -30,8 +36,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:textColor="@color/black"
android:text='@{goodsInfo.goods_name}'
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@@ -50,7 +56,7 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout16"
android:id="@+id/cl_address"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_1"
@@ -71,21 +77,83 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_location"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
android:minLines="2"
android:paddingStart="@dimen/dp_8"
android:paddingEnd="@dimen/dp_32"
android:textColor="@color/black"
android:textSize="@dimen/sp_12"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_8"
android:layout_marginEnd="@dimen/dp_16"
android:layout_marginBottom="@dimen/dp_8"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/imageView14"
app:layout_constraintStart_toEndOf="@+id/imageView13"
app:layout_constraintTop_toTopOf="parent"
tools:text="测试地址测试地址测试地址测试地址测试地址测试地址测试地址测试地址" />
app:layout_constraintStart_toEndOf="@id/imageView13"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout24"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:text="@{addressInfo.fullname}"
android:textColor="@color/black"
android:textSize="@dimen/sp_10"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="范辉同" />
<TextView
android:id="@+id/tv_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/sp_4"
android:ellipsize="end"
android:maxWidth="@dimen/dp_70"
android:maxLines="1"
android:text="@{addressInfo.tel}"
android:textColor="@color/black"
android:textSize="@dimen/sp_9"
app:layout_constraintBottom_toBottomOf="@id/tv_name"
app:layout_constraintStart_toEndOf="@id/tv_name"
app:layout_constraintTop_toTopOf="@id/tv_name"
tools:text="13220282310" />
<TextView
android:id="@+id/tv_default"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/sp_4"
android:background="@drawable/address_background"
android:text="默认"
android:textColor="@color/default_red"
android:textSize="@dimen/sp_7"
android:visibility="@{addressInfo.is_default==1?View.VISIBLE:View.GONE}"
app:layout_constraintBottom_toBottomOf="@id/tv_phone"
app:layout_constraintStart_toEndOf="@+id/tv_phone"
app:layout_constraintTop_toTopOf="@id/tv_phone" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tv_address"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_8"
android:maxLines="2"
android:textColor="@color/title_gray"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout24"
tools:text="广东省 深圳市 龙岗区 坂田街道 天安路15号杨英楼" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/imageView14"
@@ -107,7 +175,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_4"
android:background="@color/white"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout16">
app:layout_constraintTop_toBottomOf="@+id/cl_address">
<ImageView
android:id="@+id/iv_goods"
@@ -129,11 +197,11 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_8"
android:maxLines="1"
tools:text="券后¥8278"
android:textColor="@color/default_red"
android:textSize="@dimen/sp_13"
app:layout_constraintStart_toEndOf="@+id/iv_goods"
app:layout_constraintTop_toTopOf="@+id/iv_goods" />
app:layout_constraintTop_toTopOf="@+id/iv_goods"
tools:text="券后¥8278" />
<TextView
android:id="@+id/tv_original_price"
@@ -144,9 +212,9 @@
android:maxLines="1"
android:textColor="@color/title_gray"
android:textSize="@dimen/sp_9"
tools:text="券前¥8278"
app:layout_constraintStart_toEndOf="@+id/iv_goods"
app:layout_constraintTop_toBottomOf="@+id/tv_price" />
app:layout_constraintTop_toBottomOf="@+id/tv_price"
tools:text="券前¥8278" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout17"
@@ -219,6 +287,33 @@
app:layout_constraintBottom_toTopOf="@+id/cl_pay"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout20">
<TextView
android:id="@+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_8"
android:layout_marginTop="@dimen/dp_8"
android:text="订单备注"
android:textColor="@color/black"
android:textSize="@dimen/sp_11"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/et_remark"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_100"
android:layout_marginStart="@dimen/dp_8"
android:layout_marginTop="@dimen/dp_8"
android:layout_marginEnd="@dimen/dp_8"
android:background="@drawable/edittext_background"
android:textSize="@dimen/sp_10"
android:gravity="start"
android:singleLine="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView9" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout