得物.apk(点击下载) / MerchantCouponItemView.java
package com.shizhuang.duapp.modules.mall_seller.merchant.apply.result.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.widget.font.FontText;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.MerchantRegisterCoupon;
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/mall_seller/merchant/apply/result/view/MerchantCouponItemView;", "Lcom/shizhuang/duapp/common/component/module/AbsModuleView;", "Lcom/shizhuang/duapp/modules/mall_seller/merchant/apply/model/MerchantRegisterCoupon;", "", "getLayoutId", "Landroid/content/Context;", "context", "Landroid/util/AttributeSet;", "attrs", "defStyleAttr", "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "du_mall_seller_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: MerchantCouponItemView.kt */
public final class MerchantCouponItemView extends AbsModuleView<MerchantRegisterCoupon> {
public static ChangeQuickRedirect changeQuickRedirect;
public HashMap b;
@JvmOverloads
public MerchantCouponItemView(@NotNull Context context) {
this(context, null, 0, 6);
}
@JvmOverloads
public MerchantCouponItemView(@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 */ MerchantCouponItemView(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, 223840, 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, 223838, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.layout_merchant_result_coupon;
}
/* 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(MerchantRegisterCoupon merchantRegisterCoupon) {
MerchantRegisterCoupon merchantRegisterCoupon2 = merchantRegisterCoupon;
if (!PatchProxy.proxy(new Object[]{merchantRegisterCoupon2}, this, changeQuickRedirect, false, 223839, new Class[]{MerchantRegisterCoupon.class}, Void.TYPE).isSupported) {
super.update(merchantRegisterCoupon2);
((DuImageLoaderView) _$_findCachedViewById(R.id.f40932bg)).i("https://cdn.poizon.com/node-common/4f74c3b0-e436-2aac-2340-775400406b37-885-193.png").x();
((FontText) _$_findCachedViewById(R.id.tvValue)).setText(String.valueOf(merchantRegisterCoupon2.getBenefitValue() / ((long) 100)));
((TextView) _$_findCachedViewById(R.id.tvSubtitle)).setText(merchantRegisterCoupon2.getThresholdDesc());
((TextView) _$_findCachedViewById(R.id.tvTimeLimitAward)).setText(merchantRegisterCoupon2.getTitle());
((TextView) _$_findCachedViewById(R.id.tvFreeShippingCountdown)).setText(String.valueOf(merchantRegisterCoupon2.getValidTime()));
((TextView) _$_findCachedViewById(R.id.tvFreeShippingCountChannel)).setText(String.valueOf(merchantRegisterCoupon2.getLimitDesc()));
}
}
@JvmOverloads
public MerchantCouponItemView(@NotNull Context context, @Nullable AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
}