得物.apk(点击下载) / MerchantApplySuccessActivity.java
package com.shizhuang.duapp.modules.mall_seller.merchant.apply.result;
import a40.j;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelLazy;
import androidx.recyclerview.widget.RecyclerView;
import cd.c;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.fastjson.JSONObject;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
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.NormalModuleAdapter;
import com.shizhuang.duapp.common.component.recyclerview.LinearItemDecoration;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuScaleType;
import com.shizhuang.duapp.modules.du_mall_common.constant.MallABTest;
import com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.views.countdown.CountDownTimerViewModel;
import com.shizhuang.duapp.modules.mall_seller.http.SellerApi;
import com.shizhuang.duapp.modules.mall_seller.http.SellerFacade;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.MerchantRegisterCoupon;
import java.util.HashMap;
import jn.b;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.TuplesKt;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.jvm.JvmField;
import kotlin.jvm.internal.Reflection;
import mv0.a;
import rd.g;
import td.s;
@Route(path = "/product/MerchantApplyResultPage")
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/shizhuang/duapp/modules/mall_seller/merchant/apply/result/MerchantApplySuccessActivity;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "<init>", "()V", "du_mall_seller_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: MerchantApplySuccessActivity.kt */
public final class MerchantApplySuccessActivity extends BaseLeftBackActivity {
public static ChangeQuickRedirect changeQuickRedirect;
@Autowired
@JvmField
/* renamed from: c reason: collision with root package name */
public int f20229c;
@Autowired
@JvmField
public boolean d;
public final Lazy e = new ViewModelLazy(Reflection.getOrCreateKotlinClass(CountDownTimerViewModel.class), new MerchantApplySuccessActivity$$special$$inlined$viewModels$2(this), new MerchantApplySuccessActivity$$special$$inlined$viewModels$1(this));
public final NormalModuleAdapter f;
/* renamed from: g reason: collision with root package name */
public HashMap f20230g;
public class _boostWeave {
public static ChangeQuickRedirect changeQuickRedirect;
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onCreate")
@Keep
public static void ActivityMethodWeaver_onCreate(@Nullable MerchantApplySuccessActivity merchantApplySuccessActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{merchantApplySuccessActivity, bundle}, null, changeQuickRedirect, true, 223802, new Class[]{MerchantApplySuccessActivity.class, Bundle.class}, Void.TYPE).isSupported) {
b bVar = b.f34396a;
if (!bVar.b()) {
bVar.d(true);
}
long currentTimeMillis = System.currentTimeMillis();
MerchantApplySuccessActivity.e(merchantApplySuccessActivity, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (merchantApplySuccessActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.result.MerchantApplySuccessActivity")) {
bVar.activityOnCreateMethod(merchantApplySuccessActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void ActivityMethodWeaver_onResume(MerchantApplySuccessActivity merchantApplySuccessActivity) {
if (!PatchProxy.proxy(new Object[]{merchantApplySuccessActivity}, null, changeQuickRedirect, true, 223801, new Class[]{MerchantApplySuccessActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
MerchantApplySuccessActivity.d(merchantApplySuccessActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (merchantApplySuccessActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.result.MerchantApplySuccessActivity")) {
b.f34396a.activityOnResumeMethod(merchantApplySuccessActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void ActivityMethodWeaver_onStart(MerchantApplySuccessActivity merchantApplySuccessActivity) {
if (!PatchProxy.proxy(new Object[]{merchantApplySuccessActivity}, null, changeQuickRedirect, true, 223803, new Class[]{MerchantApplySuccessActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
MerchantApplySuccessActivity.f(merchantApplySuccessActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (merchantApplySuccessActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.result.MerchantApplySuccessActivity")) {
b.f34396a.activityOnStartMethod(merchantApplySuccessActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
}
public MerchantApplySuccessActivity() {
NormalModuleAdapter normalModuleAdapter = new NormalModuleAdapter(false, 1);
normalModuleAdapter.getDelegate().C(MerchantRegisterCoupon.class, 1, null, -1, true, null, null, new MerchantApplySuccessActivity$$special$$inlined$also$lambda$1(this));
Unit unit = Unit.INSTANCE;
this.f = normalModuleAdapter;
}
public static void d(MerchantApplySuccessActivity merchantApplySuccessActivity) {
if (!PatchProxy.proxy(new Object[0], merchantApplySuccessActivity, changeQuickRedirect, false, 223782, new Class[0], Void.TYPE).isSupported) {
super.onResume();
if (!PatchProxy.proxy(new Object[]{"商家入驻"}, a.f35758a, a.changeQuickRedirect, false, 232261, new Class[]{Object.class}, Void.TYPE).isSupported) {
i60.b.f33293a.b("trade_seller_central_pageview", "626", "", j.e(8, "page_title", "商家入驻"));
}
}
}
public static void e(MerchantApplySuccessActivity merchantApplySuccessActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, merchantApplySuccessActivity, changeQuickRedirect, false, 223794, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void f(MerchantApplySuccessActivity merchantApplySuccessActivity) {
if (!PatchProxy.proxy(new Object[0], merchantApplySuccessActivity, changeQuickRedirect, false, 223796, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public View _$_findCachedViewById(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 223791, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.f20230g == null) {
this.f20230g = new HashMap();
}
View view = (View) this.f20230g.get(Integer.valueOf(i));
if (view != null) {
return view;
}
View findViewById = findViewById(i);
this.f20230g.put(Integer.valueOf(i), findViewById);
return findViewById;
}
public final CountDownTimerViewModel g() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223778, new Class[0], CountDownTimerViewModel.class);
return (CountDownTimerViewModel) (proxy.isSupported ? proxy.result : this.e.getValue());
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public int getLayout() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223779, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_merchant_apply_success;
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initData() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223780, new Class[0], Void.TYPE).isSupported) {
if (this.f20229c == 1) {
((TextView) _$_findCachedViewById(R.id.tvDesc)).setVisibility(0);
((TextView) _$_findCachedViewById(R.id.tvDesc)).setText("恭喜您已入驻平台成为卖家,仅差一步即可成为艺术家");
ViewExtensionKt.o((TextView) _$_findCachedViewById(R.id.tvBtnAct));
ViewExtensionKt.r((DuImageLoaderView) _$_findCachedViewById(R.id.ivStatus), null, Integer.valueOf(fi.b.b((float) 50)), null, null, null, null, 61);
return;
}
ViewExtensionKt.o((TextView) _$_findCachedViewById(R.id.tvBtn));
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223786, new Class[0], Void.TYPE).isSupported) {
SellerFacade sellerFacade = SellerFacade.f20177a;
s withoutToast = new vt0.a(this, this).withoutToast();
if (!PatchProxy.proxy(new Object[]{withoutToast}, sellerFacade, SellerFacade.changeQuickRedirect, false, 222759, new Class[]{s.class}, Void.TYPE).isSupported) {
td.j.doRequest(((SellerApi) td.j.getJavaGoApi(SellerApi.class)).sendCoupon(g.c()), withoutToast);
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223789, new Class[0], Void.TYPE).isSupported) {
SellerFacade sellerFacade2 = SellerFacade.f20177a;
s withoutToast2 = new vt0.b(this, this).withoutToast();
if (!PatchProxy.proxy(new Object[]{withoutToast2}, sellerFacade2, SellerFacade.changeQuickRedirect, false, 222808, new Class[]{s.class}, Void.TYPE).isSupported) {
JSONObject jSONObject = new JSONObject();
jSONObject.put((Object) "key", (Object) MallABTest.Keys.MERCHANT_NAME);
jSONObject.put((Object) "value", (Object) "0");
td.j.doRequest(sellerFacade2.B().querySettlePersonalMerchantLinks(c.b(TuplesKt.to("abTests", CollectionsKt__CollectionsJVMKt.listOf(jSONObject)))), withoutToast2);
}
}
}
}
@Override // com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initView(@org.jetbrains.annotations.Nullable Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 223783, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.initView(bundle);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223784, new Class[0], Void.TYPE).isSupported) {
((RecyclerView) _$_findCachedViewById(R.id.recyclerView)).addItemDecoration(new LinearItemDecoration(0, fi.b.b((float) 6), 0, false, false, 24));
((RecyclerView) _$_findCachedViewById(R.id.recyclerView)).setAdapter(this.f);
}
g00.a.o((DuImageLoaderView) _$_findCachedViewById(R.id.ivStatus), "https://cdn.poizon.com/node-common/3047f9f4-382d-c2b1-6cb6-8d4ff352d215-128-230.gif", 1, true);
((DuImageLoaderView) _$_findCachedViewById(R.id.bgRecyclerView)).i("https://cdn.poizon.com/node-common/1753c1f6-b7f6-a8f1-faf7-bd7eb3ac0bc8-981-684.png").p0(DuScaleType.FIT_XY).x();
((DuImageLoaderView) _$_findCachedViewById(R.id.img1)).i("https://cdn.poizon.com/node-common/e118600b-573f-2266-f4fc-946e7c3fab7d-174-174.png").x();
((DuImageLoaderView) _$_findCachedViewById(R.id.bgMerchantMode)).i("https://cdn.poizon.com/node-common/dcf50432-8daa-cd36-be44-017b254c8ac8-474-192.png").x();
((DuImageLoaderView) _$_findCachedViewById(R.id.bgMerchantRecord)).i("https://cdn.poizon.com/node-common/8c88d064-3aa9-c21d-5905-a505b51078f7-474-192.png").x();
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223785, new Class[0], Void.TYPE).isSupported) {
setSupportActionBar(this.toolbar);
this.toolbar.setNavigationIcon(R.mipmap.ic_pay_close);
this.toolbar.setNavigationOnClickListener(new MerchantApplySuccessActivity$changeToolbarIcon$1(this));
}
com.shizhuang.duapp.common.extension.ViewExtensionKt.j((TextView) _$_findCachedViewById(R.id.tvBtn), 0, new MerchantApplySuccessActivity$initView$1(this), 1);
com.shizhuang.duapp.common.extension.ViewExtensionKt.j((TextView) _$_findCachedViewById(R.id.tvBtnAct), 0, new MerchantApplySuccessActivity$initView$2(this), 1);
}
}
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 223793, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
}
}
@Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223781, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onResume(this);
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 223795, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onStart(this);
}
}
}