完善个人资料,
This commit is contained in:
parent
b5673025be
commit
f99bef4ac8
@ -1,6 +1,7 @@
|
|||||||
package com.yunbao.common.adapter;
|
package com.yunbao.common.adapter;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@ -48,12 +49,22 @@ public class DrawerTaskAdapter extends RecyclerView.Adapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getItemCount() {
|
public int getItemCount() {
|
||||||
return 2;
|
if (child.size()>3){
|
||||||
|
return 3;
|
||||||
|
}else {
|
||||||
|
return child.size();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateData(List<CustomSidebarChildModel> mChild) {
|
public void updateData(List<CustomSidebarChildModel> mChild) {
|
||||||
child.clear();
|
child.clear();
|
||||||
child.addAll(mChild);
|
child.addAll(mChild);
|
||||||
|
// for (CustomSidebarChildModel childModel : mChild) {
|
||||||
|
// if (TextUtils.equals("1", childModel.getIsShow())) {
|
||||||
|
// child.add(childModel);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,18 @@ public class CustomSidebarChildModel extends BaseModel {
|
|||||||
@SerializedName("activity_id")
|
@SerializedName("activity_id")
|
||||||
private String activityId;
|
private String activityId;
|
||||||
@SerializedName("flag")
|
@SerializedName("flag")
|
||||||
private String flag;
|
private String flag = "";
|
||||||
|
@SerializedName("is_show")
|
||||||
|
private String isShow;
|
||||||
|
|
||||||
|
public String getIsShow() {
|
||||||
|
return isShow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CustomSidebarChildModel setIsShow(String isShow) {
|
||||||
|
this.isShow = isShow;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public String getFlag() {
|
public String getFlag() {
|
||||||
return flag;
|
return flag;
|
||||||
|
@ -55,16 +55,22 @@ public class DrawerTaskChildViewHolder extends RecyclerView.ViewHolder {
|
|||||||
case "illumine":
|
case "illumine":
|
||||||
iconImg = R.mipmap.icon_052x;
|
iconImg = R.mipmap.icon_052x;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
iconImg = R.mipmap.icon_012x;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
ImgLoader.display(itemView.getContext(), iconImg, icon);
|
ImgLoader.display(itemView.getContext(), iconImg, icon);
|
||||||
StringBuffer titleBuffer = new StringBuffer();
|
StringBuffer titleBuffer = new StringBuffer();
|
||||||
titleBuffer
|
titleBuffer
|
||||||
.append(model.getTitle())
|
.append(model.getTitle());
|
||||||
.append("(")
|
if (!TextUtils.isEmpty(model.getNowNum())) {
|
||||||
.append(model.getNowNum())
|
titleBuffer.append("(")
|
||||||
.append("/")
|
.append(model.getNowNum())
|
||||||
.append(model.getNeedNum())
|
.append("/")
|
||||||
.append(")");
|
.append(model.getNeedNum())
|
||||||
|
.append(")");
|
||||||
|
}
|
||||||
|
|
||||||
title.setText(titleBuffer.toString());
|
title.setText(titleBuffer.toString());
|
||||||
subtitle.setText(model.getSubtitle());
|
subtitle.setText(model.getSubtitle());
|
||||||
if (TextUtils.equals(model.getStatus(), "0")) {
|
if (TextUtils.equals(model.getStatus(), "0")) {
|
||||||
@ -100,7 +106,7 @@ public class DrawerTaskChildViewHolder extends RecyclerView.ViewHolder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show( R.string.net_error);
|
ToastUtil.show(R.string.net_error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -65,7 +65,7 @@ public class DrawerTaskViewHolder extends RecyclerView.ViewHolder {
|
|||||||
.append(userInfo.getId())
|
.append(userInfo.getId())
|
||||||
.append("&token=")
|
.append("&token=")
|
||||||
.append(userInfo.getToken());
|
.append(userInfo.getToken());
|
||||||
}
|
}//资料
|
||||||
Bus.get().post(new CustomDrawerPopupEvent()
|
Bus.get().post(new CustomDrawerPopupEvent()
|
||||||
.setDisMiss(true)
|
.setDisMiss(true)
|
||||||
.setHtmlUrl(htmlUrl.toString())
|
.setHtmlUrl(htmlUrl.toString())
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/layout"
|
android:id="@+id/layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="58dp"
|
android:layout_height="63dp"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
android:layout_width="40dp"
|
android:layout_width="41dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="41dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginStart="9dp"
|
android:layout_marginStart="9dp"
|
||||||
android:scaleType="fitCenter" />
|
android:scaleType="fitCenter" />
|
||||||
@ -27,17 +27,6 @@
|
|||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/subtitle"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@id/title"
|
|
||||||
android:layout_marginStart="9dp"
|
|
||||||
android:layout_marginTop="4dp"
|
|
||||||
android:layout_toEndOf="@id/icon"
|
|
||||||
android:text="赠送送玫瑰 (5/5)"
|
|
||||||
android:textColor="#9A9A9A"
|
|
||||||
android:textSize="10sp" />
|
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/to_receive_layout"
|
android:id="@+id/to_receive_layout"
|
||||||
@ -59,5 +48,18 @@
|
|||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/subtitle"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@id/title"
|
||||||
|
android:layout_marginStart="9dp"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:layout_marginEnd="70dp"
|
||||||
|
android:layout_toLeftOf="@id/to_receive_layout"
|
||||||
|
android:layout_toEndOf="@id/icon"
|
||||||
|
android:text="赠送送玫瑰 (5/5)"
|
||||||
|
android:textColor="#9A9A9A"
|
||||||
|
android:textSize="10sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式、
|
//正式、
|
||||||
serverHost : "https://napi.yaoulive.com",
|
// serverHost : "https://napi.yaoulive.com",
|
||||||
// 测试
|
// 测试
|
||||||
// serverHost : "https://ceshi.yaoulive.com",
|
serverHost : "https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
//腾讯地图
|
//腾讯地图
|
||||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
@ -24,7 +24,7 @@ ext {
|
|||||||
baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB",
|
baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB",
|
||||||
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
||||||
// true表示谷歌支付 false
|
// true表示谷歌支付 false
|
||||||
isGooglePlay : false,
|
isGooglePlay : true,
|
||||||
//是否上报异常日志
|
//是否上报异常日志
|
||||||
isUploadLog : true
|
isUploadLog : true
|
||||||
]
|
]
|
||||||
|
@ -38,6 +38,7 @@ import com.yunbao.common.bean.LiveBean;
|
|||||||
import com.yunbao.common.bean.LoginData;
|
import com.yunbao.common.bean.LoginData;
|
||||||
import com.yunbao.common.bean.UserAreaBean;
|
import com.yunbao.common.bean.UserAreaBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
|
import com.yunbao.common.fragment.LoadingDialog;
|
||||||
import com.yunbao.common.http.CommonHttpConsts;
|
import com.yunbao.common.http.CommonHttpConsts;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
@ -208,11 +209,14 @@ public class LoginActivity extends AbsActivity {
|
|||||||
}
|
}
|
||||||
mLoginType = Constants.MOB_PHONE;
|
mLoginType = Constants.MOB_PHONE;
|
||||||
String uuid = DeviceUtils.getUniqueDeviceId();
|
String uuid = DeviceUtils.getUniqueDeviceId();
|
||||||
|
LoadingDialog loadingDialog = new LoadingDialog();
|
||||||
|
loadingDialog.show(getSupportFragmentManager(), "LoadingDialog");
|
||||||
|
loadingDialog.setShowText(getString(R.string.login_ing));
|
||||||
MainHttpUtil.login(phoneNum, pwd, uuid, new HttpCallback() {
|
MainHttpUtil.login(phoneNum, pwd, uuid, new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
onLoginSuccess(code, msg, info);
|
onLoginSuccess(code, msg, info);
|
||||||
|
loadingDialog.dismiss();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
hideKeyboard(mEditPwd);
|
hideKeyboard(mEditPwd);
|
||||||
|
Loading…
Reference in New Issue
Block a user