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
fb55e19c
Commit
fb55e19c
authored
Sep 03, 2021
by
chengkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单状态
parent
ddfc3e36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
10 deletions
+56
-10
OrderListAdapter.kt
...idian/shenghuoquan/buserorder/adapter/OrderListAdapter.kt
+55
-10
border_recycle_order_item.xml
...erOrder/src/main/res/layout/border_recycle_order_item.xml
+1
-0
No files found.
Components/BUserOrder/src/main/java/com/yidian/shenghuoquan/buserorder/adapter/OrderListAdapter.kt
View file @
fb55e19c
...
...
@@ -73,22 +73,14 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
}
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_order_goods_count
).
text
=
"共${data.goods_num}件"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_time
).
text
=
data
.
pay_time
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
"${data.payment}"
holder
.
itemView
.
findViewById
<
RelativeLayout
>(
R
.
id
.
rl_show_order_detail
).
setOnClickListener
{
//跳转订单详情页面
var
map
=
HashMap
<
String
,
Any
?>()
map
[
IntentConstants
.
KEY_EXTRA_ORDER_ID
]
=
data
.
order_id
XPageManager
.
push
(
XRouterPathConstants
.
ORDER_DETAIL_ACTIVITY
,
map
)
}
if
(
data
.
online_status
.
equals
(
"4"
))
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"已退款:"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"已退款"
}
else
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"已支付:"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"已支付"
}
setOrderStatus
(
data
,
holder
)
}
fun
gotoMarketingDetail
(
marketingId
:
Int
)
{
val
pageUrl
=
XBirdPageConstants
.
FIGHT_ORDER_EVENT_DETAILS
+
"?marketing_id=${marketingId}"
...
...
@@ -100,4 +92,57 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
holder
.
itemView
.
findViewById
<
LinearLayout
>(
R
.
id
.
ll_order_image2
).
visibility
=
View
.
VISIBLE
holder
.
itemView
.
findViewById
<
LinearLayout
>(
R
.
id
.
ll_order_image3
).
visibility
=
View
.
VISIBLE
}
private
fun
setOrderStatus
(
data
:
OrderWebData
,
holder
:
BaseViewHolder
)
{
when
(
data
.
order_status
)
{
1
->
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"未支付:"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"未支付"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_order_list_yuan
).
visibility
=
View
.
INVISIBLE
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
""
}
2
->
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"已支付:"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"已支付"
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
"${data.payment}"
}
3
->
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"待退款"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"待退款"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_order_list_yuan
).
visibility
=
View
.
INVISIBLE
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
""
}
4
->
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"已退款"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"已退款"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_order_list_yuan
).
visibility
=
View
.
INVISIBLE
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
""
}
5
->
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"退款中"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"退款中"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_order_list_yuan
).
visibility
=
View
.
INVISIBLE
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
""
}
6
->
{
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_status
).
text
=
"已拒绝"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_status
).
text
=
"已拒绝"
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_order_list_yuan
).
visibility
=
View
.
INVISIBLE
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
""
}
}
}
}
Components/BUserOrder/src/main/res/layout/border_recycle_order_item.xml
View file @
fb55e19c
...
...
@@ -192,6 +192,7 @@
>
</TextView>
<TextView
android:id=
"@+id/tv_order_list_yuan"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"12sp"
...
...
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