Selaa lähdekoodia

调整

GZBranch
lujin 2 kuukautta sitten
vanhempi
commit
7a801d1d7e

+ 0
- 20
app/src/main/java/com/huntersun/vkyes/etcopencard/project/api/MyRetrofit.java Näytä tiedosto

@@ -235,29 +235,9 @@ public class MyRetrofit implements ToastAction {

public static void newInstanceGZ(Activity context, Boolean start, String code, Object bean, ReturnResult result) {
LinkedTreeMap<String, Object> linkedTreeMap = JSONObject.parseObject(new Gson().toJson(bean), LinkedTreeMap.class);
// if (!"iaw/app/issue/generalAudit/query".equals(code)) {
// if (IFCode.IFCODE_BLACKLISTQUERY.equals(code)){
// linkedTreeMap.put("openId", "972e9cd0690d470f9899196e72e8b9ee");
// }else {
// linkedTreeMap.put("openId", (String) MyShared.getInstance().get(MyShared.OPENID, ""));
// }
// }else {
//
// }
linkedTreeMap.put("loginSource", Constants.LOGIN_SOURCE);
// linkedTreeMap.put("agentId", MyShared.getInstance().get(MyShared.AGENCYID, ""));
// linkedTreeMap.put("channelId", MyShared.getInstance().get(MyShared.CHANNELID, ""));
// linkedTreeMap.put("channelType", "1");
// linkedTreeMap.put("opId", MyShared.getInstance().get(MyShared.OPENID, ""));
linkedTreeMap.put("accessToken", MyShared.getInstance().get(MyShared.ACCESSTOKEN, ""));
linkedTreeMap.put("staffId", MyShared.getInstance().get(MyShared.STAFFID, ""));
// linkedTreeMap.put("terminalId", "999999999999");
// RequestParameters parameters = new RequestParameters(code, new Gson().toJson(linkedTreeMap));
// if (code.equals(IFCode.IFCODE148)){
// linkedTreeMap.put("agentId", "123");
// linkedTreeMap.put("channelId", "123");
// linkedTreeMap.put("openId", "123");
// }
Log.i("querybean", JSONObject.toJSONString(linkedTreeMap) + "~~ifcode~" + code);
String loadHint = "加载中...";
//通过IFCODE

+ 1
- 1
app/src/main/java/com/huntersun/vkyes/etcopencard/project/api/bean/IFCode.java Näytä tiedosto

@@ -88,7 +88,7 @@ public class IFCode {
public static final String IFCODE5 = "5"; //通过code换取appid
public static final String IFCODE6 = "iaw/issue/order/add"; //创建订单
public static final String IFCODE7 = "iaw/issue/order/orderCancel"; //取消订单
public static final String IFCODE20 = "iaw/issue/user/userUpload"; //提交单位用户信息
public static final String IFCODE20 = "iaw/issue/order/upUser" ;//"iaw/issue/user/userUpload"; //提交单位用户信息
public static final String IFCODE21 = "21"; //变更个人用户信息
public static final String IFCODE22 = "iaw/issue/user/userUpload"; //提交个人用户信息
public static final String IFCODE23 = "iaw/app/issue/userSign/query"; //签约检测接口

+ 34
- 32
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/FillOutMessage.java Näytä tiedosto

@@ -83,7 +83,9 @@ public class FillOutMessage extends AppActivity {
private String userType = ""; //用户类型
private ArrayList<CarColorBtnBean> carColorList = new ArrayList<>();
private AMapLocationClient mapLocationClient;
private String lat, lnt, detailedAddress;
private String lat;
private String lnt;
private String detailedAddress;
private ResultBean.BizContent bizContent2;
public AMapLocationListener mLocationListener = new AMapLocationListener() {
@Override
@@ -255,19 +257,19 @@ public class FillOutMessage extends AppActivity {
}
//此处进行车牌校验
HashMap<String, String> params = new HashMap<>();
params.put("agencyId", MyShared.getInstance().get(MyShared.AGENCYID, "") + "");
params.put("detailedAddress", detailedAddress);
// params.put("agencyId", MyShared.getInstance().get(MyShared.AGENCYID, "") + "");
// params.put("detailedAddress", detailedAddress);
params.put("latitude", lat);
params.put("longitude", lnt);
params.put("orderSource", "SERVICE_HALL");
// params.put("orderSource", "SERVICE_HALL");
params.put("productId", bizContent2.productId);
params.put("userType", userType);
params.put("cardType", getIntent().getStringExtra("cardType"));//卡类型
// params.put("cardType", getIntent().getStringExtra("cardType"));//卡类型
params.put("vanType", getIntent().getStringExtra("type")); //车型
params.put("vehiclePlate", binding.inputView.getNumber());
params.put("vehiclePlateColor", licensePlateColor + "");
params.put("whetherToMail", binding.isMail.isChecked() ? "true" : "false");//是否需要邮寄
params.put("releaseType", "0");//发行类型 1-卡 2-OBU 0-卡、OBU唯一性校验
// params.put("releaseType", "0");//发行类型 1-卡 2-OBU 0-卡、OBU唯一性校验

Log.e("okhttp", "打印标题:" + new Gson().toJson(params));
//判断邮寄信息是否选中,选中的话要填写邮寄信息内容
@@ -288,18 +290,18 @@ public class FillOutMessage extends AppActivity {
params.put("address", binding.consignee4.getText().toString()); //详细地址
params.put("postalCode", binding.consignee5.getText().toString()); //邮政编码
}
binding.nextStep.setEnabled(false);
MyRetrofit.newInstanceGZ(FillOutMessage.this, true, IFCode.IFCODE35, params, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
HashMap<String, String> params3 = new HashMap<>();
params3.put("x", lat);
params3.put("y", lnt);
params3.put("validStaffId", (String) MyShared.getInstance().get(MyShared.OPENID, ""));
MyRetrofit.newInstanceGZ(FillOutMessage.this, IFCode.IFCODE_CHECKUSERPOSITION, params3, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
if ("1".equals(bizContent.isCoordinateInRange)) {
// binding.nextStep.setEnabled(false);
// MyRetrofit.newInstanceGZ(FillOutMessage.this, true, IFCode.IFCODE35, params, new MyRetrofit.ReturnResult() {
// @Override
// public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
// HashMap<String, String> params3 = new HashMap<>();
// params3.put("x", lat);
// params3.put("y", lnt);
// params3.put("validStaffId", (String) MyShared.getInstance().get(MyShared.OPENID, ""));
// MyRetrofit.newInstanceGZ(FillOutMessage.this, IFCode.IFCODE_CHECKUSERPOSITION, params3, new MyRetrofit.ReturnResult() {
// @Override
// public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
// if ("1".equals(bizContent.isCoordinateInRange)) {
MyRetrofit.newInstanceGZ(FillOutMessage.this, IFCode.IFCODE6, params, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
@@ -326,20 +328,20 @@ public class FillOutMessage extends AppActivity {
binding.nextStep.setEnabled(true);
}
});
} else {
ToastUtil.showS(FillOutMessage.this, "不在特定区域不能办理");
}
}
});
}
@Override
public void onError(Result resp) {
MyRetrofit.ReturnResult.super.onError(resp);
binding.nextStep.setEnabled(true);
}
});
// } else {
// ToastUtil.showS(FillOutMessage.this, "不在特定区域不能办理");
// }
// }
// });
//
// }
//
// @Override
// public void onError(Result resp) {
// MyRetrofit.ReturnResult.super.onError(resp);
// binding.nextStep.setEnabled(true);
// }
// });
}
});
}

+ 124
- 162
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/IdentityInformationUploadActivity.java Näytä tiedosto

@@ -330,6 +330,12 @@ public class IdentityInformationUploadActivity extends AppActivity {
}

if (getIntent().getBooleanExtra("start", false)) {
HashMap<String,String> params = new HashMap<>();
params.put("agentAddress",binding.textAddress.getText().toString());//经办人地址
params.put("agentIdNum",binding.text7.getText() + "");//车主证件号码
params.put("agentIdType",ownerIdType);//车主证件类型
params.put("agentIdVld",binding.text8.getText() + ""); //车主证件有效期

FatherBean<SendTheVerificationCodeBean> fatherBean = new FatherBean<>();
fatherBean.bizContent = new SendTheVerificationCodeBean();
fatherBean.bizContent.setOrderId(getIntent().getStringExtra("orderId")); //订单编号
@@ -342,15 +348,15 @@ public class IdentityInformationUploadActivity extends AppActivity {
fatherBean.bizContent.setTel(binding.text2.getText() + ""); //开户人手机号码
fatherBean.bizContent.setAddress(binding.text4.getText() + ""); //开户人地址

fatherBean.bizContent.setAgentIdType(ownerIdType); //车主证件类型
fatherBean.bizContent.setAgentIdNum(binding.text7.getText() + ""); //车主证件号码
fatherBean.bizContent.setAgentIdType(ownerIdType);
fatherBean.bizContent.setAgentIdNum(binding.text7.getText() + "");
fatherBean.bizContent.setAgentName(binding.text6.getText() + ""); //车主姓名
fatherBean.bizContent.setAgentTel(binding.text9.getText() + ""); //车主电话
fatherBean.bizContent.setAgentIdVld(binding.text8.getText() + ""); //车主证件有效期
fatherBean.bizContent.setAgentIdVld(binding.text8.getText() + "");
fatherBean.bizContent.setAgentPosImgUrl(imgUrl3); //车主正面图片地址
fatherBean.bizContent.setAgentNegImgUrl(imgUrl4); //车主反面图片地址
fatherBean.bizContent.setProxyUrl(imgUrl5); //委托书图片地址
fatherBean.bizContent.setAgentAddress(binding.textAddress.getText().toString());//经办人地址
fatherBean.bizContent.setAgentAddress(binding.textAddress.getText().toString());
fatherBean.bizContent.setChannelId(MyShared.getInstance().get(MyShared.CHANNELID, "").toString()); //开户渠道编号(工号)
String ifcode = IFCode.IFCODE20;
destroy();
@@ -466,167 +472,123 @@ public class IdentityInformationUploadActivity extends AppActivity {

//无感注册
private void registerNoninductive() {
HashMap<String, String> params = new HashMap<>();
if ("PERSONAL_USER".equals(getIntent().getStringExtra("userType")) || "1".equals(getIntent().getStringExtra("userType"))) {//个人
params.put("userType", "PERSONAL");
params.put("gender", "MAN".equals(gender) ? "MALE" : "FEMALE");
params.put("idNum", binding.text3.getText() + "");
params.put("idType", "101");
params.put("mobile", binding.text2.getText() + "");
params.put("userName", binding.text1.getText() + "");
params.put("certifyChannel", "BAIDUOCR");
params.put("address", binding.text4.getText() + "");
params.put("agentIdNum", binding.text7.getText() + "");
params.put("agentIdType", "101");
params.put("loginSource", Constants.LOGIN_SOURCE);
params.put("agentName", binding.text6.getText() + "");
params.put("agentAddress", binding.textAddress.getText() + "");
params.put("userIdImgUrl", imgUrl1);
} else {//单位
params.put("userName", binding.text10.getText().toString().trim());
params.put("idNum", binding.text12.getText().toString().trim());
params.put("address", binding.text17.getText().toString().trim());
params.put("idType", "203");
params.put("mobile", binding.text13.getText().toString().trim());
params.put("userType", "ENTERPRISE");
params.put("gender", "UNKOWN");
params.put("loginSource", Constants.LOGIN_SOURCE);
params.put("agentIdNum", binding.text14.getText().toString().trim());
params.put("agentIdType", "101");
params.put("certifyChannel", "BAIDUOCR");
params.put("agentName", binding.text16.getText().toString().trim());
params.put("agentAddress", binding.textDwAddress.getText() + "");
params.put("department", binding.text11.getText().toString().trim());
params.put("userIdImgUrl", imgUrl8);
}
MyRetrofit.newInstanceGZ(this, IFCode.IFCODE_REGISTER_NONINDUCTIVE, params, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
binding.nextStep.setEnabled(true);
if ("PERSONAL_USER".equals(getIntent().getStringExtra("userType")) || "1".equals(getIntent().getStringExtra("userType"))) {//个人
HashMap<String, Object> grParams = new HashMap<>();
grParams.put("customerIdVld", binding.text5.getText().toString().replace("-",""));//过期时间
grParams.put("emergencyFlag", "0");//应急车辆用户标识 0-非应急车辆用户 1-应急车辆用户
grParams.put("isAgent", isAgent);//是否本人办理
grParams.put("orderId", getIntent().getStringExtra("orderId"));//订单编号
grParams.put("orderSource", "SERVICE_HALL");//订单来源
grParams.put("proxyUrl", imgUrl5);//委托书图片地址
grParams.put("sceneType", "1");//用户使用场景
grParams.put("userAddress", binding.text4.getText() + "");//用户证件地址
grParams.put("userIdNum", binding.text3.getText() + "");//用户证件号码
grParams.put("userIdType", "101");//用户证件类型
grParams.put("userName", binding.text1.getText() + "");//开户人姓名
grParams.put("userPosImgUrl", imgUrl1);//用户证件正面照片地址
grParams.put("userNegImgUrl", imgUrl2);//用户证件反面照片地址
grParams.put("tel", binding.text2.getText() + "");//开户人手机号码
HashMap<String, Object> grParams = new HashMap<>();
grParams.put("customerIdVld", binding.text5.getText().toString().replace("-", ""));//过期时间
grParams.put("emergencyFlag", "0");//应急车辆用户标识 0-非应急车辆用户 1-应急车辆用户
grParams.put("isAgent", isAgent);//是否本人办理
grParams.put("orderId", getIntent().getStringExtra("orderId"));//订单编号
grParams.put("orderSource", "SERVICE_HALL");//订单来源
grParams.put("proxyUrl", imgUrl5);//委托书图片地址
grParams.put("sceneType", "1");//用户使用场景
grParams.put("userAddress", binding.text4.getText() + "");//用户证件地址
grParams.put("userIdNum", binding.text3.getText() + "");//用户证件号码
grParams.put("userIdType", "101");//用户证件类型
grParams.put("userName", binding.text1.getText() + "");//开户人姓名
grParams.put("userPosImgUrl", imgUrl1);//用户证件正面照片地址
grParams.put("userNegImgUrl", imgUrl2);//用户证件反面照片地址
grParams.put("tel", binding.text2.getText() + "");//开户人手机号码

grParams.put("agentIdNum", binding.text7.getText() + "");//经办人证件号码
grParams.put("agentIdType", "101");//经办人证件类型
grParams.put("agentIdVld", binding.text8.getText().toString().replace("-",""));//经办人证件有效期
grParams.put("agentName", binding.text6.getText() + "");//经办人姓名
grParams.put("agentAddress", binding.textAddress.getText() + "");//经办人姓名
grParams.put("agentPosImgUrl", imgUrl3);//经办人正面图片地址
grParams.put("agentNegImgUrl", imgUrl4);//经办人反面图片地址
grParams.put("agentTel", binding.text9.getText() + "");//经办人电话
String ifcode = IFCode.IFCODE20;
destroy();
binding.nextStep.setEnabled(false);
//提交个人信息或更新用户信息
MyRetrofit.newInstanceGZ(getActivity(), ifcode, grParams, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
binding.nextStep.setEnabled(true);
LiveEventBus.get("homeOneUpdateData").post("");
if (getIntent().getBooleanExtra("start", false)) {
LiveEventBus.get("credentialsUpdateData").post("更新首页信息内容");
} else {
Intent intent = new Intent();
intent.putExtra("vehiclePlate", getIntent().getStringExtra("vehiclePlate")); //车牌号
intent.putExtra("orderId", getIntent().getStringExtra("orderId")); //车牌号
intent.putExtra("vehiclePlateColor", getIntent().getStringExtra("vehiclePlateColor")); //车牌颜色
intent.putExtra("type", getIntent().getStringExtra("type"));//车辆类型 2货车 1客车
intent.putExtra("isValueCard", getIntent().getStringExtra("isValueCard"));
intent.putExtra("id", getIntent().getStringExtra("id"));
intent.putExtra("bizContent", getIntent().getStringExtra("bizContent"));
intent.putExtra("userType", getIntent().getStringExtra("userType"));
intent.setClass(IdentityInformationUploadActivity.this, VehicleInformationActivity.class);
startActivity(intent);
}
finish();
}
grParams.put("agentIdNum", binding.text7.getText() + "");//经办人证件号码
grParams.put("agentIdType", "101");//经办人证件类型
grParams.put("agentIdVld", binding.text8.getText().toString().replace("-", ""));//经办人证件有效期
grParams.put("agentName", binding.text6.getText() + "");//经办人姓名
grParams.put("agentAddress", binding.textAddress.getText() + "");//经办人姓名
grParams.put("agentPosImgUrl", imgUrl3);//经办人正面图片地址
grParams.put("agentNegImgUrl", imgUrl4);//经办人反面图片地址
grParams.put("agentTel", binding.text9.getText() + "");//经办人电话
String ifcode = IFCode.IFCODE20;
destroy();
binding.nextStep.setEnabled(false);
//提交个人信息或更新用户信息
MyRetrofit.newInstanceGZ(getActivity(), ifcode, grParams, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
binding.nextStep.setEnabled(true);
LiveEventBus.get("homeOneUpdateData").post("");
if (getIntent().getBooleanExtra("start", false)) {
LiveEventBus.get("credentialsUpdateData").post("更新首页信息内容");
} else {
Intent intent = new Intent();
intent.putExtra("vehiclePlate", getIntent().getStringExtra("vehiclePlate")); //车牌号
intent.putExtra("orderId", getIntent().getStringExtra("orderId")); //车牌号
intent.putExtra("vehiclePlateColor", getIntent().getStringExtra("vehiclePlateColor")); //车牌颜色
intent.putExtra("type", getIntent().getStringExtra("type"));//车辆类型 2货车 1客车
intent.putExtra("isValueCard", getIntent().getStringExtra("isValueCard"));
intent.putExtra("id", getIntent().getStringExtra("id"));
intent.putExtra("bizContent", getIntent().getStringExtra("bizContent"));
intent.putExtra("userType", getIntent().getStringExtra("userType"));
intent.setClass(IdentityInformationUploadActivity.this, VehicleInformationActivity.class);
startActivity(intent);
}
finish();
}

@Override
public void onError(Result resp) {
MyRetrofit.ReturnResult.super.onError(resp);
binding.nextStep.setEnabled(true);
}
});
} else {
HashMap<String, Object> dwParams = new HashMap<>();
@Override
public void onError(Result resp) {
MyRetrofit.ReturnResult.super.onError(resp);
binding.nextStep.setEnabled(true);
}
});
} else {
HashMap<String, Object> dwParams = new HashMap<>();
// dwParams.put("customerIdVld",binding.text5.getText() + "");//过期时间
dwParams.put("emergencyFlag", "0");//应急车辆用户标识 0-非应急车辆用户 1-应急车辆用户
dwParams.put("isAgent", true);//是否本人办理
dwParams.put("orderId", getIntent().getStringExtra("orderId"));//订单编号
dwParams.put("orderSource", "SERVICE_HALL");//订单来源
dwParams.put("proxyUrl", imgUrl9);//委托书图片地址
dwParams.put("sceneType", "1");//用户使用场景
dwParams.put("department", binding.text11.getText().toString().trim());//部门
dwParams.put("userAddress", binding.text17.getText().toString().trim());//用户证件地址
dwParams.put("userIdNum", binding.text12.getText().toString().trim());//用户证件号码
dwParams.put("userIdType", "203");//用户证件类型
dwParams.put("userName", binding.text10.getText().toString().trim());//开户人姓名
dwParams.put("userPosImgUrl", imgUrl8);//用户证件正面照片地址
dwParams.put("userNegImgUrl", imgUrl8);//用户证件反面照片地址
dwParams.put("emergencyFlag", "0");//应急车辆用户标识 0-非应急车辆用户 1-应急车辆用户
dwParams.put("isAgent", true);//是否本人办理
dwParams.put("orderId", getIntent().getStringExtra("orderId"));//订单编号
dwParams.put("orderSource", "SERVICE_HALL");//订单来源
dwParams.put("proxyUrl", imgUrl9);//委托书图片地址
dwParams.put("sceneType", "1");//用户使用场景
dwParams.put("department", binding.text11.getText().toString().trim());//部门
dwParams.put("userAddress", binding.text17.getText().toString().trim());//用户证件地址
dwParams.put("userIdNum", binding.text12.getText().toString().trim());//用户证件号码
dwParams.put("userIdType", "203");//用户证件类型
dwParams.put("userName", binding.text10.getText().toString().trim());//开户人姓名
dwParams.put("userPosImgUrl", imgUrl8);//用户证件正面照片地址
dwParams.put("userNegImgUrl", imgUrl8);//用户证件反面照片地址
// dwParams.put("userTel",binding.text2.getText() + "");//开户人手机号码

dwParams.put("agentIdNum", binding.text14.getText().toString().trim());//经办人证件号码
dwParams.put("agentIdType", "101");//经办人证件类型
dwParams.put("agentIdVld", binding.text15.getText().toString().replace("-",""));//经办人证件有效期
dwParams.put("agentName", binding.text16.getText().toString().trim());//经办人姓名
dwParams.put("agentAddress", binding.textDwAddress.getText().toString().trim());//经办人姓名
dwParams.put("agentPosImgUrl", imgUrl6);//经办人正面图片地址
dwParams.put("agentNegImgUrl", imgUrl7);//经办人反面图片地址
dwParams.put("tel", binding.text13.getText().toString().trim());//经办人电话
dwParams.put("agentTel", binding.text13.getText().toString().trim());//经办人电话
dwParams.put("agentGender", gender);//经办人性别
String ifcode = IFCode.IFCODE20;
MyRetrofit.newInstanceGZ(IdentityInformationUploadActivity.this, ifcode, dwParams, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
binding.nextStep.setEnabled(true);
LiveEventBus.get("homeOneUpdateData").post("");
if (getIntent().getBooleanExtra("start", false)) {
LiveEventBus.get("credentialsUpdateData").post("更新首页信息内容");
} else {
Intent intent = new Intent();
intent.putExtra("vehiclePlate", getIntent().getStringExtra("vehiclePlate")); //车牌号
intent.putExtra("orderId", getIntent().getStringExtra("orderId")); //车牌号
intent.putExtra("vehiclePlateColor", getIntent().getStringExtra("vehiclePlateColor")); //车牌颜色
intent.putExtra("type", getIntent().getStringExtra("type"));//车辆类型 1货车 0客车
intent.putExtra("isValueCard", getIntent().getStringExtra("isValueCard"));
intent.putExtra("id", getIntent().getStringExtra("id"));
intent.putExtra("bizContent", getIntent().getStringExtra("bizContent"));
intent.putExtra("userType", getIntent().getStringExtra("userType"));
intent.setClass(IdentityInformationUploadActivity.this, VehicleInformationActivity.class);
startActivity(intent);
}
finish();
}

@Override
public void onError(Result resp) {
MyRetrofit.ReturnResult.super.onError(resp);
binding.nextStep.setEnabled(true);
}
});
dwParams.put("agentIdNum", binding.text14.getText().toString().trim());//经办人证件号码
dwParams.put("agentIdType", "101");//经办人证件类型
dwParams.put("agentIdVld", binding.text15.getText().toString().replace("-", ""));//经办人证件有效期
dwParams.put("agentName", binding.text16.getText().toString().trim());//经办人姓名
dwParams.put("agentAddress", binding.textDwAddress.getText().toString().trim());//经办人姓名
dwParams.put("agentPosImgUrl", imgUrl6);//经办人正面图片地址
dwParams.put("agentNegImgUrl", imgUrl7);//经办人反面图片地址
dwParams.put("tel", binding.text13.getText().toString().trim());//经办人电话
dwParams.put("agentTel", binding.text13.getText().toString().trim());//经办人电话
dwParams.put("agentGender", gender);//经办人性别
String ifcode = IFCode.IFCODE20;
MyRetrofit.newInstanceGZ(IdentityInformationUploadActivity.this, ifcode, dwParams, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
binding.nextStep.setEnabled(true);
LiveEventBus.get("homeOneUpdateData").post("");
if (getIntent().getBooleanExtra("start", false)) {
LiveEventBus.get("credentialsUpdateData").post("更新首页信息内容");
} else {
Intent intent = new Intent();
intent.putExtra("vehiclePlate", getIntent().getStringExtra("vehiclePlate")); //车牌号
intent.putExtra("orderId", getIntent().getStringExtra("orderId")); //车牌号
intent.putExtra("vehiclePlateColor", getIntent().getStringExtra("vehiclePlateColor")); //车牌颜色
intent.putExtra("type", getIntent().getStringExtra("type"));//车辆类型 1货车 0客车
intent.putExtra("isValueCard", getIntent().getStringExtra("isValueCard"));
intent.putExtra("id", getIntent().getStringExtra("id"));
intent.putExtra("bizContent", getIntent().getStringExtra("bizContent"));
intent.putExtra("userType", getIntent().getStringExtra("userType"));
intent.setClass(IdentityInformationUploadActivity.this, VehicleInformationActivity.class);
startActivity(intent);
}
finish();
}
}

@Override
public void onError(Result resp) {
binding.nextStep.setEnabled(true);
}
});
@Override
public void onError(Result resp) {
MyRetrofit.ReturnResult.super.onError(resp);
binding.nextStep.setEnabled(true);
}
});
}
}

@Override
@@ -710,8 +672,8 @@ public class IdentityInformationUploadActivity extends AppActivity {
@SuppressLint({"NewApi", "LogNotTimber"})
@SingleClick
public void onImage(View view) {
if (view == binding.image5 || view == binding.image9||(view == binding.image3&&!ownerIdType.equals("101"))||
(view == binding.image4&&!ownerIdType.equals("101"))) {//委托书
if (view == binding.image5 || view == binding.image9 || (view == binding.image3 && !ownerIdType.equals("101")) ||
(view == binding.image4 && !ownerIdType.equals("101"))) {//委托书
String type = "";
file1 = FileUtil.getSaveFile(getApplication()).getAbsolutePath();
type = CameraActivity.CONTENT_TYPE_GENERAL;
@@ -723,11 +685,11 @@ public class IdentityInformationUploadActivity extends AppActivity {
GlideApp.with(getActivity()).load(url).into((ImageView) view);
if (view == binding.image5) {
imgUrl5 = url;
} else if (view == binding.image9){
} else if (view == binding.image9) {
imgUrl9 = url;
}else if (view == binding.image3){
} else if (view == binding.image3) {
imgUrl3 = url;
}else {
} else {
imgUrl4 = url;
}
}

+ 2
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/src/ui/activity/LoginActivity.java Näytä tiedosto

@@ -8,6 +8,7 @@ import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.util.Log;
@@ -249,6 +250,7 @@ public final class LoginActivity extends AppActivity implements KeyboardWatcher.
}

if (view == mTvLoginCode) {//登录

if ("手机号登录".equals(mTvLoginCode.getText().toString())) {
mTvLoginCode.setText("账号密码登录");
mLayoutCode.setVisibility(View.VISIBLE);

Loading…
Peruuta
Tallenna