.class public Lcom/moji/member/MemberOrderActivity;
.super Lcom/moji/base/MJActivity;
.source "MemberOrderActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/moji/member/adapter/MemberOrderClickListener;
.implements Lcom/moji/member/presenter/MemberOrderPresenter$MemberCallback;


# annotations
.annotation build Lcom/moji/router/annotation/Router;
.end annotation


# instance fields
.field private a:Landroid/support/v7/widget/RecyclerView;

.field private b:Lcom/moji/member/presenter/MemberOrderPresenter;

.field private c:Lcom/moji/titlebar/MJTitleBar;

.field private i:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

.field private j:Lcom/moji/imageview/RoundCornerImageView;

.field private k:Landroid/widget/TextView;

.field private l:Landroid/widget/TextView;

.field private m:Landroid/widget/TextView;

.field private n:Landroid/widget/TextView;

.field private o:Landroid/widget/LinearLayout;

.field private p:Lcom/moji/account/data/UserInfo;

.field private q:Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;

.field private r:Lcom/moji/member/adapter/MemberOrderAdapter;

.field private s:Landroid/widget/TextView;

.field private t:Lcom/moji/member/MemberPref;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 47
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/moji/member/MemberOrderActivity;)Lcom/moji/member/presenter/MemberOrderPresenter;
    .locals 0

    .line 47
    iget-object p0, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    return-object p0
.end method

.method private a()V
    .locals 4

    .line 90
    sget v0, Lcom/moji/member/R$id;->status_layout:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->i:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    .line 91
    sget v0, Lcom/moji/member/R$id;->re_member_order:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v7/widget/RecyclerView;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->a:Landroid/support/v7/widget/RecyclerView;

    .line 92
    sget v0, Lcom/moji/member/R$id;->member_order_title:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/titlebar/MJTitleBar;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->c:Lcom/moji/titlebar/MJTitleBar;

    .line 93
    sget v0, Lcom/moji/member/R$id;->ri_member_heard:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/imageview/RoundCornerImageView;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->j:Lcom/moji/imageview/RoundCornerImageView;

    .line 94
    sget v0, Lcom/moji/member/R$id;->tv_member_name:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->k:Landroid/widget/TextView;

    .line 95
    sget v0, Lcom/moji/member/R$id;->tv_member_time:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->l:Landroid/widget/TextView;

    .line 96
    sget v0, Lcom/moji/member/R$id;->tv_member_surplus:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->m:Landroid/widget/TextView;

    .line 97
    sget v0, Lcom/moji/member/R$id;->ll_member_surplus:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->o:Landroid/widget/LinearLayout;

    .line 98
    sget v0, Lcom/moji/member/R$id;->tv_member_alert:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->n:Landroid/widget/TextView;

    .line 99
    sget v0, Lcom/moji/member/R$id;->btn_active_card:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberOrderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->s:Landroid/widget/TextView;

    .line 100
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->a:Landroid/support/v7/widget/RecyclerView;

    new-instance v1, Landroid/support/v7/widget/LinearLayoutManager;

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-direct {v1, p0, v2, v3}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V

    invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V

    return-void
.end method

.method private b()V
    .locals 3

    .line 104
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->c:Lcom/moji/titlebar/MJTitleBar;

    sget v1, Lcom/moji/member/R$string;->member_pay:I

    invoke-virtual {p0, v1}, Lcom/moji/member/MemberOrderActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V

    .line 105
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->i:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V

    .line 106
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->i:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    new-instance v1, Lcom/moji/member/MemberOrderActivity$1;

    invoke-direct {v1, p0}, Lcom/moji/member/MemberOrderActivity$1;-><init>(Lcom/moji/member/MemberOrderActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V

    .line 112
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->j:Lcom/moji/imageview/RoundCornerImageView;

    invoke-virtual {v0, p0}, Lcom/moji/imageview/RoundCornerImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 113
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 114
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->n:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 115
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->s:Landroid/widget/TextView;

    new-instance v1, Lcom/moji/tool/drawable/MJStateDrawable;

    sget v2, Lcom/moji/member/R$drawable;->member_order_open_btn:I

    invoke-direct {v1, v2}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 116
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->s:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 117
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->VIP_PAY_LIST_SHOW:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 118
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->REDEEM_CODE_ENTRANCE_SHOW:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    return-void
.end method

.method private b(I)V
    .locals 3

    .line 257
    invoke-static {}, Lcom/moji/router/MJRouter;->a()Lcom/moji/router/MJRouter;

    move-result-object v0

    const-string v1, "login/bindMobile"

    invoke-virtual {v0, v1}, Lcom/moji/router/MJRouter;->a(Ljava/lang/String;)Lcom/moji/router/Postcard;

    move-result-object v0

    const-string v1, "member_title"

    sget v2, Lcom/moji/member/R$string;->member_login_title:I

    invoke-virtual {p0, v2}, Lcom/moji/member/MemberOrderActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/moji/router/Postcard;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/moji/router/Postcard;

    move-result-object v0

    invoke-virtual {v0, p0, p1}, Lcom/moji/router/Postcard;->a(Landroid/app/Activity;I)V

    return-void
.end method

.method private c()V
    .locals 3

    .line 122
    invoke-virtual {p0}, Lcom/moji/member/MemberOrderActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "source"

    const/4 v2, -0x1

    .line 124
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    if-eq v2, v0, :cond_0

    .line 126
    invoke-static {v0}, Lcom/moji/member/MojiVipManage;->a(I)V

    :cond_0
    return-void
.end method

.method private c(I)V
    .locals 3

    .line 261
    invoke-static {}, Lcom/moji/router/MJRouter;->a()Lcom/moji/router/MJRouter;

    move-result-object v0

    const-string v1, "login/snsCode"

    invoke-virtual {v0, v1}, Lcom/moji/router/MJRouter;->a(Ljava/lang/String;)Lcom/moji/router/Postcard;

    move-result-object v0

    const-string v1, "member_title"

    sget v2, Lcom/moji/member/R$string;->member_login_title:I

    invoke-virtual {p0, v2}, Lcom/moji/member/MemberOrderActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/moji/router/Postcard;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/moji/router/Postcard;

    move-result-object v0

    invoke-virtual {v0, p0, p1}, Lcom/moji/router/Postcard;->a(Landroid/app/Activity;I)V

    return-void
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    .line 223
    invoke-super {p0, p1, p2, p3}, Lcom/moji/base/MJActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/4 v0, 0x1

    const/4 v1, 0x5

    if-ne p1, v1, :cond_1

    .line 225
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberOrderPresenter;->a()V

    .line 226
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    if-eqz p1, :cond_6

    .line 227
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p1, p1, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->t:Lcom/moji/member/MemberPref;

    iget-object p2, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p2, p2, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {p1, p2}, Lcom/moji/member/MemberPref;->a(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 228
    invoke-direct {p0, v0}, Lcom/moji/member/MemberOrderActivity;->b(I)V

    goto/16 :goto_0

    .line 230
    :cond_0
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    iget-object p2, p0, Lcom/moji/member/MemberOrderActivity;->q:Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;

    iget-object p3, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p3, p3, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-virtual {p1, p2, p3}, Lcom/moji/member/presenter/MemberOrderPresenter;->a(Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_1
    if-ne p1, v0, :cond_2

    .line 234
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberOrderPresenter;->a()V

    .line 235
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    iget-object p2, p0, Lcom/moji/member/MemberOrderActivity;->q:Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;

    iget-object p3, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p3, p3, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-virtual {p1, p2, p3}, Lcom/moji/member/presenter/MemberOrderPresenter;->a(Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;Ljava/lang/String;)V

    .line 236
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->t:Lcom/moji/member/MemberPref;

    iget-object p2, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p2, p2, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {p1, p2}, Lcom/moji/member/MemberPref;->b(Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    const/4 v0, 0x2

    const/4 v1, 0x3

    if-ne p1, v0, :cond_3

    .line 238
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberOrderPresenter;->a()V

    .line 239
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    if-eqz p1, :cond_6

    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p1, p1, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_6

    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->t:Lcom/moji/member/MemberPref;

    iget-object p2, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p2, p2, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {p1, p2}, Lcom/moji/member/MemberPref;->a(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_6

    .line 240
    invoke-direct {p0, v1}, Lcom/moji/member/MemberOrderActivity;->b(I)V

    goto :goto_0

    :cond_3
    if-ne p1, v1, :cond_4

    .line 243
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberOrderPresenter;->a()V

    .line 244
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->t:Lcom/moji/member/MemberPref;

    iget-object p2, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object p2, p2, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {p1, p2}, Lcom/moji/member/MemberPref;->b(Ljava/lang/String;)V

    goto :goto_0

    :cond_4
    const/4 v0, 0x4

    if-ne p1, v0, :cond_6

    .line 245
    sget p1, Lcom/moji/member/MemberExCodeActivity;->exCodeResult:I

    if-ne p2, p1, :cond_6

    .line 246
    invoke-virtual {p3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object p1

    const/4 p2, 0x0

    if-eqz p1, :cond_5

    const-string p2, "memberCoupon"

    .line 249
    invoke-virtual {p1, p2}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object p1

    move-object p2, p1

    check-cast p2, Lcom/moji/http/msc/entity/MemberCoupon$MemberCouponDetail;

    .line 251
    :cond_5
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1, p0, p2}, Lcom/moji/member/presenter/MemberOrderPresenter;->a(Landroid/app/Activity;Lcom/moji/http/msc/entity/MemberCoupon$MemberCouponDetail;)V

    .line 252
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberOrderPresenter;->c()V

    :cond_6
    :goto_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 265
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    .line 266
    sget v0, Lcom/moji/member/R$id;->ri_member_heard:I

    if-eq p1, v0, :cond_2

    sget v0, Lcom/moji/member/R$id;->tv_member_name:I

    if-ne p1, v0, :cond_0

    goto :goto_0

    .line 271
    :cond_0
    sget v0, Lcom/moji/member/R$id;->tv_member_alert:I

    if-ne p1, v0, :cond_1

    .line 272
    new-instance p1, Landroid/content/Intent;

    const-class v0, Lcom/moji/webview/BrowserActivity;

    invoke-direct {p1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v0, "title"

    .line 273
    sget v1, Lcom/moji/member/R$string;->member_url:I

    invoke-virtual {p0, v1}, Lcom/moji/member/MemberOrderActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "target_url"

    const-string v1, "https://promo.moji.com/app_webview/vip/service_agmnt.html"

    .line 274
    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 275
    invoke-virtual {p0, p1}, Lcom/moji/member/MemberOrderActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_1

    .line 276
    :cond_1
    sget v0, Lcom/moji/member/R$id;->btn_active_card:I

    if-ne p1, v0, :cond_3

    .line 277
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->REDEEM_CODE_ENTRANCE_CLICK:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p1, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 278
    new-instance p1, Landroid/content/Intent;

    const-class v0, Lcom/moji/member/MemberExCodeActivity;

    invoke-direct {p1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/4 v0, 0x4

    .line 279
    invoke-virtual {p0, p1, v0}, Lcom/moji/member/MemberOrderActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_1

    .line 267
    :cond_2
    :goto_0
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    if-nez p1, :cond_3

    .line 268
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->VIP_PAY_SIGN_IN_BUTTON_CLICK:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p1, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    const/4 p1, 0x2

    .line 269
    invoke-direct {p0, p1}, Lcom/moji/member/MemberOrderActivity;->c(I)V

    :cond_3
    :goto_1
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 72
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    .line 73
    sget p1, Lcom/moji/member/R$layout;->activity_member_order:I

    invoke-virtual {p0, p1}, Lcom/moji/member/MemberOrderActivity;->setContentView(I)V

    .line 74
    invoke-direct {p0}, Lcom/moji/member/MemberOrderActivity;->a()V

    .line 75
    invoke-direct {p0}, Lcom/moji/member/MemberOrderActivity;->b()V

    .line 76
    invoke-direct {p0}, Lcom/moji/member/MemberOrderActivity;->c()V

    .line 77
    new-instance p1, Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-direct {p1, p0}, Lcom/moji/member/presenter/MemberOrderPresenter;-><init>(Lcom/moji/member/presenter/MemberOrderPresenter$MemberCallback;)V

    iput-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    .line 78
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberOrderPresenter;->b()V

    .line 79
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberOrderPresenter;->a()V

    .line 80
    new-instance p1, Lcom/moji/member/MemberPref;

    invoke-direct {p1, p0}, Lcom/moji/member/MemberPref;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/moji/member/MemberOrderActivity;->t:Lcom/moji/member/MemberPref;

    return-void
.end method

.method protected onDestroy()V
    .locals 0

    .line 85
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onDestroy()V

    .line 86
    invoke-static {}, Lcom/moji/member/MojiVipManage;->a()V

    return-void
.end method

.method public onclick(Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;)V
    .locals 4

    .line 208
    iput-object p1, p0, Lcom/moji/member/MemberOrderActivity;->q:Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;

    .line 209
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->VIP_PAY_BUY_BUTTON_CLICK:Lcom/moji/statistics/EVENT_TAG;

    iget-wide v2, p1, Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;->standard_price:D

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 210
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    if-eqz v0, :cond_2

    .line 211
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object v0, v0, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->t:Lcom/moji/member/MemberPref;

    iget-object v1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object v1, v1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/moji/member/MemberPref;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x1

    .line 214
    invoke-direct {p0, p1}, Lcom/moji/member/MemberOrderActivity;->b(I)V

    goto :goto_1

    .line 212
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    iget-object v1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    iget-object v1, v1, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-virtual {v0, p1, v1}, Lcom/moji/member/presenter/MemberOrderPresenter;->a(Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;Ljava/lang/String;)V

    goto :goto_1

    :cond_2
    const/4 p1, 0x5

    .line 217
    invoke-direct {p0, p1}, Lcom/moji/member/MemberOrderActivity;->c(I)V

    :goto_1
    return-void
.end method

.method public showContent(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;",
            ">;)V"
        }
    .end annotation

    .line 137
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->i:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->b()V

    .line 138
    new-instance v0, Lcom/moji/member/adapter/MemberOrderAdapter;

    invoke-direct {v0, p1}, Lcom/moji/member/adapter/MemberOrderAdapter;-><init>(Ljava/util/List;)V

    iput-object v0, p0, Lcom/moji/member/MemberOrderActivity;->r:Lcom/moji/member/adapter/MemberOrderAdapter;

    .line 139
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->a:Landroid/support/v7/widget/RecyclerView;

    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->r:Lcom/moji/member/adapter/MemberOrderAdapter;

    invoke-virtual {p1, v0}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V

    .line 140
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->r:Lcom/moji/member/adapter/MemberOrderAdapter;

    invoke-virtual {p1, p0}, Lcom/moji/member/adapter/MemberOrderAdapter;->a(Lcom/moji/member/adapter/MemberOrderClickListener;)V

    return-void
.end method

.method public showErrorView(Lcom/moji/requestcore/MJException;)V
    .locals 0

    .line 132
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->i:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->E()V

    return-void
.end method

.method public showOpenFailed()V
    .locals 1

    .line 203
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {v0, p0}, Lcom/moji/member/presenter/MemberOrderPresenter;->b(Landroid/app/Activity;)V

    return-void
.end method

.method public showOpenSuccess()V
    .locals 1

    .line 198
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {v0, p0}, Lcom/moji/member/presenter/MemberOrderPresenter;->a(Landroid/app/Activity;)V

    return-void
.end method

.method public showOrder(Lcom/moji/http/msc/entity/MemberOrder;)V
    .locals 2

    if-eqz p1, :cond_0

    const-string v0, "MemberOrderActivity"

    .line 146
    invoke-virtual {p1}, Lcom/moji/http/msc/entity/MemberOrder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 147
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->b:Lcom/moji/member/presenter/MemberOrderPresenter;

    invoke-virtual {v0, p1, p0}, Lcom/moji/member/presenter/MemberOrderPresenter;->a(Lcom/moji/http/msc/entity/MemberOrder;Landroid/app/Activity;)V

    :cond_0
    return-void
.end method

.method public showOrderError(Lcom/moji/requestcore/MJException;)V
    .locals 0

    .line 153
    sget p1, Lcom/moji/member/R$string;->get_member_error:I

    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V

    return-void
.end method

.method public showUserInfo(Lcom/moji/account/data/UserInfo;)V
    .locals 6

    .line 158
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    invoke-virtual {v0}, Lcom/moji/account/data/UserInfo;->isVip()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    invoke-virtual {p1}, Lcom/moji/account/data/UserInfo;->isVip()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 159
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->r:Lcom/moji/member/adapter/MemberOrderAdapter;

    if-eqz v0, :cond_1

    .line 160
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->r:Lcom/moji/member/adapter/MemberOrderAdapter;

    invoke-virtual {v0}, Lcom/moji/member/adapter/MemberOrderAdapter;->c()V

    .line 163
    :cond_1
    iput-object p1, p0, Lcom/moji/member/MemberOrderActivity;->p:Lcom/moji/account/data/UserInfo;

    .line 164
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->k:Landroid/widget/TextView;

    iget-object v1, p1, Lcom/moji/account/data/UserInfo;->nick:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 165
    iget-object v0, p1, Lcom/moji/account/data/UserInfo;->face:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 166
    invoke-static {p0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object v0

    iget-object v1, p1, Lcom/moji/account/data/UserInfo;->face:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    sget v1, Lcom/moji/member/R$drawable;->default_user_face_male:I

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->a(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0}, Lcom/squareup/picasso/RequestCreator;->b()Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/member/MemberOrderActivity;->j:Lcom/moji/imageview/RoundCornerImageView;

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V

    goto :goto_0

    .line 168
    :cond_2
    invoke-static {p0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object v0

    sget v1, Lcom/moji/member/R$drawable;->default_user_face_male:I

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->a(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0}, Lcom/squareup/picasso/RequestCreator;->b()Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/member/MemberOrderActivity;->j:Lcom/moji/imageview/RoundCornerImageView;

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V

    .line 171
    :goto_0
    invoke-virtual {p1}, Lcom/moji/account/data/UserInfo;->isVip()Z

    move-result v0

    const/16 v1, 0x8

    if-eqz v0, :cond_4

    .line 172
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->l:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget v3, Lcom/moji/member/R$string;->member_end_time:I

    invoke-virtual {p0, v3}, Lcom/moji/member/MemberOrderActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p1, Lcom/moji/account/data/UserInfo;->expire_time:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v3

    const-string v5, "yyyy.MM.dd"

    invoke-static {v3, v4, v5}, Lcom/moji/tool/DateFormatTool;->a(JLjava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 174
    iget-object v0, p1, Lcom/moji/account/data/UserInfo;->remain_day:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_3

    .line 175
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->o:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 176
    iget-object v0, p0, Lcom/moji/member/MemberOrderActivity;->m:Landroid/widget/TextView;

    iget-object p1, p1, Lcom/moji/account/data/UserInfo;->remain_day:Ljava/lang/String;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 178
    :cond_3
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->o:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    .line 181
    :cond_4
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->l:Landroid/widget/TextView;

    sget v0, Lcom/moji/member/R$string;->member_not_open:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 182
    iget-object p1, p0, Lcom/moji/member/MemberOrderActivity;->o:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_1
    return-void
.end method

.method public updateUserInfoFailed()V
    .locals 1

    .line 193
    sget v0, Lcom/moji/member/R$string;->member_open_failed:I

    invoke-static {v0}, Lcom/moji/tool/ToastTool;->a(I)V

    return-void
.end method

.method public updateUserInfoSuccess(Lcom/moji/account/data/UserInfo;)V
    .locals 0

    return-void
.end method
