android:name=".project.ui.activity.after.CancellationActivity" | android:name=".project.ui.activity.after.CancellationActivity" | ||||
android:launchMode="singleTop" | android:launchMode="singleTop" | ||||
android:screenOrientation="portrait" /> | android:screenOrientation="portrait" /> | ||||
<activity | |||||
android:name=".project.ui.activity.after.EquipmentLossReportActivity" | |||||
android:launchMode="singleTop" | |||||
android:screenOrientation="portrait" /> | |||||
<activity | <activity | ||||
android:name=".project.ui.activity.after.DevicePendingActivity" | android:name=".project.ui.activity.after.DevicePendingActivity" | ||||
android:launchMode="singleTop" | android:launchMode="singleTop" | ||||
<activity android:name=".project.ui.activity.BusinessDetectionActivity" | <activity android:name=".project.ui.activity.BusinessDetectionActivity" | ||||
android:launchMode="singleTop" | android:launchMode="singleTop" | ||||
android:screenOrientation="portrait"/> | android:screenOrientation="portrait"/> | ||||
<!--挂失--> | |||||
<activity | |||||
android:name=".project.ui.activity.after.EquipmentLossReportStep1Activity" | |||||
android:launchMode="singleTop" | |||||
android:screenOrientation="portrait" /> | |||||
<activity | |||||
android:name=".project.ui.activity.after.EquipmentLossReportActivity" | |||||
android:launchMode="singleTop" | |||||
android:screenOrientation="portrait" /> | |||||
</application> | </application> | ||||
</manifest> | </manifest> |
package com.huntersun.vkyes.etcopencard.project.ui.activity.after; | package com.huntersun.vkyes.etcopencard.project.ui.activity.after; | ||||
import android.annotation.SuppressLint; | |||||
import android.content.Intent; | |||||
import android.text.TextUtils; | |||||
import android.view.View; | import android.view.View; | ||||
import com.alibaba.fastjson.JSON; | |||||
import com.google.gson.Gson; | import com.google.gson.Gson; | ||||
import com.huntersun.vkyes.etcopencard.R; | import com.huntersun.vkyes.etcopencard.R; | ||||
import com.huntersun.vkyes.etcopencard.databinding.ActivityEquipmentLossReportBinding; | import com.huntersun.vkyes.etcopencard.databinding.ActivityEquipmentLossReportBinding; | ||||
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | ||||
import com.huntersun.vkyes.etcopencard.src.aop.SingleClick; | import com.huntersun.vkyes.etcopencard.src.aop.SingleClick; | ||||
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | ||||
import com.parkingwang.keyboard.PopupKeyboard; | |||||
import com.huntersun.vkyes.etcopencard.src.other.CodeCountDown; | |||||
import java.util.HashMap; | import java.util.HashMap; | ||||
import java.util.Map; | import java.util.Map; | ||||
import retrofit2.Response; | import retrofit2.Response; | ||||
/** | /** | ||||
* 设备挂失 | |||||
* | |||||
* @author admin | |||||
* 设备挂失 / 解挂页面 | |||||
*/ | */ | ||||
public class EquipmentLossReportActivity extends AppActivity { | public class EquipmentLossReportActivity extends AppActivity { | ||||
private ActivityEquipmentLossReportBinding binding; | private ActivityEquipmentLossReportBinding binding; | ||||
private int licensePlateColor = 0; //默认蓝色 | |||||
private PopupKeyboard mPopupKeyboard; | |||||
private String opeartion = "1"; //操作 1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 | |||||
private CodeCountDown mCountDownTimerUtils; | |||||
//操作 1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 6-卡签解挂 | |||||
private String opeartion = "1"; | |||||
//订单数据 | |||||
private ResultBean.BizContent curBizContent; | |||||
//是否是执行挂失操作 | |||||
private boolean isLoss; | |||||
//车牌编号 | |||||
private String vehicleId; | |||||
@Override | @Override | ||||
protected View getLayoutView() { | protected View getLayoutView() { | ||||
@Override | @Override | ||||
protected void initView() { | protected void initView() { | ||||
setTitle("卡签挂失/解挂"); | |||||
Intent intent = new Intent(); | |||||
intent.getStringExtra("vehiclePlate"); | |||||
intent.getStringExtra("vehiclePlateColor"); | |||||
//回显信息并走查询接口 | |||||
if (!TextUtils.isEmpty(intent.getStringExtra("vehiclePlate")) && | |||||
!TextUtils.isEmpty(intent.getStringExtra("vehiclePlateColor"))) { | |||||
binding.inputView.updateNumber(intent.getStringExtra("vehiclePlate")); | |||||
View view = binding.buttomOne; | |||||
switch (intent.getStringExtra("vehiclePlateColor")) { | |||||
case "0": //蓝色 | |||||
view = binding.buttomOne; | |||||
break; | |||||
case "1": //黄色 | |||||
view = binding.buttomTwo; | |||||
break; | |||||
case "2": //黑色 | |||||
view = binding.buttomThree; | |||||
break; | |||||
case "3": //白色 | |||||
view = binding.buttomFour; | |||||
break; | |||||
case "4": //渐变绿色 | |||||
view = binding.buttomFive; | |||||
break; | |||||
case "5": //黄绿双拼色 | |||||
view = binding.buttomSex; | |||||
break; | |||||
} | |||||
onClick(view); | |||||
vehicleId = getIntent().getStringExtra("vehicleId"); | |||||
isLoss = getIntent().getBooleanExtra("isLoss", true); | |||||
String json = getIntent().getStringExtra("dataJson"); | |||||
if (!FunHelper.isEmpty(json)) { | |||||
curBizContent = JSON.parseObject(json, ResultBean.BizContent.class); | |||||
} | } | ||||
binding.buttomOne.setOnClickListener(this); | |||||
binding.buttomTwo.setOnClickListener(this); | |||||
binding.buttomThree.setOnClickListener(this); | |||||
binding.buttomFour.setOnClickListener(this); | |||||
binding.buttomFive.setOnClickListener(this); | |||||
binding.buttomSex.setOnClickListener(this); | |||||
setTitle(isLoss ? "卡签挂失" : "卡签解挂"); | |||||
binding.tvTitle.setText(isLoss ? "请选择挂失的类型" : "请选择解挂的类型"); | |||||
binding.btnNext.setText(isLoss ? "确定挂失" : "马上解挂"); | |||||
opeartion = isLoss ? "1" : "4"; | |||||
binding.tvMobile.setText(curBizContent.getCustomerTel()); | |||||
binding.choice1.setOnClickListener(this::Choice); | binding.choice1.setOnClickListener(this::Choice); | ||||
binding.son1.setOnClickListener(this::Choice); | binding.son1.setOnClickListener(this::Choice); | ||||
binding.choice2.setOnClickListener(this::Choice); | binding.choice2.setOnClickListener(this::Choice); | ||||
binding.son2.setOnClickListener(this::Choice); | binding.son2.setOnClickListener(this::Choice); | ||||
binding.choice3.setOnClickListener(this::Choice); | binding.choice3.setOnClickListener(this::Choice); | ||||
binding.son3.setOnClickListener(this::Choice); | binding.son3.setOnClickListener(this::Choice); | ||||
/*binding.son1.setEnabled(false); | |||||
binding.son2.setEnabled(false); | |||||
binding.son3.setEnabled(false);*/ | |||||
binding.btnNext.setOnClickListener(new View.OnClickListener() { | binding.btnNext.setOnClickListener(new View.OnClickListener() { | ||||
@Override | @Override | ||||
@SingleClick | @SingleClick | ||||
public void onClick(View v) { | public void onClick(View v) { | ||||
getOrderInfoByVehiclePlate(); | |||||
showHintDialog(); | |||||
} | } | ||||
}); | }); | ||||
mPopupKeyboard = new PopupKeyboard(this, getActivity()); | |||||
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(getActivity()); | |||||
if (!TextUtils.isEmpty(binding.inputView.getEndText())) { | |||||
binding.inputView.removeLastCharOfNumber(); | |||||
} | |||||
}); | |||||
} | |||||
binding.mGetCodeBtn.setOnClickListener(new View.OnClickListener() { | |||||
@Override | |||||
@SingleClick | |||||
public void onClick(View view) { | |||||
sendCode(); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
private void showHintDialog(ResultBean.BizContent bizContent) { | |||||
String msg = ""; | |||||
String confirmTxt = "确定"; | |||||
//1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 6-卡签解挂 | |||||
if ("6".equals(bizContent.getCardStatus()) || "6".equals(bizContent.getObuStatus())) {//卡挂失或者签挂失 -- 只能执行解挂 | |||||
msg = "检测到您已执行过挂失操作,请先解挂"; | |||||
confirmTxt = "确定解挂"; | |||||
switch (opeartion) { | |||||
case "1": | |||||
opeartion = "4"; | |||||
break; | |||||
case "2": | |||||
opeartion = "5"; | |||||
break; | |||||
case "3": | |||||
opeartion = "6"; | |||||
break; | |||||
} | |||||
} else { | |||||
msg = "确定执行挂失操作码?"; | |||||
confirmTxt = "确定挂失"; | |||||
private void showHintDialog() { | |||||
if (FunHelper.isEmpty(FunHelper.getText(binding.etCode))){ | |||||
toast("请输入验证码验证用户信息"); | |||||
return; | |||||
} | } | ||||
new ConfirmDialog.Builder(EquipmentLossReportActivity.this).setMsg(msg, "提示", confirmTxt, "取消", R.mipmap.icon_lotgout_etc_hint, 0, false) | |||||
new ConfirmDialog.Builder(EquipmentLossReportActivity.this).setMsg("确认执行" + (isLoss ? "挂失" : "解挂") + "操作嘛?", "提示", "确定", "取消", R.mipmap.icon_lotgout_etc_hint, 0, false) | |||||
.onClick(new ConfirmDialog.Result() { | .onClick(new ConfirmDialog.Result() { | ||||
@Override | @Override | ||||
public void confirm() { | public void confirm() { | ||||
cardReportTheLoss(bizContent); | |||||
checkUser(); | |||||
} | } | ||||
}).show(); | }).show(); | ||||
} | } | ||||
/** | /** | ||||
* 根据车牌获取订单信息 | |||||
*/ | |||||
private void getOrderInfoByVehiclePlate() { | |||||
if (FunHelper.isEmpty(binding.inputView.getNumber())) { | |||||
toast("请输入想要挂失/解挂的车牌号!"); | |||||
return; | |||||
} | |||||
showDialog("申请中..."); | |||||
Map<String, String> params = new HashMap<>(); | |||||
params.put("vehicleId", binding.inputView.getNumber() + "_" + licensePlateColor); | |||||
params.put("orderStep", "11"); | |||||
params.put("orderStatus", "0"); | |||||
MyRetrofit.newInstance(IFCode.IFCODE500, params, new MyRetrofit.ReturnResult() { | |||||
@Override | |||||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||||
hideDialog(); | |||||
showHintDialog(bizContent); | |||||
} | |||||
@Override | |||||
public void onError(Response<Result> resp) { | |||||
hideDialog(); | |||||
} | |||||
}); | |||||
} | |||||
/** | |||||
* 挂失 | |||||
* | |||||
* @param bizContent | |||||
* 挂失 / 解挂 | |||||
*/ | */ | ||||
private void cardReportTheLoss(ResultBean.BizContent bizContent) { | |||||
private void cardReportTheLoss() { | |||||
showDialog("申请中..."); | showDialog("申请中..."); | ||||
SendTheVerificationCodeBean bean = new SendTheVerificationCodeBean(); | SendTheVerificationCodeBean bean = new SendTheVerificationCodeBean(); | ||||
bean.setCardId(bizContent.getCardId()); //卡号 | |||||
bean.setObuId(bizContent.getObuId()); //签号 | |||||
bean.setOrderId(bizContent.getOrderId()); //订单id | |||||
bean.setCardId(curBizContent.getCardId()); //卡号 | |||||
bean.setObuId(curBizContent.getObuId()); //签号 | |||||
bean.setOrderId(curBizContent.getOrderId()); //订单id | |||||
bean.setOperation(String.valueOf(opeartion)); //1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 | bean.setOperation(String.valueOf(opeartion)); //1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 | ||||
bean.setAgentId("52010106004"); | bean.setAgentId("52010106004"); | ||||
bean.setChannelId("5201010200601130001"); | bean.setChannelId("5201010200601130001"); | ||||
}); | }); | ||||
} | } | ||||
private void checkUser() { | |||||
showDialog("信息校验中..."); | |||||
Map<String, String> params = new HashMap<>(); | |||||
params.put("mobile", curBizContent.getCustomerTel()); | |||||
params.put("code", FunHelper.getText(binding.etCode)); | |||||
MyRetrofit.newInstance(IFCode.IFCODE966, params, new MyRetrofit.ReturnResult() { | |||||
@Override | |||||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||||
hideDialog(); | |||||
cardReportTheLoss(); | |||||
} | |||||
@Override | |||||
public void onError(Response<Result> resp) { | |||||
hideDialog(); | |||||
//TODO 测试 | |||||
cardReportTheLoss(); | |||||
} | |||||
}); | |||||
} | |||||
private void sendCode(){ | |||||
showDialog("发送中..."); | |||||
Map<String, String> params = new HashMap<>(); | |||||
params.put("mobile", curBizContent.getCustomerTel()); | |||||
MyRetrofit.newInstance(IFCode.IFCODE2, params, new MyRetrofit.ReturnResult() { | |||||
@Override | |||||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||||
hideDialog(); | |||||
toast("验证码发送成功!"); | |||||
mCountDownTimerUtils = new CodeCountDown(EquipmentLossReportActivity.this, binding.mGetCodeBtn, 60000, 1000); | |||||
mCountDownTimerUtils.start(); | |||||
} | |||||
@Override | |||||
public void onError() { | |||||
MyRetrofit.ReturnResult.super.onError(); | |||||
hideDialog(); | |||||
} | |||||
}); | |||||
} | |||||
@Override | @Override | ||||
protected void initData() { | protected void initData() { | ||||
} | } | ||||
@Override | |||||
protected void onDestroy() { | |||||
super.onDestroy(); | |||||
if (mCountDownTimerUtils != null){ | |||||
mCountDownTimerUtils.cancel(); | |||||
mCountDownTimerUtils = null; | |||||
} | |||||
} | |||||
public void Choice(View view) { | public void Choice(View view) { | ||||
binding.son1.setChecked(false); | binding.son1.setChecked(false); | ||||
binding.son2.setChecked(false); | binding.son2.setChecked(false); | ||||
binding.son3.setChecked(false); | binding.son3.setChecked(false); | ||||
//1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 6-卡签解挂 | |||||
if (view == binding.choice1 || view == binding.son1) { | if (view == binding.choice1 || view == binding.son1) { | ||||
binding.son1.setChecked(true); | binding.son1.setChecked(true); | ||||
opeartion = "1"; | |||||
opeartion = isLoss ? "1" : "4"; | |||||
} else if (view == binding.choice2 || view == binding.son2) { | } else if (view == binding.choice2 || view == binding.son2) { | ||||
binding.son2.setChecked(true); | binding.son2.setChecked(true); | ||||
opeartion = "2"; | |||||
opeartion = isLoss ? "2" : "5"; | |||||
} else if (view == binding.choice3 || view == binding.son3) { | } else if (view == binding.choice3 || view == binding.son3) { | ||||
binding.son3.setChecked(true); | binding.son3.setChecked(true); | ||||
opeartion = "3"; | |||||
opeartion = isLoss ? "3" : "6"; | |||||
} | } | ||||
} | } | ||||
} | |||||
@SuppressLint("UseCompatLoadingForDrawables") | |||||
@Override | |||||
@SingleClick | |||||
public void onClick(View view) { | |||||
binding.layout1.setBackground(null); | |||||
binding.layout2.setBackground(null); | |||||
binding.layout3.setBackground(null); | |||||
binding.layout4.setBackground(null); | |||||
binding.layout5.setBackground(null); | |||||
binding.layout6.setBackground(null); | |||||
if (view.getId() == R.id.buttom_one) { | |||||
binding.layout1.setBackground(getDrawable(R.drawable.item_home_frame4)); | |||||
licensePlateColor = 0; | |||||
} else if (view.getId() == R.id.buttom_two) { | |||||
binding.layout2.setBackground(getDrawable(R.drawable.item_home_frame4)); | |||||
licensePlateColor = 1; | |||||
} else if (view.getId() == R.id.buttom_three) { | |||||
binding.layout3.setBackground(getDrawable(R.drawable.item_home_frame4)); | |||||
licensePlateColor = 2; | |||||
} else if (view.getId() == R.id.buttom_four) { | |||||
binding.layout4.setBackground(getDrawable(R.drawable.item_home_frame4)); | |||||
licensePlateColor = 3; | |||||
} else if (view.getId() == R.id.buttom_five) { | |||||
binding.layout5.setBackground(getDrawable(R.drawable.item_home_frame4)); | |||||
licensePlateColor = 5; | |||||
} else if (view.getId() == R.id.buttom_sex) { | |||||
binding.layout6.setBackground(getDrawable(R.drawable.item_home_frame4)); | |||||
licensePlateColor = 4; | |||||
} | |||||
} | |||||
} |
package com.huntersun.vkyes.etcopencard.project.ui.activity.after; | package com.huntersun.vkyes.etcopencard.project.ui.activity.after; | ||||
import android.os.Bundle; | |||||
import android.view.View; | import android.view.View; | ||||
import com.alibaba.fastjson.JSON; | |||||
import com.huntersun.vkyes.etcopencard.databinding.ActivityEquipmentLossReportStep1Binding; | import com.huntersun.vkyes.etcopencard.databinding.ActivityEquipmentLossReportStep1Binding; | ||||
import com.huntersun.vkyes.etcopencard.databinding.ActivityStartStopEtcBinding; | |||||
import com.huntersun.vkyes.etcopencard.project.api.Result; | import com.huntersun.vkyes.etcopencard.project.api.Result; | ||||
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | ||||
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | ||||
private ActivityEquipmentLossReportStep1Binding binding; | private ActivityEquipmentLossReportStep1Binding binding; | ||||
private ResultBean.BizContent curBizContent; | private ResultBean.BizContent curBizContent; | ||||
private String opeartion = "1"; //操作 1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 | |||||
private String curVehicleId; | |||||
@Override | @Override | ||||
protected View getLayoutView() { | protected View getLayoutView() { | ||||
setDataToView(); | setDataToView(); | ||||
} | } | ||||
@Override | |||||
public void onVehicleId(String vehicleId) { | |||||
curVehicleId = vehicleId; | |||||
} | |||||
@Override | @Override | ||||
public void onSearchResultFail(Result result) { | public void onSearchResultFail(Result result) { | ||||
binding.LLSearchResult.setVisibility(View.GONE); | binding.LLSearchResult.setVisibility(View.GONE); | ||||
@Override | @Override | ||||
@SingleClick | @SingleClick | ||||
public void onClick(View view) { | public void onClick(View view) { | ||||
gotoNextStep(true); | |||||
} | } | ||||
}); | }); | ||||
@Override | @Override | ||||
@SingleClick | @SingleClick | ||||
public void onClick(View view) { | public void onClick(View view) { | ||||
gotoNextStep(false); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
private void gotoNextStep(boolean isLoss){ | |||||
Bundle bundle = new Bundle(); | |||||
bundle.putString("dataJson", JSON.toJSONString(curBizContent)); | |||||
bundle.putBoolean("isLoss",isLoss); | |||||
bundle.putString("vehicleId",curVehicleId); | |||||
jumpToPage(EquipmentLossReportActivity.class,bundle); | |||||
finish(); | |||||
} | |||||
private void setDataToView(){ | private void setDataToView(){ | ||||
if (curBizContent == null) return; | if (curBizContent == null) return; | ||||
binding.LLSearchResult.setVisibility(View.VISIBLE); | binding.LLSearchResult.setVisibility(View.VISIBLE); | ||||
binding.tvColor.setText(FunHelper.isEmpty(curBizContent.getVehiclePlateColorStr()) ? "" : curBizContent.getVehiclePlateColorStr()); | binding.tvColor.setText(FunHelper.isEmpty(curBizContent.getVehiclePlateColorStr()) ? "" : curBizContent.getVehiclePlateColorStr()); | ||||
binding.tvCarType.setText(FunHelper.isEmpty(curBizContent.getType()) ? "" : FunHelper.getCarTypeName(curBizContent.getType())); | binding.tvCarType.setText(FunHelper.isEmpty(curBizContent.getType()) ? "" : FunHelper.getCarTypeName(curBizContent.getType())); | ||||
if (curBizContent.getCardStatus().equals("11")){//停用状态-需启用 | |||||
binding.btnStart.setEnabled(true); | |||||
binding.btnStop.setEnabled(true); | |||||
//存在卡挂失或者签挂失的情况只能执行解挂 | |||||
/*if ("6".equals(curBizContent.getCardStatus()) || "6".equals(curBizContent.getObuStatus())){ | |||||
binding.btnStart.setEnabled(true); | binding.btnStart.setEnabled(true); | ||||
binding.btnStop.setEnabled(false); | binding.btnStop.setEnabled(false); | ||||
}else{//启用-需办理停用 | }else{//启用-需办理停用 | ||||
binding.btnStart.setEnabled(false); | binding.btnStart.setEnabled(false); | ||||
binding.btnStop.setEnabled(true); | binding.btnStop.setEnabled(true); | ||||
} | |||||
}*/ | |||||
//显示卡信息 | //显示卡信息 | ||||
if (!FunHelper.isEmpty(curBizContent.getCardId())){ | if (!FunHelper.isEmpty(curBizContent.getCardId())){ |
import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EditCarInfoStep1Activity; | import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EditCarInfoStep1Activity; | ||||
import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EditUserInfoStep1Activity; | import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EditUserInfoStep1Activity; | ||||
import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EquipmentLossReportActivity; | import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EquipmentLossReportActivity; | ||||
import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EquipmentLossReportStep1Activity; | |||||
import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EquipmentUpgradeActivity; | import com.huntersun.vkyes.etcopencard.project.ui.activity.after.EquipmentUpgradeActivity; | ||||
import com.huntersun.vkyes.etcopencard.project.ui.activity.after.ExtraCreditStep1Activity; | import com.huntersun.vkyes.etcopencard.project.ui.activity.after.ExtraCreditStep1Activity; | ||||
import com.huntersun.vkyes.etcopencard.project.ui.activity.after.LogoutEtcStep1Activity; | import com.huntersun.vkyes.etcopencard.project.ui.activity.after.LogoutEtcStep1Activity; | ||||
jumpToPage(LogoutEtcStep1Activity.class); | jumpToPage(LogoutEtcStep1Activity.class); | ||||
break; | break; | ||||
case "卡签挂失/解挂": | case "卡签挂失/解挂": | ||||
startActivity(EquipmentLossReportActivity.class); | |||||
startActivity(EquipmentLossReportStep1Activity.class); | |||||
break; | break; | ||||
case "卡签挂起/解挂": | case "卡签挂起/解挂": | ||||
startActivity(DevicePendingActivity.class); | startActivity(DevicePendingActivity.class); |
xmlns:tools="http://schemas.android.com/tools" | xmlns:tools="http://schemas.android.com/tools" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:background="@color/background_color" | |||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<com.hjq.bar.TitleBar | <com.hjq.bar.TitleBar | ||||
android:id="@+id/title" | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:background="@drawable/video_ball_bg12" | |||||
app:leftIcon="@mipmap/back_three" | |||||
android:background="@color/white" | |||||
app:leftIcon="@mipmap/back_black" | |||||
app:lineVisible="false" | app:lineVisible="false" | ||||
app:titleColor="#FFFFFF" /> | |||||
app:title="挂失/解挂" | |||||
app:titleColor="@color/black" /> | |||||
<androidx.core.widget.NestedScrollView | <androidx.core.widget.NestedScrollView | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:paddingHorizontal="@dimen/dp_15"> | android:paddingHorizontal="@dimen/dp_15"> | ||||
<TextView | <TextView | ||||
android:layout_width="wrap_content" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginTop="@dimen/dp_14" | |||||
android:layout_marginBottom="@dimen/dp_12" | |||||
android:text="车辆信息" | |||||
android:textColor="#333333" | |||||
android:textSize="@dimen/sp_16" /> | |||||
android:id="@+id/tvTitle" | |||||
style="@style/WrapWrap" | |||||
android:paddingTop="@dimen/dp_15" | |||||
android:paddingRight="@dimen/dp_15" | |||||
android:text="请选择操作类型" | |||||
android:textColor="@color/color_333333" | |||||
android:textSize="@dimen/sp_16" | |||||
android:textStyle="bold" /> | |||||
<LinearLayout | <LinearLayout | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:background="@drawable/home_search_bar_gray_bg2" | android:background="@drawable/home_search_bar_gray_bg2" | ||||
android:orientation="vertical" | android:orientation="vertical" | ||||
android:layout_marginVertical="@dimen/dp_15" | |||||
android:paddingHorizontal="@dimen/dp_15"> | android:paddingHorizontal="@dimen/dp_15"> | ||||
<TextView | |||||
android:layout_width="wrap_content" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginTop="@dimen/dp_17" | |||||
android:text="请输入车牌号" | |||||
android:textColor="#333333" | |||||
android:textSize="@dimen/sp_12" /> | |||||
<LinearLayout | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginTop="@dimen/dp_15" | |||||
android:orientation="horizontal"> | |||||
<FrameLayout | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content"> | |||||
<com.parkingwang.keyboard.view.InputView | |||||
android:id="@+id/input_view" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="@dimen/dp_45" | |||||
app:pwkInputTextSize="22sp" /> | |||||
<LinearLayout | |||||
android:id="@+id/quote" | |||||
android:layout_width="@dimen/dp_38" | |||||
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> | |||||
</LinearLayout> | |||||
<TextView | |||||
android:layout_width="wrap_content" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginTop="@dimen/dp_17" | |||||
android:text="请选择车牌颜色(非车身颜色)" | |||||
android:textColor="#333333" | |||||
android:textSize="@dimen/sp_12" /> | |||||
<LinearLayout | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginTop="@dimen/dp_12" | |||||
android:animateLayoutChanges="true" | |||||
android:animationCache="true" | |||||
android:orientation="vertical"> | |||||
<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/buttom_one" | |||||
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/buttom_two" | |||||
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/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/buttom_three" | |||||
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> | |||||
<LinearLayout | |||||
android:layout_width="match_parent" | |||||
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/buttom_four" | |||||
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/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/buttom_five" | |||||
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 | |||||
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/buttom_sex" | |||||
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> | |||||
<TextView | |||||
android:id="@+id/tvTitle" | |||||
android:layout_width="wrap_content" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginTop="@dimen/dp_17" | |||||
android:text="请选择挂失/解挂类型" | |||||
android:textColor="#333333" | |||||
android:textSize="@dimen/sp_12" /> | |||||
<LinearLayout | <LinearLayout | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
</LinearLayout> | </LinearLayout> | ||||
</LinearLayout> | </LinearLayout> | ||||
<TextView | |||||
style="@style/WrapWrap" | |||||
android:paddingTop="@dimen/dp_15" | |||||
android:paddingRight="@dimen/dp_15" | |||||
android:text="请确认用户信息" | |||||
android:textColor="@color/color_333333" | |||||
android:textSize="@dimen/sp_16" | |||||
android:textStyle="bold" /> | |||||
<LinearLayout | |||||
style="@style/MatchWrap.Vertical" | |||||
android:layout_marginVertical="@dimen/dp_15" | |||||
android:background="@drawable/bg_white_radius" | |||||
android:paddingHorizontal="@dimen/dp_15" | |||||
android:paddingVertical="@dimen/dp_10"> | |||||
<LinearLayout | |||||
style="@style/MatchWrap.Horizontal" | |||||
android:layout_height="@dimen/dp_30" | |||||
android:gravity="center_vertical"> | |||||
<TextView | |||||
style="@style/WrapWrap" | |||||
android:text="手机号码" | |||||
android:textColor="@color/color_666666" | |||||
android:textSize="@dimen/sp_14" /> | |||||
<TextView | |||||
android:id="@+id/tvMobile" | |||||
style="@style/AutoWrap" | |||||
android:paddingLeft="@dimen/dp_50" | |||||
android:text="反显办理车辆ETC的手机号" | |||||
android:textColor="#B3B3B3" /> | |||||
</LinearLayout> | |||||
<TextView | |||||
style="@style/MatchOne.HorLine" | |||||
android:layout_marginVertical="@dimen/dp_8" /> | |||||
<LinearLayout | |||||
style="@style/MatchWrap.Horizontal" | |||||
android:layout_height="@dimen/dp_30" | |||||
android:gravity="center_vertical"> | |||||
<TextView | |||||
style="@style/WrapWrap" | |||||
android:text="验证码 " | |||||
android:textColor="@color/color_666666" | |||||
android:textSize="@dimen/sp_14" /> | |||||
<com.hjq.widget.view.RegexEditText | |||||
android:id="@+id/etCode" | |||||
style="@style/EditTextStyle" | |||||
android:layout_width="0dp" | |||||
android:layout_height="match_parent" | |||||
android:layout_weight="1" | |||||
android:hint="请输入验证码" | |||||
android:inputType="number" | |||||
android:maxLength="6" | |||||
android:paddingVertical="0dp" | |||||
android:paddingLeft="@dimen/dp_50" | |||||
android:singleLine="true" | |||||
android:textColorHint="#B3B3B3" | |||||
android:textSize="@dimen/sp_14"/> | |||||
<Button | |||||
android:id="@+id/mGetCodeBtn" | |||||
style="@style/WrapWrap" | |||||
android:layout_height="@dimen/dp_25" | |||||
android:layout_gravity="right|center" | |||||
android:background="@drawable/bg_green_radius" | |||||
android:enabled="true" | |||||
android:foreground="?attr/selectableItemBackground" | |||||
android:paddingLeft="@dimen/dp_8" | |||||
android:paddingRight="@dimen/dp_8" | |||||
android:text="获取验证码" | |||||
android:textColor="@color/white" | |||||
android:textSize="@dimen/sp_12" /> | |||||
</LinearLayout> | |||||
</LinearLayout> | |||||
<Button | <Button | ||||
android:id="@+id/btnNext" | android:id="@+id/btnNext" | ||||
style="@style/BtnShortStyle" | style="@style/BtnShortStyle" | ||||
android:layout_gravity="center" | android:layout_gravity="center" | ||||
android:layout_marginTop="@dimen/dp_30" | android:layout_marginTop="@dimen/dp_30" | ||||
android:layout_marginBottom="@dimen/dp_30" | android:layout_marginBottom="@dimen/dp_30" | ||||
android:text="提交" | |||||
android:text="立即提交" | |||||
android:textSize="@dimen/sp_14" /> | android:textSize="@dimen/sp_14" /> | ||||
</LinearLayout> | </LinearLayout> | ||||
</androidx.core.widget.NestedScrollView> | </androidx.core.widget.NestedScrollView> |