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
8448d496
Commit
8448d496
authored
Sep 09, 2021
by
chengkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表文案修改
parent
66ea7c88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
OrderListAdapter.kt
...idian/shenghuoquan/buserorder/adapter/OrderListAdapter.kt
+16
-9
No files found.
Components/BUserOrder/src/main/java/com/yidian/shenghuoquan/buserorder/adapter/OrderListAdapter.kt
View file @
8448d496
...
...
@@ -110,6 +110,7 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
2
->
{
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
.
VISIBLE
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
"${data.total_price}"
...
...
@@ -117,16 +118,22 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
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
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
=
"
${data.total_price}
"
money
.
text
=
""
}
4
,
8
->
{
if
(
data
.
order_status
==
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
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
=
"部分退款:"
}
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_order_list_yuan
).
visibility
=
View
.
VISIBLE
var
money
:
TextView
=
holder
.
itemView
.
findViewById
<
TextView
>(
R
.
id
.
tv_pay_money_count
)
money
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
money
.
text
=
"${data.refund_amount}"
...
...
@@ -134,18 +141,18 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
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
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
=
"
${data.total_price}
"
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
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
=
"
${data.total_price}
"
money
.
text
=
""
}
}
}
...
...
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