|
|
@@ -80,7 +80,7 @@ public class CouponFragment extends BaseMvpFragment implements ICouponView<Coupo
|
|
|
srl_template.setOnRefreshListener(() -> {
|
|
|
mIsRefresh = true;
|
|
|
mCurrentPage = PAGE_START;
|
|
|
- mPresenter.getCouponData(mCurrentPage, PAGE_SIZE);
|
|
|
+ mPresenter.getCouponData(mCouponType, mCurrentPage, PAGE_SIZE);
|
|
|
});
|
|
|
|
|
|
// 加载更多
|
|
|
@@ -92,7 +92,7 @@ public class CouponFragment extends BaseMvpFragment implements ICouponView<Coupo
|
|
|
if (!srl_template.isRefreshing()) {
|
|
|
mIsRefresh = false;
|
|
|
srl_template.setRefreshing(true);
|
|
|
- mPresenter.getCouponData(mCurrentPage, PAGE_SIZE);
|
|
|
+ mPresenter.getCouponData(mCouponType, mCurrentPage, PAGE_SIZE);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -102,7 +102,7 @@ public class CouponFragment extends BaseMvpFragment implements ICouponView<Coupo
|
|
|
protected void onLazyLoad() {
|
|
|
// 获取数据
|
|
|
srl_template.setRefreshing(true);
|
|
|
- mPresenter.getCouponData(mCurrentPage, PAGE_SIZE);
|
|
|
+ mPresenter.getCouponData(mCouponType, mCurrentPage, PAGE_SIZE);
|
|
|
}
|
|
|
|
|
|
/**
|