|
|
@@ -92,16 +92,17 @@ public class IdentityInformationUploadActivity extends AppActivity { |
|
|
|
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent1) { |
|
|
|
//身份证正面 |
|
|
|
if (!TextUtils.isEmpty(bizContent1.getPositiveImageUrl())) { |
|
|
|
imgUrl1 = bizContent1.getPositiveImageUrl(); |
|
|
|
imgUrl1 = bizContent1.getPositiveImageUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
Log.e("imgURL1!!!!!!!",imgUrl1); |
|
|
|
GlideApp.with(getActivity()) |
|
|
|
.load(bizContent1.getPositiveImageUrl()) |
|
|
|
.load(imgUrl1) |
|
|
|
.into(binding.image1); |
|
|
|
} |
|
|
|
//身份证反面 |
|
|
|
if (!TextUtils.isEmpty(bizContent1.getNegativeImageUrl())) { |
|
|
|
imgUrl2 = bizContent1.getNegativeImageUrl(); |
|
|
|
imgUrl2 = bizContent1.getNegativeImageUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
GlideApp.with(getActivity()) |
|
|
|
.load(bizContent1.getNegativeImageUrl()) |
|
|
|
.load(imgUrl2) |
|
|
|
.into(binding.image2); |
|
|
|
} |
|
|
|
binding.text1.setText(bizContent1.getCustomerName()); //姓名 |
|
|
@@ -113,23 +114,23 @@ public class IdentityInformationUploadActivity extends AppActivity { |
|
|
|
onClick(binding.textTwo); //执行一次按钮二的操作 |
|
|
|
//经办人身份证正面 |
|
|
|
if (!TextUtils.isEmpty(bizContent1.getAgentPosImgUrl())) { |
|
|
|
imgUrl3 = bizContent1.getAgentPosImgUrl(); |
|
|
|
imgUrl3 = bizContent1.getAgentPosImgUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
GlideApp.with(getActivity()) |
|
|
|
.load(bizContent1.getAgentPosImgUrl()) |
|
|
|
.load(imgUrl3) |
|
|
|
.into(binding.image3); |
|
|
|
} |
|
|
|
//经办人身份证反面 |
|
|
|
if (!TextUtils.isEmpty(bizContent1.getAgentNegImgUrl())) { |
|
|
|
imgUrl4 = bizContent1.getAgentNegImgUrl(); |
|
|
|
imgUrl4 = bizContent1.getAgentNegImgUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
GlideApp.with(getActivity()) |
|
|
|
.load(bizContent1.getAgentNegImgUrl()) |
|
|
|
.load(imgUrl4) |
|
|
|
.into(binding.image4); |
|
|
|
} |
|
|
|
//委托书 |
|
|
|
if (!TextUtils.isEmpty(bizContent1.getProxyUrl())) { |
|
|
|
imgUrl5 = bizContent1.getProxyUrl(); |
|
|
|
imgUrl5 = bizContent1.getProxyUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
GlideApp.with(getActivity()) |
|
|
|
.load(bizContent1.getProxyUrl()) |
|
|
|
.load(imgUrl5) |
|
|
|
.into(binding.image5); |
|
|
|
} |
|
|
|
binding.text6.setText(bizContent1.getAgentName()); //经办人姓名 |
|
|
@@ -301,7 +302,7 @@ public class IdentityInformationUploadActivity extends AppActivity { |
|
|
|
FileUtils.getInstance(this).uploadGeneralImage(true, null, new FileUtils.OnUploadCallback() { |
|
|
|
@Override |
|
|
|
public void onSuccess(ResultBean.ProductInfo bizContent) { |
|
|
|
String url = bizContent.data.getUrl(); |
|
|
|
String url = bizContent.data.getUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
if (!FunHelper.isEmpty(url)) { |
|
|
|
GlideApp.with(getActivity()).load(url).into((ImageView) view); |
|
|
|
imgUrl5 = url; |
|
|
@@ -329,8 +330,9 @@ public class IdentityInformationUploadActivity extends AppActivity { |
|
|
|
} |
|
|
|
if (view == binding.image1) { |
|
|
|
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { |
|
|
|
imgUrl1 = bizContent.getImageUrl(); |
|
|
|
GlideApp.with(getActivity()).load(bizContent.getImageUrl()).into(binding.image1); |
|
|
|
imgUrl1 = bizContent.getImageUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
Log.e("imgUrl!!!!!!!!!!!!!!",imgUrl1); |
|
|
|
GlideApp.with(getActivity()).load(imgUrl1).into(binding.image1); |
|
|
|
} |
|
|
|
|
|
|
|
setText(binding.text1, bizContent.getName()); |
|
|
@@ -339,8 +341,9 @@ public class IdentityInformationUploadActivity extends AppActivity { |
|
|
|
|
|
|
|
} else if (view == binding.image3) { |
|
|
|
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { |
|
|
|
imgUrl3 = bizContent.getImageUrl(); |
|
|
|
GlideApp.with(getActivity()).load(bizContent.getImageUrl()).into(binding.image3); |
|
|
|
imgUrl3 = bizContent.getImageUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
Log.e("imgUrl!!!!!!!!!!!!!!",imgUrl3); |
|
|
|
GlideApp.with(getActivity()).load(imgUrl3).into(binding.image3); |
|
|
|
} |
|
|
|
|
|
|
|
setText(binding.text6, bizContent.getName()); |
|
|
@@ -348,7 +351,7 @@ public class IdentityInformationUploadActivity extends AppActivity { |
|
|
|
|
|
|
|
} else if (view == binding.image2) { |
|
|
|
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { |
|
|
|
imgUrl2 = bizContent.getImageUrl(); |
|
|
|
imgUrl2 = bizContent.getImageUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
GlideApp.with(getActivity()).load(imgUrl2).into(binding.image2); |
|
|
|
} |
|
|
|
|
|
|
@@ -360,8 +363,8 @@ public class IdentityInformationUploadActivity extends AppActivity { |
|
|
|
|
|
|
|
} else if (view == binding.image4) { |
|
|
|
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { |
|
|
|
imgUrl4 = bizContent.getImageUrl(); |
|
|
|
GlideApp.with(getActivity()).load(bizContent.getImageUrl()).into(binding.image4); |
|
|
|
imgUrl4 = bizContent.getImageUrl().replace("http://192.168.101.145:9000",MyRetrofit.Urls); |
|
|
|
GlideApp.with(getActivity()).load(imgUrl4).into(binding.image4); |
|
|
|
} |
|
|
|
|
|
|
|
//过期时间 |