Commit 982b82be authored by jianglx's avatar jianglx

我的邀请码页面给"收益","已邀请","已激活"三块添加跳转事件

parent 73c600ef
package com.rv.share; package com.rv.share;
import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AppCompatActivity;
...@@ -38,6 +39,12 @@ public class PopularizeActivity extends BaseStatusActivity<CommonPresenter> { ...@@ -38,6 +39,12 @@ public class PopularizeActivity extends BaseStatusActivity<CommonPresenter> {
private TabAdapter mAdapter; private TabAdapter mAdapter;
private int menuPosition; private int menuPosition;
public static Intent getIntent(Context context, int position) {
Intent intent = new Intent(context, PopularizeActivity.class);
intent.putExtra("position", position);
return intent;
}
@Override @Override
protected int setLayout() { protected int setLayout() {
return R.layout.activity_popularize; return R.layout.activity_popularize;
...@@ -46,6 +53,7 @@ public class PopularizeActivity extends BaseStatusActivity<CommonPresenter> { ...@@ -46,6 +53,7 @@ public class PopularizeActivity extends BaseStatusActivity<CommonPresenter> {
@Override @Override
protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) { protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) {
titleView.setTitle("我的推广"); titleView.setTitle("我的推广");
menuPosition = intent.getIntExtra("position", 0);
initRecyclerView(); initRecyclerView();
initViewpager(); initViewpager();
} }
......
...@@ -108,7 +108,7 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> { ...@@ -108,7 +108,7 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
} }
@OnClick({R2.id.tv_weixin, R2.id.tv_weixin_circle, R2.id.tv_bill, R2.id.tv_more, R2.id.tv_more_detail}) @OnClick({R2.id.tv_weixin, R2.id.tv_weixin_circle, R2.id.tv_bill, R2.id.tv_more, R2.id.tv_more_detail, R2.id.ll_activation, R2.id.ll_comein, R2.id.ll_invite})
public void onViewClicked(View view) { public void onViewClicked(View view) {
int id = view.getId(); int id = view.getId();
if (TextUtils.isEmpty(shareUrl)) { if (TextUtils.isEmpty(shareUrl)) {
...@@ -124,7 +124,13 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> { ...@@ -124,7 +124,13 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
} else if (id == R.id.tv_more) { } else if (id == R.id.tv_more) {
mPresenter.shareMore(shareUrl, "【滴房车】", "新人专享大礼包,快去领!"); mPresenter.shareMore(shareUrl, "【滴房车】", "新人专享大礼包,快去领!");
} else if (id == R.id.tv_more_detail) { } else if (id == R.id.tv_more_detail) {
startActivity(new Intent(this, PopularizeActivity.class)); startActivity(PopularizeActivity.getIntent(getApplicationContext(), 0));
} else if (id == R.id.ll_activation) {
startActivity(PopularizeActivity.getIntent(getApplicationContext(), 2));
} else if (id == R.id.ll_invite) {
startActivity(PopularizeActivity.getIntent(getApplicationContext(), 1));
} else if (id == R.id.ll_comein) {
startActivity(PopularizeActivity.getIntent(getApplicationContext(), 0));
} }
} }
......
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
android:weightSum="3"> android:weightSum="3">
<LinearLayout <LinearLayout
android:id="@+id/ll_comein"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
...@@ -178,6 +179,7 @@ ...@@ -178,6 +179,7 @@
android:background="@color/tv_gr999999" /> android:background="@color/tv_gr999999" />
<LinearLayout <LinearLayout
android:id="@+id/ll_invite"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
...@@ -207,6 +209,7 @@ ...@@ -207,6 +209,7 @@
android:background="@color/tv_gr999999" /> android:background="@color/tv_gr999999" />
<LinearLayout <LinearLayout
android:id="@+id/ll_activation"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
......
...@@ -47,7 +47,7 @@ public class ConsumeListAdapter extends BaseQuickAdapter<ConsumeListBean.Consume ...@@ -47,7 +47,7 @@ public class ConsumeListAdapter extends BaseQuickAdapter<ConsumeListBean.Consume
} else { } else {
builder.append("-"); builder.append("-");
} }
builder.append("").append(item.getAmount()); builder.append("¥").append(item.getAmount());
helper.setText(R.id.tv_amount, builder.toString()); helper.setText(R.id.tv_amount, builder.toString());
} }
......
...@@ -3,10 +3,8 @@ package com.xxrv.wallet.adapter; ...@@ -3,10 +3,8 @@ package com.xxrv.wallet.adapter;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.text.TextUtils; import android.text.TextUtils;
import com.base.utils.ui.image.round.RoundImageView;
import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder; import com.chad.library.adapter.base.BaseViewHolder;
import com.ruiwenliu.wrapper.util.glide.GlideManager;
import com.rv.component.utils.DateUtils; import com.rv.component.utils.DateUtils;
import com.xxrv.wallet.R; import com.xxrv.wallet.R;
import com.xxrv.wallet.bean.IncomeRecordsBean; import com.xxrv.wallet.bean.IncomeRecordsBean;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment