|
@@ -2,23 +2,17 @@ package com.sheep.gamegroup.view.adapter;
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
import android.app.Activity;
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
|
-import android.support.v7.widget.RecyclerView;
|
|
|
|
|
-import android.support.v7.widget.StaggeredGridLayoutManager;
|
|
|
|
|
-import android.view.LayoutInflater;
|
|
|
|
|
|
|
+import android.text.TextUtils;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
-import android.view.ViewGroup;
|
|
|
|
|
import android.widget.ImageView;
|
|
import android.widget.ImageView;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
-import com.bumptech.glide.Glide;
|
|
|
|
|
import com.sheep.gamegroup.model.entity.RecyleObj;
|
|
import com.sheep.gamegroup.model.entity.RecyleObj;
|
|
|
import com.sheep.gamegroup.model.entity.RecyleType;
|
|
import com.sheep.gamegroup.model.entity.RecyleType;
|
|
|
-import com.sheep.gamegroup.model.entity.TaskAcceptedEty;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.TaskReleaseEty;
|
|
|
|
|
import com.sheep.gamegroup.model.entity.WXOnHookAccount;
|
|
import com.sheep.gamegroup.model.entity.WXOnHookAccount;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.ViewHolder;
|
|
import com.sheep.gamegroup.util.ViewHolder;
|
|
|
|
|
+import com.sheep.gamegroup.view.activity.CommitWxCodeAct;
|
|
|
import com.sheep.gamegroup.view.dialog.DialogAccountAbnormal;
|
|
import com.sheep.gamegroup.view.dialog.DialogAccountAbnormal;
|
|
|
import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
@@ -104,33 +98,59 @@ public class LieMakeMoneyAdp extends AdbCommonRecycler<RecyleObj> {
|
|
|
TextView wx_is_open_tv = holder.getView(R.id.wx_is_open_tv);
|
|
TextView wx_is_open_tv = holder.getView(R.id.wx_is_open_tv);
|
|
|
TextView earnings_name_tv = holder.getView(R.id.earnings_name_tv);
|
|
TextView earnings_name_tv = holder.getView(R.id.earnings_name_tv);
|
|
|
weixin_name_tv.setText(dataObjT.getAccount());
|
|
weixin_name_tv.setText(dataObjT.getAccount());
|
|
|
|
|
+ if(TextUtils.isEmpty(dataObjT.getRemarks())){
|
|
|
|
|
+ wx_is_open_tv.setText("账号异常,请联系客服");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ wx_is_open_tv.setText(dataObjT.getRemarks());
|
|
|
|
|
+ }
|
|
|
switch (dataObjT.getStatus()) {
|
|
switch (dataObjT.getStatus()) {
|
|
|
case 2://需要用户验证码
|
|
case 2://需要用户验证码
|
|
|
earnings_name_tv.setText("需要用户验证码");
|
|
earnings_name_tv.setText("需要用户验证码");
|
|
|
break;
|
|
break;
|
|
|
- case 3://用户已经验证等待脚本验证
|
|
|
|
|
- earnings_name_tv.setText("等待服务器验证");
|
|
|
|
|
- break;
|
|
|
|
|
- case 4://被封
|
|
|
|
|
|
|
+ case 3://被封
|
|
|
earnings_name_tv.setText("账号被封");
|
|
earnings_name_tv.setText("账号被封");
|
|
|
break;
|
|
break;
|
|
|
- case 5://用户已经解封等待脚本验证
|
|
|
|
|
- earnings_name_tv.setText("等待验证");
|
|
|
|
|
|
|
+ case 4://用户已经解封等待脚本验证
|
|
|
|
|
+ earnings_name_tv.setText("等待服务器验证");
|
|
|
break;
|
|
break;
|
|
|
- case 6://账号异常
|
|
|
|
|
|
|
+ case 5://账号异常
|
|
|
earnings_name_tv.setText("账号异常");
|
|
earnings_name_tv.setText("账号异常");
|
|
|
break;
|
|
break;
|
|
|
- case 7://验证码超时
|
|
|
|
|
|
|
+ case 6://验证码超时请重新上传
|
|
|
earnings_name_tv.setText("验证码超时");
|
|
earnings_name_tv.setText("验证码超时");
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case 7://用户已经验证等待脚本验证
|
|
|
|
|
+ earnings_name_tv.setText("等待服务器验证");
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
earnings_name_tv.setText("账号异常");
|
|
earnings_name_tv.setText("账号异常");
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- wx_is_open_tv.setText(dataObjT.getRemarks());
|
|
|
|
|
//TODO 各种状态用户可以进行不同的操作
|
|
//TODO 各种状态用户可以进行不同的操作
|
|
|
wx_is_open_tv.setOnClickListener(view -> {
|
|
wx_is_open_tv.setOnClickListener(view -> {
|
|
|
- G.showToast("请联系客服:"+dataObjT.getCustomer_service());
|
|
|
|
|
|
|
+ switch (dataObjT.getStatus()) {
|
|
|
|
|
+ case 2://需要用户验证码
|
|
|
|
|
+ case 6://验证码超时请重新上传
|
|
|
|
|
+ //修改验证码
|
|
|
|
|
+ Jump2View.getInstance().goCommitWxCodeOnHookView(this.context, dataObjT, CommitWxCodeAct.ALTER_CODE);
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 5://账号异常
|
|
|
|
|
+ //修改用户信息
|
|
|
|
|
+ Jump2View.getInstance().goCommitWxCodeOnHookView(this.context, dataObjT, CommitWxCodeAct.ALTER_INFO);
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 3://被封
|
|
|
|
|
+ if (context instanceof Activity){
|
|
|
|
|
+ DialogAccountAbnormal.showDialog((Activity) context);
|
|
|
|
|
+ }else if(BuildConfig.DEBUG) {
|
|
|
|
|
+ G.showToast("context不是activity,无法弹出对话框!");
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 4://用户已经解封等待脚本验证
|
|
|
|
|
+ case 7://用户已经验证等待脚本验证
|
|
|
|
|
+ default:
|
|
|
|
|
+ G.showToast("请等待或者联系客服:"+dataObjT.getCustomer_service());
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -145,16 +165,13 @@ public class LieMakeMoneyAdp extends AdbCommonRecycler<RecyleObj> {
|
|
|
Jump2View.getInstance().goGuideOnHook(this.context, null);
|
|
Jump2View.getInstance().goGuideOnHook(this.context, null);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
private void bindPromptOnHook(ViewHolder holder, List<WXOnHookAccount> list) {
|
|
private void bindPromptOnHook(ViewHolder holder, List<WXOnHookAccount> list) {
|
|
|
View ll = holder.getView(R.id.lie_make_operation_ll);
|
|
View ll = holder.getView(R.id.lie_make_operation_ll);
|
|
|
ll.setVisibility(list != null ? View.VISIBLE : View.GONE);
|
|
ll.setVisibility(list != null ? View.VISIBLE : View.GONE);
|
|
|
- ll.findViewById(R.id.account_abnormal_tv).setOnClickListener(view -> {
|
|
|
|
|
-// // 点击账号异常,弹出账号异常对话框
|
|
|
|
|
-// G.showToast("该功能正在建设中");
|
|
|
|
|
- if(context instanceof Activity)
|
|
|
|
|
- DialogAccountAbnormal.showDialog((Activity) context);
|
|
|
|
|
- else if(BuildConfig.DEBUG)
|
|
|
|
|
- G.showToast("传入的context不是activity,无法弹出对话框");
|
|
|
|
|
|
|
+ ll.findViewById(R.id.start_on_hook_tv).setOnClickListener(view -> {
|
|
|
|
|
+ // 点击添加挂机账号,进入引导小号界面
|
|
|
|
|
+ Jump2View.getInstance().goGuideOnHook(this.context, null);
|
|
|
});
|
|
});
|
|
|
ll.findViewById(R.id.customer_service_name_tv).setOnClickListener(view -> {
|
|
ll.findViewById(R.id.customer_service_name_tv).setOnClickListener(view -> {
|
|
|
// // 点击联系客服
|
|
// // 点击联系客服
|