@@ -0,0 +1,50 @@ | |||
package com.huntersun.vkyes.etcopencard.project.ui.activity.order; | |||
import android.view.View; | |||
import com.huntersun.vkyes.etcopencard.R; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityAuditingStep1Binding; | |||
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | |||
import com.huntersun.vkyes.etcopencard.src.ui.adapter.AddViewHolder; | |||
/** | |||
* Date :2023-03-13 | |||
* Description:审核第一步 | |||
*/ | |||
public class AuditingStep1Activity extends AppActivity { | |||
private ActivityAuditingStep1Binding binding; | |||
@Override | |||
protected View getLayoutView() { | |||
binding = ActivityAuditingStep1Binding.inflate(getLayoutInflater()); | |||
return binding.getRoot(); | |||
} | |||
@Override | |||
protected void initView() { | |||
binding.LLContent.removeAllViews(); | |||
addView("姓名","张三"); | |||
addView("身份证号","511***********1236"); | |||
addView("车主地址","贵州省xxxxxx"); | |||
binding.btnNext.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
public void onClick(View view) { | |||
jumpToPage(AuditingStep2Activity.class); | |||
} | |||
}); | |||
} | |||
private void addView(String label,String value){ | |||
AddViewHolder holder = new AddViewHolder(this, R.layout.layout_order_details_item); | |||
holder.setText(R.id.tvLabel,label); | |||
holder.setText(R.id.tvValue,value); | |||
binding.LLContent.addView(holder.getCustomView()); | |||
} | |||
@Override | |||
protected void initData() { | |||
} | |||
} |
@@ -0,0 +1,66 @@ | |||
package com.huntersun.vkyes.etcopencard.project.ui.activity.order; | |||
import android.view.View; | |||
import com.huntersun.vkyes.etcopencard.R; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityAuditingStep2Binding; | |||
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | |||
import com.huntersun.vkyes.etcopencard.src.ui.adapter.AddViewHolder; | |||
/** | |||
* Date :2023-03-13 | |||
* Description:审核第2步 | |||
*/ | |||
public class AuditingStep2Activity extends AppActivity { | |||
private ActivityAuditingStep2Binding binding; | |||
@Override | |||
protected View getLayoutView() { | |||
binding = ActivityAuditingStep2Binding.inflate(getLayoutInflater()); | |||
return binding.getRoot(); | |||
} | |||
@Override | |||
protected void initView() { | |||
binding.LLContent.removeAllViews(); | |||
addView("车牌号","张三"); | |||
addView("所有人","511***********1236"); | |||
addView("车辆类型","贵州省xxxxxx"); | |||
addView("使用性质","贵州省xxxxxx"); | |||
addView("车辆识别代码","贵州省xxxxxx"); | |||
addView("发动机号码","贵州省xxxxxx"); | |||
addView("注册日期","贵州省xxxxxx"); | |||
addView("发证日期","贵州省xxxxxx"); | |||
addView("核定载人数","贵州省xxxxxx"); | |||
addView("整备质量","贵州省xxxxxx"); | |||
addView("外廓尺寸","贵州省xxxxxx"); | |||
addView("总质量","贵州省xxxxxx"); | |||
binding.btnPass.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
public void onClick(View view) { | |||
toast("通过"); | |||
} | |||
}); | |||
binding.btnNoPass.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
public void onClick(View view) { | |||
toast("不通过"); | |||
} | |||
}); | |||
} | |||
private void addView(String label,String value){ | |||
AddViewHolder holder = new AddViewHolder(this, R.layout.layout_order_details_item); | |||
holder.setText(R.id.tvLabel,label); | |||
holder.setText(R.id.tvValue,value); | |||
binding.LLContent.addView(holder.getCustomView()); | |||
} | |||
@Override | |||
protected void initData() { | |||
} | |||
} |
@@ -3,7 +3,6 @@ package com.huntersun.vkyes.etcopencard.project.ui.activity.order; | |||
import android.annotation.SuppressLint; | |||
import android.app.Activity; | |||
import android.bluetooth.BluetoothAdapter; | |||
import android.content.Context; | |||
import android.content.Intent; | |||
import android.os.Bundle; | |||
import android.text.TextUtils; | |||
@@ -14,7 +13,6 @@ import android.widget.LinearLayout; | |||
import com.alibaba.fastjson.JSON; | |||
import com.huntersun.vky.obublelib.box.BoxManagers; | |||
import com.huntersun.vky.obublelib.util.ToastUtil; | |||
import com.huntersun.vkyes.etcopencard.R; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | |||
import com.huntersun.vkyes.etcopencard.project.bluetooth.BluetoothDialog; | |||
import com.huntersun.vkyes.etcopencard.project.copapply.ApplyRequst; | |||
@@ -29,7 +27,6 @@ import com.huntersun.vkyes.etcopencard.project.ui.activity.VehicleInformationAct | |||
import com.huntersun.vkyes.etcopencard.project.ui.activity.mail.FormDeliveryActivity; | |||
import com.huntersun.vkyes.etcopencard.project.utils.Constants; | |||
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | |||
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | |||
/** | |||
* Date :2023-03-15 | |||
@@ -168,6 +165,11 @@ public class OrderUtils { | |||
break; | |||
case Constants.ORDER_STATUS_EX_GOODS://换货中 | |||
break; | |||
default: | |||
//TODO 测试 入口测试 | |||
LLBtns.setVisibility(View.VISIBLE); | |||
btnAudit.setVisibility(View.VISIBLE); | |||
break; | |||
} | |||
} | |||
} | |||
@@ -276,7 +278,7 @@ public class OrderUtils { | |||
btnAudit.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
public void onClick(View view) { | |||
startActivity(AuditingActivity.class); | |||
startActivity(AuditingStep1Activity.class); | |||
} | |||
}); | |||
@@ -0,0 +1,116 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
style="@style/MatchMatch.Vertical.Common"> | |||
<com.hjq.bar.TitleBar | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:background="@color/transparent" | |||
app:leftIcon="@mipmap/back_black" | |||
app:lineVisible="false" | |||
app:title="审核" | |||
app:titleColor="@color/black" /> | |||
<androidx.core.widget.NestedScrollView style="@style/MatchWrap"> | |||
<LinearLayout style="@style/MatchWrap.Vertical"> | |||
<TextView | |||
style="@style/WrapWrap" | |||
android:paddingLeft="@dimen/dp_15" | |||
android:paddingTop="@dimen/dp_28" | |||
android:paddingBottom="@dimen/dp_10" | |||
android:text="详情" | |||
android:textColor="@color/common_text_color" | |||
android:textSize="@dimen/sp_16" | |||
android:textStyle="bold" /> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginHorizontal="@dimen/dp_15" | |||
android:layout_marginVertical="@dimen/dp_10" | |||
android:background="@drawable/bg_white_radius" | |||
android:paddingHorizontal="@dimen/dp_15" | |||
android:paddingVertical="@dimen/dp_15"> | |||
<LinearLayout style="@style/MatchWrap.Horizontal"> | |||
<LinearLayout | |||
style="@style/AutoWrap.Vertical" | |||
android:layout_height="@dimen/dp_110" | |||
android:background="@drawable/bg_card_radius" | |||
android:visibility="visible"> | |||
<ImageView | |||
android:id="@+id/image1" | |||
style="@style/MatchAuto" | |||
android:layout_gravity="center" | |||
android:layout_marginHorizontal="@dimen/dp_10" | |||
android:layout_marginVertical="@dimen/dp_12" | |||
android:scaleType="centerCrop" | |||
android:src="@mipmap/identity_card1" | |||
tools:ignore="NestedWeights" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/AutoWrap.Vertical" | |||
android:layout_height="@dimen/dp_110" | |||
android:layout_marginLeft="@dimen/dp_25" | |||
android:background="@drawable/bg_card_radius" | |||
android:visibility="visible"> | |||
<ImageView | |||
android:id="@+id/image2" | |||
style="@style/MatchAuto" | |||
android:layout_gravity="center" | |||
android:layout_marginHorizontal="@dimen/dp_10" | |||
android:layout_marginVertical="@dimen/dp_12" | |||
android:scaleType="centerCrop" | |||
android:src="@mipmap/identity_card2" | |||
tools:ignore="NestedWeights" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/LLContent" | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginTop="@dimen/dp_25"> | |||
</LinearLayout> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginHorizontal="@dimen/dp_35" | |||
android:layout_marginVertical="@dimen/dp_20"> | |||
<Button | |||
android:id="@+id/btnPass" | |||
style="@style/BtnShortStyle" | |||
android:layout_width="0dp" | |||
android:layout_weight="1" | |||
android:layout_height="@dimen/dp_40" | |||
android:layout_gravity="center_vertical|center_horizontal" | |||
android:layout_marginLeft="@dimen/dp_10" | |||
android:text="审核通过" | |||
android:textSize="@dimen/sp_15" /> | |||
<Button | |||
android:id="@+id/btnNoPass" | |||
android:layout_width="0dp" | |||
android:layout_weight="1" | |||
android:layout_height="@dimen/dp_40" | |||
android:background="@drawable/border_dark_green_radius" | |||
android:text="审核不通过" | |||
android:layout_marginLeft="@dimen/dp_40" | |||
android:textColor="#00B38B" | |||
android:textSize="@dimen/sp_15" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</androidx.core.widget.NestedScrollView> | |||
</LinearLayout> |
@@ -0,0 +1,116 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
style="@style/MatchMatch.Vertical.Common"> | |||
<com.hjq.bar.TitleBar | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:background="@color/transparent" | |||
app:leftIcon="@mipmap/back_black" | |||
app:lineVisible="false" | |||
app:title="审核" | |||
app:titleColor="@color/black" /> | |||
<androidx.core.widget.NestedScrollView style="@style/MatchWrap"> | |||
<LinearLayout style="@style/MatchWrap.Vertical"> | |||
<TextView | |||
style="@style/WrapWrap" | |||
android:paddingLeft="@dimen/dp_15" | |||
android:paddingTop="@dimen/dp_28" | |||
android:paddingBottom="@dimen/dp_10" | |||
android:text="详情" | |||
android:textColor="@color/common_text_color" | |||
android:textSize="@dimen/sp_16" | |||
android:textStyle="bold" /> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginHorizontal="@dimen/dp_15" | |||
android:layout_marginVertical="@dimen/dp_10" | |||
android:background="@drawable/bg_white_radius" | |||
android:paddingHorizontal="@dimen/dp_15" | |||
android:paddingVertical="@dimen/dp_15"> | |||
<LinearLayout style="@style/MatchWrap.Horizontal"> | |||
<LinearLayout | |||
style="@style/AutoWrap.Vertical" | |||
android:layout_height="@dimen/dp_110" | |||
android:background="@drawable/bg_card_radius" | |||
android:visibility="visible"> | |||
<ImageView | |||
android:id="@+id/image1" | |||
style="@style/MatchAuto" | |||
android:layout_gravity="center" | |||
android:layout_marginHorizontal="@dimen/dp_10" | |||
android:layout_marginVertical="@dimen/dp_12" | |||
android:scaleType="centerCrop" | |||
android:src="@mipmap/identity_card1" | |||
tools:ignore="NestedWeights" /> | |||
<TextView | |||
android:layout_width="match_parent" | |||
android:layout_height="@dimen/dp_30" | |||
android:background="@drawable/home_unm_bg3" | |||
android:gravity="center" | |||
android:text="人像面" | |||
android:textColor="#FFFFFF" | |||
android:textSize="@dimen/sp_12" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/AutoWrap.Vertical" | |||
android:layout_height="@dimen/dp_110" | |||
android:layout_marginLeft="@dimen/dp_25" | |||
android:background="@drawable/bg_card_radius" | |||
android:visibility="visible"> | |||
<ImageView | |||
android:id="@+id/image2" | |||
style="@style/MatchAuto" | |||
android:layout_gravity="center" | |||
android:layout_marginHorizontal="@dimen/dp_10" | |||
android:layout_marginVertical="@dimen/dp_12" | |||
android:scaleType="centerCrop" | |||
android:src="@mipmap/identity_card2" | |||
tools:ignore="NestedWeights" /> | |||
<TextView | |||
android:id="@+id/choice2" | |||
android:layout_width="match_parent" | |||
android:layout_height="@dimen/dp_30" | |||
android:background="@drawable/home_unm_bg3" | |||
android:gravity="center" | |||
android:text="拍摄国徽面" | |||
android:textColor="#FFFFFF" | |||
android:textSize="@dimen/sp_12" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:id="@+id/LLContent" | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginTop="@dimen/dp_25"> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</androidx.core.widget.NestedScrollView> | |||
<Button | |||
android:id="@+id/btnNext" | |||
style="@style/BtnShortStyle" | |||
android:layout_gravity="center_vertical|center_horizontal" | |||
android:layout_marginLeft="@dimen/dp_30" | |||
android:layout_marginTop="@dimen/dp_30" | |||
android:layout_marginRight="@dimen/dp_30" | |||
android:text="下一步" | |||
android:textSize="@dimen/sp_16" /> | |||
</LinearLayout> |