|
@@ -4,66 +4,30 @@ import android.app.Activity;
|
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
import android.support.design.widget.TabLayout;
|
|
import android.support.design.widget.TabLayout;
|
|
|
import android.support.v4.view.ViewPager;
|
|
import android.support.v4.view.ViewPager;
|
|
|
-import android.support.v4.widget.SwipeRefreshLayout;
|
|
|
|
|
-import android.support.v7.widget.LinearLayoutManager;
|
|
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
-import android.text.TextUtils;
|
|
|
|
|
-import android.util.Log;
|
|
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
-import android.widget.AdapterView;
|
|
|
|
|
import android.widget.LinearLayout;
|
|
import android.widget.LinearLayout;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
-import com.arialyy.aria.core.download.DownloadTask;
|
|
|
|
|
-import com.bumptech.glide.Glide;
|
|
|
|
|
-import com.kfzs.duanduan.event.BigEvent;
|
|
|
|
|
-import com.kfzs.duanduan.fragment.FgtFindChild;
|
|
|
|
|
import com.kfzs.duanduan.fragment.FgtGameAgencyRecharge;
|
|
import com.kfzs.duanduan.fragment.FgtGameAgencyRecharge;
|
|
|
import com.kfzs.duanduan.mine.GiftpackListAdapter;
|
|
import com.kfzs.duanduan.mine.GiftpackListAdapter;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
-import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.DialogConfig;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.FindTag;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.GameAgencyRechargePlatformEntity;
|
|
|
|
|
import com.sheep.gamegroup.model.entity.GridViewEntity;
|
|
import com.sheep.gamegroup.model.entity.GridViewEntity;
|
|
|
-import com.sheep.gamegroup.model.entity.OrienteeringDetail;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.RecyleObj;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.RecyleType;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.RequestParameEty;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.TaskReleaseEty;
|
|
|
|
|
-import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
|
|
-import com.sheep.gamegroup.util.AppUtil;
|
|
|
|
|
-import com.sheep.gamegroup.util.CommonUtil;
|
|
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
-import com.sheep.gamegroup.util.ListUtil;
|
|
|
|
|
import com.sheep.gamegroup.util.MyGridview;
|
|
import com.sheep.gamegroup.util.MyGridview;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
-import com.sheep.gamegroup.view.adapter.AdpGameAgencyRecharge;
|
|
|
|
|
-import com.sheep.gamegroup.view.adapter.TryMakeMoneyAdp;
|
|
|
|
|
import com.sheep.gamegroup.view.customview.SheepmSwipeRefreshLayout;
|
|
import com.sheep.gamegroup.view.customview.SheepmSwipeRefreshLayout;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
-import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
|
|
|
|
|
-import org.greenrobot.eventbus.EventBus;
|
|
|
|
|
-import org.greenrobot.eventbus.Subscribe;
|
|
|
|
|
-
|
|
|
|
|
import java.lang.reflect.Field;
|
|
import java.lang.reflect.Field;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
|
|
-import java.util.Locale;
|
|
|
|
|
|
|
|
|
|
import butterknife.BindView;
|
|
import butterknife.BindView;
|
|
|
import butterknife.ButterKnife;
|
|
import butterknife.ButterKnife;
|
|
|
-import rx.android.schedulers.AndroidSchedulers;
|
|
|
|
|
-import rx.functions.Action1;
|
|
|
|
|
-import rx.schedulers.Schedulers;
|
|
|
|
|
|
|
|
|
|
-import static com.sheep.gamegroup.util.UMConfigUtils.Event.FIND_TAG;
|
|
|
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.GAME_INSTEAD_OF_RECHARGE_HELP;
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.GAME_INSTEAD_OF_RECHARGE_HELP;
|
|
|
-import static com.sheep.gamegroup.util.UMConfigUtils.Event.GAME_INSTEAD_OF_RECHARGE_TAB;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 游戏代充
|
|
* 游戏代充
|
|
@@ -86,14 +50,8 @@ public class ActGameAgencyRecharge extends BaseActivity {
|
|
|
private GiftpackListAdapter mAdapter;
|
|
private GiftpackListAdapter mAdapter;
|
|
|
|
|
|
|
|
private Activity activity;
|
|
private Activity activity;
|
|
|
- private AdpGameAgencyRecharge adpGameAgencyRecharge;
|
|
|
|
|
private ArrayList<Object> gridviewList = new ArrayList<>();
|
|
private ArrayList<Object> gridviewList = new ArrayList<>();
|
|
|
- private GridViewEntity gridViewEntity;//选中的
|
|
|
|
|
- private TryMakeMoneyAdp tryMakeMoneyAdp;
|
|
|
|
|
- private List<GameAgencyRechargePlatformEntity> platformList = ListUtil.emptyList();//平台充值
|
|
|
|
|
- private List<TaskReleaseEty> releaseEtyLists = new ArrayList<>();//游戏代充
|
|
|
|
|
|
|
|
|
|
- private String task_type;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
protected int getLayoutId() {
|
|
protected int getLayoutId() {
|
|
@@ -247,7 +205,6 @@ public class ActGameAgencyRecharge extends BaseActivity {
|
|
|
gridviewList.add(new GridViewEntity(false, "平台游戏", 1002+""));
|
|
gridviewList.add(new GridViewEntity(false, "平台游戏", 1002+""));
|
|
|
gridviewList.add(new GridViewEntity(false, "小米游戏", 1004+""));
|
|
gridviewList.add(new GridViewEntity(false, "小米游戏", 1004+""));
|
|
|
gridviewList.add(new GridViewEntity(false, "腾讯游戏", 1003+""));
|
|
gridviewList.add(new GridViewEntity(false, "腾讯游戏", 1003+""));
|
|
|
- gridViewEntity = (GridViewEntity) gridviewList.get(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|