Просмотр исходного кода

售后订单 - 解除车牌占用 - 添加行驶证照片(左右排列)和车辆所有人

GZBranch
wufasong 2 недель назад
Родитель
Сommit
c0a09f0594

+ 20
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/after/ReleaseVehicleDetailActivity.java Просмотреть файл

@@ -15,6 +15,8 @@ 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.utils.ImgConfig;
import com.huntersun.vkyes.etcopencard.src.http.glide.GlideApp;
import com.huntersun.vkyes.etcopencard.project.tool.MyShared;
import com.huntersun.vkyes.etcopencard.project.utils.Constants;
import com.huntersun.vkyes.etcopencard.src.app.AppActivity;
@@ -144,6 +146,8 @@ public class ReleaseVehicleDetailActivity extends AppActivity implements TitleBa
detailData.plateNum = drivingInfo.getString("plateNum");
detailData.plateColor = drivingInfo.getString("plateColor");
detailData.vehicleOwnerName = drivingInfo.getString("vehicleOwnerName");
detailData.vehPosImgUrl = drivingInfo.getString("vehPosImgUrl");
detailData.vehNegImgUrl = drivingInfo.getString("vehNegImgUrl");
}
// 卡信息
@@ -288,6 +292,20 @@ public class ReleaseVehicleDetailActivity extends AppActivity implements TitleBa
}
binding.tvPlateColor.setText(detailData.plateColor != null ? getPlateColorText(detailData.plateColor) : "暂无");
// 车辆所有人
binding.tvVehicleOwnerName.setText(detailData.vehicleOwnerName != null ? detailData.vehicleOwnerName : "暂无");
// 行驶证照片
if (detailData.vehPosImgUrl != null && !detailData.vehPosImgUrl.isEmpty()) {
String imgUrl = ImgConfig.ImgIPChange(detailData.vehPosImgUrl);
GlideApp.with(this).load(imgUrl).into(binding.ivVehPosImg);
}
if (detailData.vehNegImgUrl != null && !detailData.vehNegImgUrl.isEmpty()) {
String imgUrl = ImgConfig.ImgIPChange(detailData.vehNegImgUrl);
GlideApp.with(this).load(imgUrl).into(binding.ivVehNegImg);
}
// 卡信息
binding.tvCardId.setText(detailData.cardId != null ? detailData.cardId : "暂无");
binding.tvCardEnableTime.setText(detailData.cardEnableTime != null ? detailData.cardEnableTime : "暂无");
@@ -400,6 +418,8 @@ public class ReleaseVehicleDetailActivity extends AppActivity implements TitleBa
public String plateNum;
public String plateColor;
public String vehicleOwnerName;
public String vehPosImgUrl; // 行驶证正面照片
public String vehNegImgUrl; // 行驶证反面照片
// 卡信息
public String cardId;

+ 117
- 0
app/src/main/res/layout/activity_release_vehicle_detail.xml Просмотреть файл

@@ -430,6 +430,123 @@
android:layout_height="@dimen/dp_16"
android:src="@mipmap/ic_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/divider_gray" />
<!-- 车辆所有人 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="·车辆所有人"
android:textColor="@color/black"
android:textSize="@dimen/sp_14" />
<TextView
android:id="@+id/tv_vehicle_owner_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="@dimen/dp_20"
android:text="暂无"
android:textColor="@color/text_gray"
android:textSize="@dimen/sp_14" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/divider_gray" />
<!-- 行驶证照片 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="@dimen/dp_10">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="·行驶证照片"
android:textColor="@color/black"
android:textSize="@dimen/sp_14"
android:layout_marginBottom="@dimen/dp_10" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_155"
android:gravity="center">
<!-- 行驶证正面 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="@dimen/dp_120"
android:layout_weight="1"
android:background="@drawable/home_unm_bg2"
android:orientation="vertical"
android:visibility="visible">
<ImageView
android:id="@+id/iv_veh_pos_img"
android:layout_width="87.5dp"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1"
android:src="@mipmap/identity_card1" />
<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>
<View
android:layout_width="@dimen/dp_20"
android:layout_height="0dp" />
<!-- 行驶证反面 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="@dimen/dp_120"
android:layout_weight="1"
android:background="@drawable/home_unm_bg2"
android:orientation="vertical"
android:visibility="visible">
<ImageView
android:id="@+id/iv_veh_neg_img"
android:layout_width="87.5dp"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1"
android:src="@mipmap/identity_card1" />
<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>
</LinearLayout>
</LinearLayout>
<!-- 卡信息 -->

Загрузка…
Отмена
Сохранить