Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
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
1
Merge Requests
1
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
lify
RvApp
Commits
2eb9a183
Commit
2eb9a183
authored
Sep 24, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
佣金修改
parent
35df5a84
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
17 deletions
+56
-17
commissionListAdapter.java
...n/java/com/xxrv/wallet/adapter/commissionListAdapter.java
+21
-14
IncomeRecordsBean.java
...src/main/java/com/xxrv/wallet/bean/IncomeRecordsBean.java
+28
-0
item_commission.xml
plugin_wallet/src/main/res/layout/item_commission.xml
+7
-3
No files found.
plugin_wallet/src/main/java/com/xxrv/wallet/adapter/commissionListAdapter.java
View file @
2eb9a183
...
...
@@ -34,24 +34,31 @@ public class commissionListAdapter extends BaseQuickAdapter<IncomeRecordsBean.In
helper
.
setText
(
R
.
id
.
tv_consume_name
,
buffer
.
toString
());
helper
.
setText
(
R
.
id
.
tv_income_time
,
DateUtils
.
timestampToString1
(
item
.
getCrtTime
()));
if
(
item
.
getWaiting
()
==
0
)
{
//是否入账:0-未入账;1-已入账
helper
.
setBackgroundRes
(
R
.
id
.
tv_status
,
R
.
drawable
.
shape_rv_bg_income_not
);
helper
.
setText
(
R
.
id
.
tv_status
,
"未到账"
);
}
else
if
(
item
.
getWaiting
()
==
1
)
{
helper
.
setBackgroundRes
(
R
.
id
.
tv_status
,
R
.
drawable
.
shape_rv_bg_income_has
);
helper
.
setText
(
R
.
id
.
tv_status
,
"已到账"
);
}
if
(
item
.
getStatus
()
==
0
)
{
if
(
item
.
isShow
())
{
helper
.
setText
(
R
.
id
.
tv_amount
,
"取消订单"
);
helper
.
setTextColor
(
R
.
id
.
tv_amount
,
mContext
.
getResources
().
getColor
(
R
.
color
.
colorGray
));
}
else
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
append
(
"+"
).
append
(
item
.
getCommission
()).
append
(
"元"
);
helper
.
setText
(
R
.
id
.
tv_amount
,
builder
.
toString
());
helper
.
setTextColor
(
R
.
id
.
tv_amount
,
mContext
.
getResources
().
getColor
(
R
.
color
.
textGray
));
}
else
if
(
item
.
getStatus
()
==
1
)
{
helper
.
setText
(
R
.
id
.
tv_amount
,
"取消订单"
);
helper
.
setTextColor
(
R
.
id
.
tv_amount
,
mContext
.
getResources
().
getColor
(
R
.
color
.
colorGray
));
helper
.
setTextColor
(
R
.
id
.
tv_amount
,
mContext
.
getResources
().
getColor
(
R
.
color
.
textGray
));
}
if
(
TextUtils
.
isEmpty
(
item
.
getSellerStatus
()))
{
helper
.
setGone
(
R
.
id
.
tv_status
,
false
);
}
else
{
helper
.
setGone
(
R
.
id
.
tv_status
,
true
);
if
(
"0"
.
equals
(
item
.
getSellerStatus
()))
{
//0未入账 1 已入账 2:取消
helper
.
setBackgroundRes
(
R
.
id
.
tv_status
,
R
.
drawable
.
shape_rv_bg_income_not
);
helper
.
setText
(
R
.
id
.
tv_status
,
item
.
getStatusText
());
}
else
if
(
"1"
.
equals
(
item
.
getSellerStatus
()))
{
helper
.
setBackgroundRes
(
R
.
id
.
tv_status
,
R
.
drawable
.
shape_rv_bg_income_has
);
helper
.
setText
(
R
.
id
.
tv_status
,
item
.
getStatusText
());
}
else
if
(
"2"
.
equals
(
item
.
getSellerStatus
()))
{
helper
.
setBackgroundRes
(
R
.
id
.
tv_status
,
R
.
drawable
.
shape_rv_bg_income_cancel
);
helper
.
setText
(
R
.
id
.
tv_status
,
"取消"
);
helper
.
setText
(
R
.
id
.
tv_status
,
item
.
getStatusText
());
}
}
}
...
...
plugin_wallet/src/main/java/com/xxrv/wallet/bean/IncomeRecordsBean.java
View file @
2eb9a183
...
...
@@ -95,6 +95,10 @@ public class IncomeRecordsBean extends BaseBean {
private
long
updTime
;
private
String
username
;
private
int
waiting
;
private
String
sellerStatus
;
// 0未入账 1 已入账 2:取消
private
String
statusText
;
private
boolean
isShow
;
public
BigDecimal
getCommission
()
{
return
commission
;
...
...
@@ -191,5 +195,29 @@ public class IncomeRecordsBean extends BaseBean {
public
void
setWaiting
(
int
waiting
)
{
this
.
waiting
=
waiting
;
}
public
String
getSellerStatus
()
{
return
sellerStatus
;
}
public
void
setSellerStatus
(
String
sellerStatus
)
{
this
.
sellerStatus
=
sellerStatus
;
}
public
String
getStatusText
()
{
return
statusText
;
}
public
void
setStatusText
(
String
statusText
)
{
this
.
statusText
=
statusText
;
}
public
boolean
isShow
()
{
return
isShow
;
}
public
void
setShow
(
boolean
show
)
{
isShow
=
show
;
}
}
}
plugin_wallet/src/main/res/layout/item_commission.xml
View file @
2eb9a183
...
...
@@ -4,8 +4,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginRight=
"@dimen/dp_10"
android:orientation=
"vertical"
>
<LinearLayout
...
...
@@ -16,10 +16,14 @@
<TextView
android:id=
"@+id/tv_status"
android:layout_width=
"
@dimen/size_60
"
android:layout_height=
"
@dimen/size_20
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:background=
"@drawable/shape_rv_bg_income_not"
android:gravity=
"center"
android:paddingLeft=
"@dimen/size_8"
android:paddingTop=
"@dimen/size_3"
android:paddingRight=
"@dimen/size_8"
android:paddingBottom=
"@dimen/size_3"
android:text=
""
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_10"
/>
...
...
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