个人中心广告位调整

This commit is contained in:
ningwenqiang 2024-11-06 14:20:13 +08:00
parent 5c0b5aabdb
commit dbc62fa439
2 changed files with 11 additions and 2 deletions

View File

@ -54,6 +54,7 @@ public class UserBean implements Parcelable {
private String token_rong = ""; private String token_rong = "";
private String noble_end_time; private String noble_end_time;
private String slide; private String slide;
private String slide_pic;
private String users_type; private String users_type;
private String is_bind; private String is_bind;
private String mobile; private String mobile;
@ -272,6 +273,14 @@ public class UserBean implements Parcelable {
return slide; return slide;
} }
public String getSlide_pic() {
return slide_pic;
}
public void setSlide_pic(String slide_pic) {
this.slide_pic = slide_pic;
}
public void setSlide(String slide) { public void setSlide(String slide) {
this.slide = slide; this.slide = slide;
} }

View File

@ -314,8 +314,8 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
private void showData(UserBean u, List<List<UserItemBean>> list) { private void showData(UserBean u, List<List<UserItemBean>> list) {
mBannerList.clear(); mBannerList.clear();
mBannerListNew.clear(); mBannerListNew.clear();
if (!StringUtil.isEmpty(u.getSlide())) { if (!StringUtil.isEmpty(u.getSlide_pic())) {
mBannerListNew.addAll(JSON.parseArray(u.getSlide(), SlideBean.class)); mBannerListNew.addAll(JSON.parseArray(u.getSlide_pic(), SlideBean.class));
for (SlideBean bean : mBannerListNew) { for (SlideBean bean : mBannerListNew) {
if (bean.getSlide_status().equals("1")) { if (bean.getSlide_status().equals("1")) {
mBannerList.add(bean); mBannerList.add(bean);