@@ -91,18 +91,15 @@ | |||
tools:replace="android:allowBackup,android:supportsRtl,android:label" | |||
tools:targetApi="n"> | |||
<activity | |||
android:name=".LicensePlateOccupationInfoUpActivity" | |||
android:name=".project.ui.activity.after.LicensePlateOccupationInfoUpActivity" | |||
android:screenOrientation="portrait" | |||
android:exported="false"> | |||
<meta-data | |||
android:name="android.app.lib_name" | |||
android:value="" /> | |||
</activity> | |||
<activity | |||
android:name=".LicensePlateOccupationGuideActivity" | |||
android:name=".project.ui.activity.after.LicensePlateOccupationGuideActivity" | |||
android:screenOrientation="portrait" | |||
android:exported="false"> | |||
<meta-data | |||
android:name="android.app.lib_name" | |||
android:value="" /> | |||
</activity> | |||
<activity | |||
android:name=".project.ui.activity.after.changephone.ChangePhoneStep3Activity" |
@@ -132,7 +132,7 @@ public class IFCode { | |||
public static final String IFCODE82 = "iaw/api/afterSale/cardObuLoss/loss"; //卡签挂失解挂 | |||
public static final String IFCODE90 = "iaw/vfj/getVehInfoClear";//"iaw/ass/issueBase/obuFileDataDecrypt"; //VFJ-OBU系统信息在线解密 | |||
public static final String IFCODE_QUERYCARDANDOBU = "iaw/ass/query/cardObuQuery"; //卡签信息查询 | |||
public static final String IFCODE91 = "iaw/ocr/businessLicenseOcr"; //OCR识别(营业执照) id_back: 身份证背页 id_front: 身份证前页 bank_card:银行卡 business_license:营业执照 | |||
public static final String IFCODE91 = "iaw/ocr/businessLicenseOcrNew";//"iaw/ocr/businessLicenseOcr"; //OCR识别(营业执照) id_back: 身份证背页 id_front: 身份证前页 bank_card:银行卡 business_license:营业执照 | |||
public static final String IFCODE810 = "iaw/cardCharge/recharge"; //储值卡充值-申请 | |||
public static final String IFCODE811 = "iaw/cardCharge/wxPayment"; //储值卡充值-获取支付(充值申请) |
@@ -385,6 +385,17 @@ public class ResultBean<T> { | |||
public boolean hasCorporateAccount; | |||
private int isTransfer; | |||
public int transfer; | |||
public String adress; | |||
public String unitName; | |||
public String approvalDate; | |||
public String legalPerson; | |||
public String lifespan; | |||
public String reCapital; | |||
public String regAuthority; | |||
public String scope; | |||
public String screditCode; | |||
public String setUpDate; | |||
public String startEffectiveDate; | |||
public String department; | |||
public String wheelsCount; | |||
public String collectionType; |
@@ -22,7 +22,7 @@ public class CommonDealSuccessActivity extends AppActivity { | |||
* 0-注销成功 1-欠费补缴 2-余额补领 3-Pin码锁解锁成功 4-更换ETC设备成功 5-停用成功 | |||
* 6-启用成功 7-卡签续期 8-储值卡转记账卡 9-设备升级 10-过户成功 11-用户信息变更成功 | |||
* 12- 单位信息变更成功 13-车辆用户信息变更成功 14-增补OBU成功 15-补卡额 16-余额补领单生成 | |||
* 17- 注销退费申请成功 18-退款成功 19-退款处理中 23-更改手机号 | |||
* 17- 注销退费申请成功 18-退款成功 19-退款处理中 23-更改手机号 24解除车牌占用 | |||
*/ | |||
private String from; | |||
@@ -132,6 +132,9 @@ public class CommonDealSuccessActivity extends AppActivity { | |||
}else if (from.equals("23")){ | |||
binding.tvHint.setText("ETC手机号变更申请提交成功"); | |||
setTitle("ETC手机号变更"); | |||
}else if (from.equals("24")){ | |||
binding.tvHint.setText("提交成功,预计1-3日完成资料审核"); | |||
setTitle("解除车牌占用"); | |||
} | |||
binding.btnHome.setOnClickListener(new View.OnClickListener() { | |||
@@ -141,11 +144,12 @@ public class CommonDealSuccessActivity extends AppActivity { | |||
Bundle bundle = new Bundle(); | |||
bundle.putString("id", id); | |||
jumpToPage(OrderDetailsActivity.class,bundle); | |||
}else { | |||
Intent intent = new Intent(); | |||
intent.setClass(CommonDealSuccessActivity.this, MainActivity.class); | |||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |||
startActivity(intent); | |||
} | |||
Intent intent = new Intent(); | |||
intent.setClass(CommonDealSuccessActivity.this, MainActivity.class); | |||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |||
startActivity(intent); | |||
} | |||
}); | |||
} |
@@ -2,29 +2,68 @@ package com.huntersun.vkyes.etcopencard.project.ui.activity.after; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.annotation.SuppressLint; | |||
import android.content.Intent; | |||
import android.os.Bundle; | |||
import android.text.TextUtils; | |||
import android.util.Log; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.RadioGroup; | |||
import com.alibaba.fastjson.JSON; | |||
import com.google.gson.internal.LinkedTreeMap; | |||
import com.huntersun.vky.obublelib.util.ToastUtil; | |||
import com.huntersun.vkyes.etcopencard.R; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityLicensePlateOccupationInfoUpBinding; | |||
import com.huntersun.vkyes.etcopencard.project.api.MyRetrofit; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.EnumBean; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.IFCode; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | |||
import com.huntersun.vkyes.etcopencard.project.dialog.EnumListDialog; | |||
import com.huntersun.vkyes.etcopencard.project.ocr.CameraActivity; | |||
import com.huntersun.vkyes.etcopencard.project.ocr.FileUtil; | |||
import com.huntersun.vkyes.etcopencard.project.tool.MyShared; | |||
import com.huntersun.vkyes.etcopencard.project.ui.activity.FillOutMessage; | |||
import com.huntersun.vkyes.etcopencard.project.utils.FileUtils; | |||
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | |||
import com.huntersun.vkyes.etcopencard.project.utils.ImgConfig; | |||
import com.huntersun.vkyes.etcopencard.src.aop.SingleClick; | |||
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | |||
import com.huntersun.vkyes.etcopencard.src.http.glide.GlideApp; | |||
import com.parkingwang.keyboard.OnInputChangedListener; | |||
import com.parkingwang.keyboard.PopupKeyboard; | |||
import java.io.File; | |||
import java.text.ParseException; | |||
import java.text.SimpleDateFormat; | |||
import java.util.Date; | |||
import java.util.HashMap; | |||
/** | |||
* | |||
* @ClassName: LicensePlateOccupationInfoUpActivity | |||
* @Description: 解除车牌占用信息上传页面 | |||
* @Author: lujin | |||
* @CreateDate: 2025/4/10 9:17 | |||
*/ | |||
* @ClassName: LicensePlateOccupationInfoUpActivity | |||
* @Description: 解除车牌占用信息上传页面 | |||
* @Author: lujin | |||
* @CreateDate: 2025/4/10 9:17 | |||
*/ | |||
public class LicensePlateOccupationInfoUpActivity extends AppActivity { | |||
private ActivityLicensePlateOccupationInfoUpBinding binding; | |||
private int userType = 1;//1个人 2单位 | |||
private PopupKeyboard mPopupKeyboard; | |||
private int isSelf = 1;//1本人 2非本人 | |||
private String imgUrl1 = "";//办理人身份证正面 | |||
private String imgUrl2 = "";//办理人身份证反面 | |||
private String imgUrl3 = "";//行驶证正页 | |||
private String imgUrl4 = "";//行驶证副页 | |||
private String imgUrl5 = "";//单位营业执照 | |||
private String imgUrl6 = "";//单位授权书 | |||
private String imgUrl7 = "";//车主身份证正面(非本人填写) | |||
private String imgUrl8 = "";//车主身份证反面(非本人填写) | |||
private String imgUrl9 = "";//授权书(非本人填写) | |||
private String vehicleColor = "0"; | |||
private String address = "";//营业执照地址 | |||
private String file1; | |||
@Override | |||
protected View getLayoutView() { | |||
@@ -34,75 +73,285 @@ public class LicensePlateOccupationInfoUpActivity extends AppActivity { | |||
@Override | |||
protected void initView() { | |||
binding.tvPlateColor.setText("蓝色"); | |||
initClick(); | |||
initKeyBoard(); | |||
} | |||
private void initKeyBoard() { | |||
// 创建弹出键盘 | |||
mPopupKeyboard = new PopupKeyboard(this, LicensePlateOccupationInfoUpActivity.this); | |||
// 弹出键盘内部包含一个KeyboardView,在此绑定输入两者关联。 | |||
mPopupKeyboard.attach(binding.inputView, this); | |||
binding.inputView.set8thVisibility(true); | |||
//点击按钮监听 | |||
binding.inputView.addOnFieldViewSelectedListener(index -> { | |||
if (index == 7) { | |||
if (binding.quote.getVisibility() == View.VISIBLE) { | |||
binding.quote.setVisibility(View.GONE); | |||
} else { | |||
binding.quote.setVisibility(View.VISIBLE); | |||
post(() -> { | |||
mPopupKeyboard.dismiss(LicensePlateOccupationInfoUpActivity.this); | |||
//删除最后一位字符 | |||
if (!TextUtils.isEmpty(binding.inputView.getEndText())) { | |||
binding.inputView.removeLastCharOfNumber(); | |||
} | |||
}); | |||
private void initClick() { | |||
binding.image1.setOnClickListener(this::onImage); | |||
binding.image2.setOnClickListener(this::onImage); | |||
binding.image3.setOnClickListener(this::onImage); | |||
binding.image4.setOnClickListener(this::onImage); | |||
binding.image5.setOnClickListener(this::onImage); | |||
binding.image6.setOnClickListener(this::onImage); | |||
binding.image7.setOnClickListener(this::onImage); | |||
binding.image8.setOnClickListener(this::onImage); | |||
binding.image9.setOnClickListener(this::onImage); | |||
binding.rgIsCompany.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { | |||
@Override | |||
public void onCheckedChanged(RadioGroup radioGroup, int i) { | |||
switch (i) { | |||
case R.id.rb_gr: | |||
binding.lyDw.setVisibility(View.GONE); | |||
binding.lyIsSelf.setVisibility(View.VISIBLE); | |||
binding.rgIsSelf.check(R.id.rb_1); | |||
userType = 1; | |||
break; | |||
case R.id.rb_dw: | |||
binding.lyDw.setVisibility(View.VISIBLE); | |||
binding.lyIsSelf.setVisibility(View.GONE); | |||
binding.lyFbr.setVisibility(View.GONE); | |||
isSelf = 2; | |||
userType = 2; | |||
break; | |||
} | |||
} | |||
}); | |||
//添加输入更改侦听器 | |||
mPopupKeyboard.getController().addOnInputChangedListener(new OnInputChangedListener() { | |||
binding.rgIsSelf.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { | |||
@Override | |||
public void onChanged(String number, boolean isCompleted) { | |||
// if (isCompleted || number.length() >= 7) { | |||
// Log.e("11111","222222222"); | |||
// if (binding.inputView.isLastFieldViewSelected()){ | |||
// mPopupKeyboard.dismiss(FillOutMessage.this); | |||
// } | |||
// } | |||
public void onCheckedChanged(RadioGroup radioGroup, int i) { | |||
switch (i) { | |||
case R.id.rb_1: | |||
binding.lyFbr.setVisibility(View.GONE); | |||
isSelf = 1; | |||
break; | |||
case R.id.rb_2: | |||
binding.lyFbr.setVisibility(View.VISIBLE); | |||
isSelf = 2; | |||
break; | |||
} | |||
} | |||
}); | |||
binding.btnSubmit.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
public void onCompleted(String number, boolean isAutoCompleted) { | |||
mPopupKeyboard.dismiss(LicensePlateOccupationInfoUpActivity.this); | |||
binding.inputView.reset(); //brand | |||
public void onClick(View view) { | |||
submitInfo(); | |||
} | |||
}); | |||
} | |||
private void initClick() { | |||
binding.tvDwCar.setOnClickListener(new View.OnClickListener() { | |||
binding.lyChooseColor.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
public void onClick(View view) { | |||
binding.tvDwCar.setEnabled(false); | |||
binding.tvOwnerCar.setEnabled(true); | |||
binding.lyDw.setVisibility(View.VISIBLE); | |||
userType = 2; | |||
EnumListDialog.showEnumListSingleDialog(LicensePlateOccupationInfoUpActivity.this, EnumBean.VEHICLE_COLOR, new EnumListDialog.OnResultCallback() { | |||
@Override | |||
public void onResultCallback(String code, String name) { | |||
binding.tvPlateColor.setText(name); | |||
vehicleColor = code; | |||
} | |||
}); | |||
} | |||
}); | |||
binding.tvOwnerCar.setOnClickListener(new View.OnClickListener() { | |||
} | |||
private void submitInfo() { | |||
if (isSky(imgUrl1, "申请人身份证正面", binding.image1) || | |||
isSky(imgUrl2, "申请人身份证反面", binding.image2) || | |||
isSky(binding.etApplyName.getText().toString().trim(), "申请人姓名", binding.etApplyName) || | |||
isSky(binding.etApplyIdNum.getText().toString().trim(), "申请人证件号", binding.etApplyIdNum) || | |||
isSky(binding.etPhone.getText().toString().trim(), "手机号码", binding.etPhone) || | |||
isSky(imgUrl3, "行驶证正页", binding.image3) || | |||
isSky(imgUrl4, "行驶证副页", binding.image4) || | |||
isSky(binding.etPlateNum.getText().toString().trim(), "车牌号码", binding.etPlateNum) || | |||
isSky(binding.etPlateOwnerName.getText().toString().trim(), "车辆所有人", binding.etPlateOwnerName)) { | |||
return; | |||
} | |||
if (userType == 1) {//个人 | |||
if (isSelf == 2) {//非本人 | |||
if (isSky(imgUrl7, "车主身份证正面", binding.image7) || | |||
isSky(imgUrl8, "车主身份证反面", binding.image8) || | |||
isSky(imgUrl9, "授权委托书", binding.image9) || | |||
isSky(binding.etOwnerName.getText().toString().trim(), "车主姓名", binding.etOwnerName) || | |||
isSky(binding.etOwnerIdNum.getText().toString().trim(), "车主证件号码", binding.etOwnerIdNum)) { | |||
return; | |||
} | |||
} | |||
} else {//单位 | |||
if (isSky(imgUrl5, "营业执照", binding.image5) || | |||
isSky(imgUrl6, "单位授权书", binding.image6) || | |||
isSky(binding.etCompanyName.getText().toString().trim(), "单位名称", binding.etCompanyName) || | |||
isSky(binding.etCompanyIdNum.getText().toString().trim(), "单位证件号码", binding.etCompanyIdNum)) { | |||
return; | |||
} | |||
} | |||
HashMap<String, Object> params = new HashMap<>(); | |||
params.put("applyType", userType); | |||
if (userType == 1) { | |||
if (isSelf == 2) { | |||
params.put("personBackUrl", imgUrl8); | |||
params.put("personFrontUrl", imgUrl7); | |||
params.put("personIdNum", binding.etOwnerIdNum.getText().toString().trim()); | |||
params.put("personName", binding.etOwnerName.getText().toString().trim()); | |||
params.put("authorizeImagesUrl1", imgUrl9); | |||
} | |||
} else { | |||
params.put("authorizeImagesUrl1", imgUrl6); | |||
params.put("orgIdClass", "203"); | |||
params.put("orgImagesUrl1", imgUrl5); | |||
params.put("orgName", binding.etCompanyName.getText().toString().trim()); | |||
} | |||
params.put("customerIdNum", binding.etApplyIdNum.getText().toString().trim()); | |||
params.put("isSelf", isSelf); | |||
params.put("mobile",binding.etPhone.getText().toString().trim()); | |||
params.put("name",binding.etApplyName.getText().toString().trim()); | |||
params.put("userImagesUrl1",imgUrl1); | |||
params.put("userImagesUrl2",imgUrl2); | |||
params.put("vehicleImagesUrl1",imgUrl3); | |||
params.put("vehicleImagesUrl2",imgUrl4); | |||
params.put("vehicleOwnerName",binding.etPlateOwnerName.getText().toString().trim()); | |||
params.put("vehiclePlate",binding.etPlateNum.getText().toString().trim()); | |||
params.put("vehiclePlateColor",vehicleColor); | |||
MyRetrofit.newInstanceGZ(this, IFCode.IFCODE_RELEASEPLATE, params, new MyRetrofit.ReturnResult() { | |||
@Override | |||
public void onClick(View view) { | |||
binding.lyDw.setVisibility(View.GONE); | |||
binding.tvOwnerCar.setEnabled(false); | |||
binding.tvDwCar.setEnabled(true); | |||
userType = 1; | |||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||
Intent intent = new Intent(); | |||
intent.setClass(LicensePlateOccupationInfoUpActivity.this,CommonDealSuccessActivity.class); | |||
startActivity(intent); | |||
finish(); | |||
} | |||
}); | |||
} | |||
} | |||
@SuppressLint({"NewApi", "LogNotTimber"}) | |||
@SingleClick | |||
public void onImage(View view) { | |||
if (view == binding.image6 || view == binding.image9) {//委托书 | |||
String type = ""; | |||
file1 = FileUtil.getSaveFile(getApplication()).getAbsolutePath(); | |||
type = CameraActivity.CONTENT_TYPE_GENERAL; | |||
FileUtils.getInstance(this).uploadGeneralImageNew(true, type, file1, null, new FileUtils.OnUploadCallback() { | |||
@Override | |||
public void onSuccess(ResultBean.ProductInfo bizContent) { | |||
String url = ImgConfig.ImgIPChange("default-bucket/" + bizContent.data.getOssFilePath()); | |||
if (!FunHelper.isEmpty(url)) { | |||
GlideApp.with(getActivity()).load(url).into((ImageView) view); | |||
if (view == binding.image6) { | |||
imgUrl6 = url; | |||
} else { | |||
imgUrl9 = url; | |||
} | |||
} | |||
} | |||
}); | |||
} else if (view == binding.image5) {//营业执照91 | |||
String type = CameraActivity.CONTENT_TYPE_GENERAL; | |||
file1 = FileUtil.getSaveFile(getApplication()).getAbsolutePath(); | |||
HashMap<String, String> params = new HashMap<>(); | |||
params.put("source", "1"); | |||
// params.put("agencyId", "52010106004"); | |||
params.put("agencyId", MyShared.getInstance().get(MyShared.AGENCYID, "").toString()); | |||
params.put("fileName", System.currentTimeMillis() + ".png"); | |||
FileUtils.getInstance(this).uploadOcrBusinessLicenseNew(true, type, file1, params, new FileUtils.OnOcrUploadCallback2() { | |||
@Override | |||
public void onSuccess(ResultBean.BizContent bizContent, File file) { | |||
@Override | |||
} | |||
@Override | |||
public void onSuccessWithUrl(ResultBean.BizContent bizContent, File file, String url) { | |||
binding.etCompanyName.setText(bizContent.unitName); | |||
binding.etCompanyIdNum.setText(bizContent.screditCode); | |||
imgUrl5 = ImgConfig.ImgIPChange(url); | |||
GlideApp.with(getActivity()).load(imgUrl5).into(binding.image5); | |||
} | |||
}); | |||
} else if (view == binding.image3 || view == binding.image4) {//行驶证识别 | |||
String type = ""; | |||
file1 = FileUtil.getSaveFile(getApplication()).getAbsolutePath(); | |||
if (view == binding.image3) { | |||
type = CameraActivity.CONTENT_TYPE_BANK_CARD; | |||
} else { | |||
type = CameraActivity.CONTENT_TYPE_BANK_BACK; | |||
} | |||
HashMap<String, String> params = new HashMap<>(); | |||
params.put("filename", "CSMSN_OCR_VEHICLE_REQ_"); | |||
params.put("source", "1"); | |||
// params.put("agencyId", "52010106004"); | |||
params.put("agencyId", MyShared.getInstance().get(MyShared.AGENCYID, "").toString()); | |||
params.put("imageType", view == binding.image3 ? "1" : "2");//1正,2反 | |||
params.put("fileName", System.currentTimeMillis() + ".png"); | |||
FileUtils.getInstance(this).uploadOcrDrivingLicenseNew(true, type, file1, params, new FileUtils.OnOcrUploadCallback() { | |||
@Override | |||
public void onSuccess(ResultBean.BizContent bizContent1) { | |||
//行驶证主页 | |||
if (view == binding.image3) { | |||
binding.etPlateNum.setText(bizContent1.getPlate_a()); | |||
binding.etPlateOwnerName.setText(bizContent1.getMan()); | |||
imgUrl3 = ImgConfig.ImgIPChange(bizContent1.getImageUrl()); | |||
GlideApp.with(getActivity()).load(imgUrl3).into(binding.image3); | |||
} else { | |||
imgUrl4 = ImgConfig.ImgIPChange(bizContent1.getImageUrl()); | |||
GlideApp.with(getActivity()).load(imgUrl4).into(binding.image4); | |||
} | |||
} | |||
}); | |||
} else {//身份证件照 | |||
String str = ""; | |||
String type = ""; | |||
file1 = FileUtil.getSaveFile(getApplication()).getAbsolutePath(); | |||
if (view == binding.image1 || view == binding.image7) { | |||
str = "1"; | |||
type = CameraActivity.CONTENT_TYPE_ID_CARD_FRONT; | |||
} else if (view == binding.image2 || view == binding.image8) { | |||
str = "2"; | |||
type = CameraActivity.CONTENT_TYPE_ID_CARD_BACK; | |||
} | |||
HashMap<String, String> params = new HashMap<>(); | |||
params.put("source", "1"); | |||
// params.put("agencyId", "52010106004"); | |||
params.put("agencyId", MyShared.getInstance().get(MyShared.AGENCYID, "").toString()); | |||
params.put("fileName", System.currentTimeMillis() + ".png"); | |||
params.put("imageType", str);//1正,2反 | |||
String finalStr = str; | |||
FileUtils.getInstance(this).uploadOcrIDCardNew(true, type, file1, params, new FileUtils.OnOcrUploadCallback() { | |||
@Override | |||
public void onSuccess(ResultBean.BizContent bizContent) { | |||
update15(bizContent, view); | |||
} | |||
}); | |||
} | |||
} | |||
private void update15(ResultBean.BizContent bizContent, View view) { | |||
if (view == binding.image1) { | |||
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { | |||
imgUrl1 = ImgConfig.ImgIPChange(bizContent.getImageUrl()); | |||
GlideApp.with(getActivity()).load(imgUrl1).into(binding.image1); | |||
} | |||
binding.etApplyName.setText(bizContent.getName()); | |||
binding.etApplyIdNum.setText(bizContent.getIdno()); | |||
} else if (view == binding.image7) { | |||
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { | |||
imgUrl7 = ImgConfig.ImgIPChange(bizContent.getImageUrl()); | |||
GlideApp.with(getActivity()).load(imgUrl7).into(binding.image7); | |||
} | |||
binding.etOwnerName.setText(bizContent.getName()); | |||
binding.etOwnerIdNum.setText(bizContent.getIdno()); | |||
} else if (view == binding.image2) { | |||
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { | |||
imgUrl2 = ImgConfig.ImgIPChange(bizContent.getImageUrl()); | |||
GlideApp.with(getActivity()).load(imgUrl2).into(binding.image2); | |||
} | |||
} else if (view == binding.image8) { | |||
if (!TextUtils.isEmpty(bizContent.getImageUrl())) { | |||
imgUrl8 = ImgConfig.ImgIPChange(bizContent.getImageUrl()); | |||
GlideApp.with(getActivity()).load(imgUrl8).into(binding.image8); | |||
} | |||
} | |||
} | |||
@Override | |||
protected void initData() { | |||
} |
@@ -3,9 +3,11 @@ package com.huntersun.vkyes.etcopencard.project.ui.activity.order; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import com.huntersun.vky.obublelib.util.ToastUtil; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityApplyExGoodsStep1Binding; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityApplyReturnGoodsStep1Binding; | |||
import com.huntersun.vkyes.etcopencard.project.api.MyRetrofit; | |||
import com.huntersun.vkyes.etcopencard.project.api.Result; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.DotBean; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.EnumBean; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.IFCode; | |||
@@ -139,11 +141,16 @@ public class ApplyReturnGoodsStep1Activity extends AppActivity { | |||
jumpToPage(ApplyReturnGoodsStep2Activity.class,bundle); | |||
finish(); | |||
} | |||
@Override | |||
public void onError() { | |||
MyRetrofit.ReturnResult.super.onError(); | |||
public void onError(Result resp) { | |||
ToastUtil.showS(ApplyReturnGoodsStep1Activity.this,resp.errorMsg); | |||
hideDialog(); | |||
} | |||
@Override | |||
public void onError() { | |||
} | |||
}); | |||
} | |||
@@ -490,7 +490,7 @@ | |||
android:orientation="vertical"> | |||
<com.ruffian.library.widget.RTextView | |||
android:layout_width="match_parent" | |||
android:layout_height="@dimen/dp_30" | |||
android:layout_height="@dimen/dp_40" | |||
android:text="解除车牌占用申请" | |||
style="@style/whiteTextStyle15" | |||
app:background_normal="@color/green01" |
@@ -42,249 +42,53 @@ | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:gravity="center" | |||
android:layout_marginTop="@dimen/dp_15" | |||
android:gravity="center_vertical" | |||
android:orientation="horizontal"> | |||
<com.ruffian.library.widget.RTextView | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
app:background_normal="@color/white" | |||
app:background_unable="@color/green01" | |||
app:text_color_normal="@color/green01" | |||
app:text_color_unable="@color/white" | |||
app:border_color_normal="@color/green01" | |||
app:border_width_normal="@dimen/dp_1" | |||
android:text="个人车辆" | |||
android:id="@+id/tv_owner_car" | |||
android:enabled="false" | |||
app:corner_radius_top_left="@dimen/dp_15" | |||
app:corner_radius_bottom_left="@dimen/dp_15" | |||
android:paddingVertical="8dp" | |||
android:paddingHorizontal="@dimen/dp_15"/> | |||
<com.ruffian.library.widget.RTextView | |||
android:layout_width="wrap_content" | |||
android:text="车辆类型:"/> | |||
<RadioGroup | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
app:background_normal="@color/white" | |||
app:background_unable="@color/green01" | |||
app:text_color_normal="@color/green01" | |||
app:text_color_unable="@color/white" | |||
app:border_color_normal="@color/green01" | |||
app:border_width_normal="@dimen/dp_1" | |||
android:text="单位车辆" | |||
android:id="@+id/tv_dw_car" | |||
app:corner_radius_top_right="@dimen/dp_15" | |||
app:corner_radius_bottom_right="@dimen/dp_15" | |||
android:paddingVertical="8dp" | |||
android:paddingHorizontal="@dimen/dp_15"/> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/LLInputView" | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginTop="@dimen/dp_15" | |||
android:gravity="center_vertical" | |||
android:visibility="visible"> | |||
<FrameLayout style="@style/AutoWrap"> | |||
<com.parkingwang.keyboard.view.InputView | |||
android:id="@+id/inputView" | |||
android:layout_width="match_parent" | |||
android:layout_height="@dimen/dp_42" | |||
app:pwkInputTextSize="@dimen/sp_16" /> | |||
<LinearLayout | |||
android:id="@+id/quote" | |||
android:layout_width="@dimen/dp_35" | |||
android:layout_height="match_parent" | |||
android:layout_gravity="right" | |||
android:background="@drawable/pwk_input_item_border_gray4" | |||
android:gravity="center" | |||
android:orientation="vertical"> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="+" | |||
android:textColor="#10D09D" /> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_marginTop="@dimen/dp_3" | |||
android:text="新能源" | |||
android:textColor="#10D09D" | |||
android:textSize="@dimen/sp_8" /> | |||
</LinearLayout> | |||
</FrameLayout> | |||
android:checkedButton="@id/rb_gr" | |||
android:id="@+id/rg_isCompany" | |||
android:orientation="horizontal"> | |||
<RadioButton | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="个人车辆" | |||
android:layout_weight="1" | |||
android:id="@+id/rb_gr"/> | |||
<RadioButton | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="单位车辆" | |||
android:layout_weight="1" | |||
android:id="@+id/rb_dw"/> | |||
</RadioGroup> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/LLColorLayout" | |||
android:id="@+id/ly_isSelf" | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:layout_marginTop="@dimen/dp_10" | |||
android:animateLayoutChanges="true" | |||
android:animationCache="true" | |||
android:orientation="vertical" | |||
android:orientation="horizontal" | |||
android:gravity="center_vertical" | |||
android:visibility="visible"> | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:gravity="center" | |||
android:orientation="horizontal"> | |||
<LinearLayout | |||
android:id="@+id/layout1" | |||
android:layout_width="0dp" | |||
android:layout_height="@dimen/dp_36" | |||
android:layout_weight="1" | |||
android:background="@drawable/item_home_frame4" | |||
android:gravity="center" | |||
android:paddingHorizontal="@dimen/dp_4"> | |||
<Button | |||
android:id="@+id/btnBlue" | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@drawable/plate1" | |||
android:text="蓝牌" | |||
android:textColor="@color/white" | |||
android:textSize="13sp" | |||
tools:ignore="ButtonStyle" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/layout2" | |||
android:layout_width="0dp" | |||
android:layout_height="@dimen/dp_36" | |||
android:layout_weight="1" | |||
android:gravity="center" | |||
android:paddingHorizontal="@dimen/dp_4"> | |||
<Button | |||
android:id="@+id/btnYellow" | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@drawable/plate2" | |||
android:text="黄牌" | |||
android:textColor="@color/white" | |||
android:textSize="13sp" | |||
tools:ignore="ButtonStyle" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/layout6" | |||
android:layout_width="0dp" | |||
android:layout_height="@dimen/dp_36" | |||
android:layout_weight="1" | |||
android:gravity="center" | |||
android:paddingHorizontal="@dimen/dp_4"> | |||
<Button | |||
android:id="@+id/btnGreen" | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@drawable/plate6" | |||
android:text="渐变绿牌" | |||
android:textColor="@color/white" | |||
android:textSize="13sp" | |||
tools:ignore="ButtonStyle" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_marginTop="@dimen/dp_10" | |||
android:gravity="center" | |||
android:orientation="horizontal"> | |||
<LinearLayout | |||
android:id="@+id/layout4" | |||
android:layout_width="0dp" | |||
android:layout_height="@dimen/dp_36" | |||
android:layout_weight="1" | |||
android:gravity="center" | |||
android:paddingHorizontal="@dimen/dp_4"> | |||
<Button | |||
android:id="@+id/btnWhite" | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@drawable/plate4" | |||
android:text="白牌" | |||
android:textColor="#666666" | |||
android:textSize="13sp" | |||
tools:ignore="ButtonStyle" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/layout3" | |||
android:layout_width="0dp" | |||
android:layout_height="@dimen/dp_36" | |||
android:layout_weight="1" | |||
android:gravity="center" | |||
android:paddingHorizontal="@dimen/dp_4"> | |||
<Button | |||
android:id="@+id/btnBlack" | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@drawable/plate3" | |||
android:text="黑牌" | |||
android:textColor="@color/white" | |||
android:textSize="13sp" | |||
tools:ignore="ButtonStyle" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/layout5" | |||
android:layout_width="0dp" | |||
android:layout_height="@dimen/dp_36" | |||
android:layout_weight="1" | |||
android:gravity="center" | |||
android:paddingHorizontal="@dimen/dp_4"> | |||
<Button | |||
android:id="@+id/btnYellowGreen" | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@drawable/plate5" | |||
android:text="黄绿双拼" | |||
android:textColor="@color/white" | |||
android:textSize="13sp" | |||
tools:ignore="ButtonStyle" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="34dp" | |||
android:layout_marginTop="@dimen/dp_15" | |||
android:gravity="center_vertical" | |||
android:orientation="horizontal"> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="手机号码:" | |||
style="@style/blackTextStyle14"/> | |||
<EditText | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:background="@color/white" | |||
android:hint="请输入手机号码" | |||
style="@style/blackTextStyle14" | |||
android:gravity="right"/> | |||
</LinearLayout> | |||
android:text="是否本人:"/> | |||
<RadioGroup | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:checkedButton="@id/rb_1" | |||
android:id="@+id/rg_isSelf" | |||
android:orientation="horizontal"> | |||
<RadioButton | |||
android:layout_width="wrap_content" | |||
@@ -432,6 +236,28 @@ | |||
style="@style/blackTextStyle14" | |||
android:gravity="right"/> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="34dp" | |||
android:layout_marginTop="@dimen/dp_15" | |||
android:gravity="center_vertical" | |||
android:orientation="horizontal"> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="手机号码:" | |||
style="@style/blackTextStyle14"/> | |||
<EditText | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:background="@color/white" | |||
android:hint="请输入手机号码" | |||
android:id="@+id/et_phone" | |||
android:inputType="number" | |||
style="@style/blackTextStyle14" | |||
android:gravity="right"/> | |||
</LinearLayout> | |||
</com.ruffian.library.widget.RLinearLayout> | |||
<com.ruffian.library.widget.RLinearLayout | |||
android:layout_width="match_parent" | |||
@@ -540,10 +366,37 @@ | |||
android:layout_height="wrap_content" | |||
android:background="@color/white" | |||
android:hint="请输入车牌号码" | |||
android:enabled="false" | |||
android:id="@+id/et_plateNum" | |||
style="@style/blackTextStyle14" | |||
android:gravity="right"/> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="34dp" | |||
android:id="@+id/ly_chooseColor" | |||
android:layout_marginTop="@dimen/dp_15" | |||
android:gravity="center_vertical" | |||
android:orientation="horizontal"> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="车牌颜色:" | |||
style="@style/blackTextStyle14"/> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:background="@color/white" | |||
android:layout_weight="1" | |||
android:hint="请选择车牌颜色" | |||
android:id="@+id/tv_plateColor" | |||
style="@style/blackTextStyle14" | |||
android:gravity="right"/> | |||
<ImageView | |||
android:layout_width="@dimen/dp_15" | |||
android:layout_height="@dimen/dp_15" | |||
android:src="@mipmap/the_right"/> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="34dp" | |||
@@ -920,7 +773,7 @@ | |||
android:orientation="vertical"> | |||
<com.ruffian.library.widget.RTextView | |||
android:layout_width="match_parent" | |||
android:layout_height="@dimen/dp_30" | |||
android:layout_height="@dimen/dp_40" | |||
android:text="提交" | |||
style="@style/whiteTextStyle15" | |||
app:background_normal="@color/green01" |
@@ -763,8 +763,7 @@ public class BoxManagers implements ResponseListener { | |||
} else if (isPlk == WQ) { | |||
//握奇 | |||
// if (s==0){ | |||
// String[] arr = {"00A40000023F00","00A40000021001","0020000006313233343536","00B201C400","00B202C400","00B203C400"}; | |||
//// ,"00B204C400","00B205C400","00B206C400","00B207C400","00B208C400","00B209C400","00B20aC400","00B20bC400","00B20cC400","00B20dC400","00B20eC400","00B20fC400","00B210C400","00B211C400","00B212C400","00B213C400","00B214C400","00B215C400","00B216C400","00B217C400","00B218C400","00B219C400","00B21aC400","00B21bC400","00B21cC400","00B21dC400","00B21eC400","00B21fC400","00B220C400","00B221C400","00B222C400","00B223C400","00B224C400","00B225C400","00B226C400","00B227C400","00B228C400","00B229C400","00B22aC400","00B22bC400","00B22cC400","00B22dC400","00B22eC400","00B22fC400","00B230C400","00B231C400","00B232C400" | |||
// String[] arr = {"00A40000023F00","00A40000021001","0020000006313233343536","00B201C400","00B202C400","00B203C400","00B204C400","00B205C400","00B206C400","00B207C400","00B208C400","00B209C400","00B20aC400","00B20bC400","00B20cC400","00B20dC400","00B20eC400","00B20fC400","00B210C400","00B211C400","00B212C400","00B213C400","00B214C400","00B215C400","00B216C400","00B217C400","00B218C400","00B219C400","00B21aC400","00B21bC400","00B21cC400","00B21dC400","00B21eC400","00B21fC400","00B220C400","00B221C400","00B222C400","00B223C400","00B224C400","00B225C400","00B226C400","00B227C400","00B228C400","00B229C400","00B22aC400","00B22bC400","00B22cC400","00B22dC400","00B22eC400","00B22fC400","00B230C400","00B231C400","00B232C400"}; | |||
//// }; | |||
// for (int i = 0;i<arr.length;i++){ | |||
// Log.e("WQ执行",arr[i]+"结果~~"+WoQiObu1.sendApdu(arr[i],1)); |