Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
ShenghuoquanBusiness
Commits
d1984b50
Commit
d1984b50
authored
Sep 13, 2021
by
shiyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认订单UI优化
parent
45de1704
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
13 deletions
+25
-13
OrderConfirmCommodityListAdapter.kt
...an/buserorder/adapter/OrderConfirmCommodityListAdapter.kt
+1
-1
border_activity_confirm_order.xml
...der/src/main/res/layout/border_activity_confirm_order.xml
+22
-10
border_item_order_confirm_commodity_list.xml
...n/res/layout/border_item_order_confirm_commodity_list.xml
+2
-2
No files found.
Components/BUserOrder/src/main/java/com/yidian/shenghuoquan/buserorder/adapter/OrderConfirmCommodityListAdapter.kt
View file @
d1984b50
...
@@ -33,7 +33,7 @@ class OrderConfirmCommodityListAdapter : BaseQuickAdapter<GoodsDto, BaseViewHold
...
@@ -33,7 +33,7 @@ class OrderConfirmCommodityListAdapter : BaseQuickAdapter<GoodsDto, BaseViewHold
Glide
.
with
(
context
).
load
(
item
.
picUrl
)
Glide
.
with
(
context
).
load
(
item
.
picUrl
)
.
apply
(
.
apply
(
RequestOptions
()
RequestOptions
()
.
transform
(
CenterCrop
(),
RoundedCorners
(
DensityUtil
.
dp2px
(
1
2
F
)))
.
transform
(
CenterCrop
(),
RoundedCorners
(
DensityUtil
.
dp2px
(
1
0
F
)))
.
error
(
R
.
drawable
.
img_order_commodity_placeholder
)
.
error
(
R
.
drawable
.
img_order_commodity_placeholder
)
.
placeholder
(
R
.
drawable
.
img_order_commodity_placeholder
)
.
placeholder
(
R
.
drawable
.
img_order_commodity_placeholder
)
)
)
...
...
Components/BUserOrder/src/main/res/layout/border_activity_confirm_order.xml
View file @
d1984b50
...
@@ -150,9 +150,9 @@
...
@@ -150,9 +150,9 @@
android:layout_marginTop=
"@dimen/dp8"
android:layout_marginTop=
"@dimen/dp8"
android:background=
"@drawable/shape_white_card_bg"
android:background=
"@drawable/shape_white_card_bg"
android:paddingStart=
"@dimen/dp16"
android:paddingStart=
"@dimen/dp16"
android:paddingTop=
"@dimen/dp
20
"
android:paddingTop=
"@dimen/dp
18
"
android:paddingEnd=
"@dimen/dp16"
android:paddingEnd=
"@dimen/dp16"
android:paddingBottom=
"@dimen/dp
20
"
>
android:paddingBottom=
"@dimen/dp
18
"
>
<TextView
<TextView
android:id=
"@+id/tv_receiving_name_title"
android:id=
"@+id/tv_receiving_name_title"
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
android:id=
"@+id/tv_receiving_phone_title"
android:id=
"@+id/tv_receiving_phone_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp
20
"
android:layout_marginTop=
"@dimen/dp
18
"
android:text=
"手机号码"
android:text=
"手机号码"
android:textColor=
"@color/color_333333"
android:textColor=
"@color/color_333333"
android:textSize=
"@dimen/sp16"
android:textSize=
"@dimen/sp16"
...
@@ -216,9 +216,9 @@
...
@@ -216,9 +216,9 @@
android:layout_marginTop=
"@dimen/dp8"
android:layout_marginTop=
"@dimen/dp8"
android:background=
"@drawable/shape_white_card_bg"
android:background=
"@drawable/shape_white_card_bg"
android:paddingStart=
"@dimen/dp16"
android:paddingStart=
"@dimen/dp16"
android:paddingTop=
"@dimen/dp
20
"
android:paddingTop=
"@dimen/dp
18
"
android:paddingEnd=
"@dimen/dp16"
android:paddingEnd=
"@dimen/dp16"
android:paddingBottom=
"@dimen/dp
20
"
>
android:paddingBottom=
"@dimen/dp
18
"
>
<TextView
<TextView
android:id=
"@+id/tv_goods_title"
android:id=
"@+id/tv_goods_title"
...
@@ -270,7 +270,8 @@
...
@@ -270,7 +270,8 @@
app:layout_constraintEnd_toStartOf=
"@id/tv_coupons_available"
app:layout_constraintEnd_toStartOf=
"@id/tv_coupons_available"
app:layout_constraintHorizontal_bias=
"0"
app:layout_constraintHorizontal_bias=
"0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"@string/red_packet_or_coupon"
/>
<TextView
<TextView
android:id=
"@+id/tv_coupons_available"
android:id=
"@+id/tv_coupons_available"
...
@@ -465,7 +466,7 @@
...
@@ -465,7 +466,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:drawableStart=
"@drawable/icon_weixin_pay"
android:drawableStart=
"@drawable/icon_weixin_pay"
android:text=
"微信支付"
android:text=
"微信支付"
android:textColor=
"@color/color_
333333
"
android:textColor=
"@color/color_
999999
"
android:textSize=
"@dimen/sp16"
android:textSize=
"@dimen/sp16"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
...
@@ -487,8 +488,19 @@
...
@@ -487,8 +488,19 @@
android:id=
"@+id/tv_total_title"
android:id=
"@+id/tv_total_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"合计:¥"
android:text=
"合计:"
android:textColor=
"@color/color_FD7823"
android:textColor=
"@color/color_999999"
android:textSize=
"@dimen/sp14"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/tv_price_symbol"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/tv_price_symbol"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/renminbi"
android:textColor=
"@color/color_FB4653"
android:textSize=
"@dimen/sp14"
android:textSize=
"@dimen/sp14"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/tv_total_amount"
app:layout_constraintEnd_toStartOf=
"@id/tv_total_amount"
...
@@ -500,7 +512,7 @@
...
@@ -500,7 +512,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/dp12"
android:layout_marginEnd=
"@dimen/dp12"
android:text=
'@{String.format("%.2f", vm.totalAmount)}'
android:text=
'@{String.format("%.2f", vm.totalAmount)}'
android:textColor=
"@color/color_F
D782
3"
android:textColor=
"@color/color_F
B465
3"
android:textSize=
"@dimen/sp24"
android:textSize=
"@dimen/sp24"
android:textStyle=
"bold"
android:textStyle=
"bold"
app:layout_constraintBaseline_toBaselineOf=
"@id/tv_total_title"
app:layout_constraintBaseline_toBaselineOf=
"@id/tv_total_title"
...
...
Components/BUserOrder/src/main/res/layout/border_item_order_confirm_commodity_list.xml
View file @
d1984b50
...
@@ -27,10 +27,11 @@
...
@@ -27,10 +27,11 @@
android:maxLines=
"1"
android:maxLines=
"1"
android:textColor=
"@color/color_333333"
android:textColor=
"@color/color_333333"
android:textSize=
"@dimen/sp15"
android:textSize=
"@dimen/sp15"
android:textStyle=
"bold"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/iv_commodity_pic"
app:layout_constraintStart_toEndOf=
"@id/iv_commodity_pic"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"肉末茄子+蔬蒸蛋套餐+肉沫豆角+清蒸鲈鱼"
/>
tools:text=
"肉末茄子+蔬蒸蛋套餐+肉沫豆角+清蒸鲈鱼
收到分身乏术
"
/>
<TextView
<TextView
android:id=
"@+id/tv_commodity_count"
android:id=
"@+id/tv_commodity_count"
...
@@ -54,7 +55,6 @@
...
@@ -54,7 +55,6 @@
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:textColor=
"@color/color_333333"
android:textColor=
"@color/color_333333"
android:textSize=
"@dimen/sp16"
android:textSize=
"@dimen/sp16"
android:textStyle=
"bold"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0"
app:layout_constraintHorizontal_bias=
"0"
app:layout_constraintStart_toStartOf=
"@id/tv_commodity_name"
app:layout_constraintStart_toStartOf=
"@id/tv_commodity_name"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment