Commit 6b02b248 by 刘鹏

feat : 我的界面隐藏推广返利

parent b484462d
......@@ -8,7 +8,7 @@ ext {
"m-confide" : "0.0.49.19",
"m-consultant" : "0.0.60.02",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.91",
"m-user" : "0.0.61.93",
"m-home" : "0.0.22.84",
"m-im" : "0.0.20.88",
"m-dynamic" : "0.0.7.35",
......@@ -91,7 +91,7 @@ ext {
"m-confide" : "0.0.49.19",
"m-consultant" : "0.0.60.02",
"m-fm" : "0.0.30.07",
"m-user" : "0.0.61.91",
"m-user" : "0.0.61.93",
"m-home" : "0.0.22.83",
"m-im" : "0.0.20.88",
"m-dynamic" : "0.0.7.35",
......
......@@ -161,7 +161,6 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
getRootView().findViewById(R.id.ll_trade_order).setOnClickListener(this);
getRootView().findViewById(R.id.jtv_introduce).setOnClickListener(this);
getRootView().findViewById(R.id.iv_edit_info).setOnClickListener(this);
getRootView().findViewById(R.id.ll_reward).setOnClickListener(this);
getRootView().findViewById(R.id.ll_my_courses).setOnClickListener(this);
getRootView().findViewById(R.id.ll_red_packet).setOnClickListener(this);
getRootView().findViewById(R.id.ll_call_order).setOnClickListener(this);
......@@ -354,13 +353,16 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
private void setUserInfo(UserResponseBean.UserInfo userInfo) {
this.userInfoData = userInfo;
if (userInfo == null) return;
if (userInfo == null) {
return;
}
String nick_name = userInfo.getNick_name();
if (!TextUtils.isEmpty(nick_name))
if (!TextUtils.isEmpty(nick_name)) {
text_userName.setText(nick_name);
else
} else {
text_userName.setText("昵称未设置");
}
mAttentionTv.setText(String.valueOf(userInfo.getAttentionNum()));
mTendNumTv.setText(String.valueOf(userInfo.getTrendNum()));
......@@ -522,14 +524,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"壹点灵介绍");
H5Params params1 = new H5Params("https://m.yidianling.com/about", "网站介绍");
NewH5Activity.start(getActivity(), params1);
} else if (id == R.id.ll_reward) {
ActionCountUtils.Companion.count(YDL_USER_MY_MIDDLE_TYPE_CLICK,"推广返利");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
H5Params h5Param = new H5Params(HttpConfig.Companion.getH5_URL() + "course/invite-record", null);
NewH5Activity.start(getActivity(), h5Param);
} else if (id == R.id.btn_change) {
}else if (id == R.id.btn_change) {
} else if (id == R.id.jtv_test) {//debug下任意门入口
SimpleDateFormat sdf = new SimpleDateFormat();
sdf.applyPattern("yyyy-MM-dd HH:mm:ss");
......
......@@ -345,8 +345,9 @@
</RelativeLayout>
<LinearLayout
android:id="@+id/ll_reward"
android:id="@+id/ll_call_order"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
......@@ -358,13 +359,13 @@
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginTop="3dp"
android:src="@drawable/user_mine_ic_tuiguang" />
android:src="@drawable/user_mine_ic_qinshu_record" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="推广返利"
android:text="倾诉记录"
android:textColor="@color/platform_color_999999"
android:textSize="12sp" />
......@@ -403,30 +404,6 @@
android:layout_marginTop="28dp">
<LinearLayout
android:id="@+id/ll_call_order"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:layout_width="25dp"
android:layout_height="25dp"
android:src="@drawable/user_mine_ic_qinshu_record" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="倾诉记录"
android:textColor="@color/platform_color_999999"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_my_courses"
android:layout_width="0dp"
android:layout_height="wrap_content"
......@@ -453,7 +430,7 @@
<View
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2" />
android:layout_weight="3" />
</LinearLayout>
......
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