得物.apk(点击下载) / DeliveryDetailPickUpInfoView.java


package com.shizhuang.duapp.modules.depositv2.module.delivery_manage.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.component.module.AbsModuleView;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.depositv2.module.delivery_manage.model.AppointmentOrderBean;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.jvm.JvmOverloads;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {}, d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B'\b\u0007\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u0012\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0007\u0012\b\b\u0002\u0010\t\u001a\u00020\u0003¢\u0006\u0004\b\n\u0010\u000bJ\b\u0010\u0004\u001a\u00020\u0003H\u0016¨\u0006\f"}, d2 = {"Lcom/shizhuang/duapp/modules/depositv2/module/delivery_manage/view/DeliveryDetailPickUpInfoView;", "Lcom/shizhuang/duapp/common/component/module/AbsModuleView;", "Lcom/shizhuang/duapp/modules/depositv2/module/delivery_manage/model/AppointmentOrderBean;", "", "getLayoutId", "Landroid/content/Context;", "context", "Landroid/util/AttributeSet;", "attrs", "defStyleAttr", "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "du_deposit_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: DeliveryDetailPickUpInfoView.kt */
public final class DeliveryDetailPickUpInfoView extends AbsModuleView<AppointmentOrderBean> {
    public static ChangeQuickRedirect changeQuickRedirect;
    public HashMap b;

    @JvmOverloads
    public DeliveryDetailPickUpInfoView(@NotNull Context context) {
        this(context, null, 0, 6);
    }

    @JvmOverloads
    public DeliveryDetailPickUpInfoView(@NotNull Context context, @Nullable AttributeSet attributeSet) {
        this(context, attributeSet, 0, 4);
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DeliveryDetailPickUpInfoView(Context context, AttributeSet attributeSet, int i, int i3) {
        this(context, (i3 & 2) != 0 ? null : attributeSet, (i3 & 4) != 0 ? 0 : i);
    }

    public View _$_findCachedViewById(int i) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 91739, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.b == null) {
            this.b = new HashMap();
        }
        View view = (View) this.b.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.b.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    @Override // com.shizhuang.duapp.common.component.module.AbsModuleView
    public int getLayoutId() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 91737, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.layout_delivery_detail_pick_up_info;
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
    @Override // com.shizhuang.duapp.common.component.module.IModuleView, com.shizhuang.duapp.common.component.module.AbsModuleView
    public void update(AppointmentOrderBean appointmentOrderBean) {
        AppointmentOrderBean appointmentOrderBean2 = appointmentOrderBean;
        int i = 0;
        if (!PatchProxy.proxy(new Object[]{appointmentOrderBean2}, this, changeQuickRedirect, false, 91738, new Class[]{AppointmentOrderBean.class}, Void.TYPE).isSupported) {
            super.update(appointmentOrderBean2);
            ((DuImageLoaderView) _$_findCachedViewById(R.id.ivExpressLogo)).i(appointmentOrderBean2.getCompanyPicUrl()).x();
            ((TextView) _$_findCachedViewById(R.id.tvExpressCompany)).setText(appointmentOrderBean2.getCompany());
            ((TextView) _$_findCachedViewById(R.id.tvExpressNo)).setText(appointmentOrderBean2.getExpressNo());
            ((TextView) _$_findCachedViewById(R.id.tvTakeCode)).setText(appointmentOrderBean2.getPickUpCode());
            ((TextView) _$_findCachedViewById(R.id.tvTime)).setText(appointmentOrderBean2.getDuration());
            ((TextView) _$_findCachedViewById(R.id.tvCode)).setText(appointmentOrderBean2.getCourierStaffCode());
            ((TextView) _$_findCachedViewById(R.id.tvPhone)).setText(appointmentOrderBean2.getCourierTel());
            ((DuImageLoaderView) _$_findCachedViewById(R.id.iconMobile)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/merchant/mobile_icon.png").x();
            DuImageLoaderView duImageLoaderView = (DuImageLoaderView) _$_findCachedViewById(R.id.iconMobile);
            if (!(!appointmentOrderBean2.getDefaultCourierTel())) {
                i = 8;
            }
            duImageLoaderView.setVisibility(i);
            ViewExtensionKt.j((DuImageLoaderView) _$_findCachedViewById(R.id.iconMobile), 0, new DeliveryDetailPickUpInfoView$update$1(this, appointmentOrderBean2), 1);
        }
    }

    @JvmOverloads
    public DeliveryDetailPickUpInfoView(@NotNull Context context, @Nullable AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
    }
}