Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
王海
TangKuPos
Commits
aeadd0bf
Commit
aeadd0bf
authored
Jan 02, 2018
by
陈前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大吉大利+3
parent
13c89e0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsPresenter.java
...om/xingdata/zzdpos/ui/statistics/StatisticsPresenter.java
+2
-2
app/src/main/res/layout/fragment_myself.xml
app/src/main/res/layout/fragment_myself.xml
+1
-0
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsPresenter.java
View file @
aeadd0bf
...
@@ -102,7 +102,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -102,7 +102,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getTicketList
(
int
pageNumber
,
UsedTicketListFragment
msListFragment
)
{
public
void
getTicketList
(
int
pageNumber
,
UsedTicketListFragment
msListFragment
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
1
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
2
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
.
subscribe
(
ticketPager
->
{
.
subscribe
(
ticketPager
->
{
msListFragment
.
setData
(
ticketPager
,
ticketPager
.
isFirstPage
());
msListFragment
.
setData
(
ticketPager
,
ticketPager
.
isFirstPage
());
},
throwable
->
{
},
throwable
->
{
...
@@ -113,7 +113,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -113,7 +113,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getTicketList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
public
void
getTicketList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
1
,
startDate
,
endDate
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
2
,
startDate
,
endDate
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
.
subscribe
(
ticketPager
->
{
.
subscribe
(
ticketPager
->
{
if
(
ticketPager
.
getList
()
==
null
||
ticketPager
.
getList
().
size
()
==
0
)
{
if
(
ticketPager
.
getList
()
==
null
||
ticketPager
.
getList
().
size
()
==
0
)
{
ToastUtils
.
showShort
(
"没有查询到相关优惠券"
);
ToastUtils
.
showShort
(
"没有查询到相关优惠券"
);
...
...
app/src/main/res/layout/fragment_myself.xml
View file @
aeadd0bf
...
@@ -113,6 +113,7 @@
...
@@ -113,6 +113,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:src=
"@mipmap/drop_down_fff"
android:src=
"@mipmap/drop_down_fff"
android:visibility=
"gone"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
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