|
|
@@ -1,5 +1,6 @@
|
|
|
package com.miekir.eden.ui.home.goods;
|
|
|
|
|
|
+import android.text.TextUtils;
|
|
|
import android.util.TypedValue;
|
|
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
|
@@ -11,6 +12,7 @@ import com.miekir.common.utils.ToastTool;
|
|
|
import com.miekir.eden.R;
|
|
|
import com.miekir.eden.base.BaseBeiActivity;
|
|
|
import com.miekir.eden.base.ITopActionListener;
|
|
|
+import com.miekir.eden.constant.EdenError;
|
|
|
import com.miekir.eden.tool.StringTool;
|
|
|
import com.miekir.eden.widget.bottomlistener.OnRcvScrollListener;
|
|
|
import com.miekir.eden.widget.decoration.SpacesItemDecoration;
|
|
|
@@ -139,6 +141,11 @@ public class GoodsFragment extends BaseMVPFragment implements IGoodsView, ITopAc
|
|
|
public void onGoodsDataCome(boolean success, int code, List<GoodsBean> goodsList) {
|
|
|
srl_goods.setRefreshing(false);
|
|
|
if (!success) {
|
|
|
+ String toast = EdenError.getString(code);
|
|
|
+ if (!TextUtils.isEmpty(toast)) {
|
|
|
+ ToastTool.showShort(toast);
|
|
|
+ return;
|
|
|
+ }
|
|
|
ToastTool.showShort(StringTool.getString(R.string.data_get_fail));
|
|
|
return;
|
|
|
}
|