1:修改背包上拉加载不显示的问题
2:修改礼盒记录标题显示
This commit is contained in:
@@ -921,6 +921,8 @@ public class RetrofitClient {
|
||||
BaseModel<List<MyBagDataBean>> baseModel = response.body();
|
||||
if (baseModel.getCode() == 1) {
|
||||
observer.onNext(baseModel.getData());
|
||||
}else if (baseModel.getCode() == 0) {
|
||||
observer.onNext(new ArrayList<>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -940,6 +942,8 @@ public class RetrofitClient {
|
||||
BaseModel<List<MyBagDataBean>> baseModel = response.body();
|
||||
if (baseModel.getCode() == 1) {
|
||||
observer.onNext(baseModel.getData());
|
||||
}else if (baseModel.getCode() == 0) {
|
||||
observer.onNext(new ArrayList<>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -961,7 +965,7 @@ public class RetrofitClient {
|
||||
if (baseModel.getCode() == 1) {
|
||||
observer.onNext(baseModel.getData());
|
||||
} else {
|
||||
observer.onNext(null);
|
||||
// observer.onNext(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -982,7 +986,7 @@ public class RetrofitClient {
|
||||
if (baseModel.getCode() == 1) {
|
||||
observer.onNext(baseModel.getMsg());
|
||||
} else {
|
||||
observer.onNext(null);
|
||||
// observer.onNext(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class GiftBoxRecordActivity extends BaseMvpActivity<GiftBoxRecordPresente
|
||||
@Override
|
||||
protected void initData() {
|
||||
MvpPre.dailyTasksBoxRecord();
|
||||
mBinding.topBar.setTitle("每日任务");
|
||||
mBinding.topBar.setTitle("礼盒记录");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ public class MyBagPresenter extends BasePresenter<MyBagConacts.View> implements
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().packOutcome(myBagDataBeans);
|
||||
MvpRef.get().finishRefreshLoadMore();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<com.xscm.moduleutil.widget.CustomTopBar
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/rv_gift_box_record"
|
||||
android:layout_marginTop="@dimen/dp_22"
|
||||
android:padding="@dimen/dp_16"
|
||||
|
||||
@@ -2,22 +2,29 @@
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/smart_refresh_layout"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:srlEnableLoadMore="true"
|
||||
app:srlEnableRefresh="true">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/smart_refresh_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/bg_r10_white"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none" />
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srlEnableLoadMore="true"
|
||||
app:srlEnableRefresh="true">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="60dp"
|
||||
android:background="@drawable/bg_r10_white"
|
||||
android:overScrollMode="never"
|
||||
android:paddingBottom="@dimen/dp_100"
|
||||
android:scrollbars="none" />
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user