最近发帖数->总发帖数

最近访客数->总访客数
0515
panqihua 5 years ago
parent 107a24f1ec
commit fd31332b20
  1. 20
      app/src/main/java/com/community/pocket/data/model/MyInfo.java
  2. 4
      app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java
  3. 4
      app/src/main/res/values-zh-rCN/strings.xml

@ -10,9 +10,9 @@ public class MyInfo {
//头像 //头像
private String headImg; private String headImg;
//最近发帖数 //最近发帖数
private Integer recentPosts; private Integer posts;
//最近访客数 //最近访客数
private Integer recentVisitors; private Integer visitors;
//手机号 //手机号
private String mobie; private String mobie;
//邮箱 //邮箱
@ -45,20 +45,20 @@ public class MyInfo {
this.headImg = headImg; this.headImg = headImg;
} }
public Integer getRecentPosts() { public Integer getPosts() {
return recentPosts; return posts;
} }
public void setRecentPosts(Integer recentPosts) { public void setPosts(Integer posts) {
this.recentPosts = recentPosts; this.posts = posts;
} }
public Integer getRecentVisitors() { public Integer getVisitors() {
return recentVisitors; return visitors;
} }
public void setRecentVisitors(Integer recentVisitors) { public void setVisitors(Integer visitors) {
this.recentVisitors = recentVisitors; this.visitors = visitors;
} }
public String getMobie() { public String getMobie() {

@ -194,8 +194,8 @@ public class InfoFragment extends BaseFragment {
private void loadInfo(MyInfo myInfo) { private void loadInfo(MyInfo myInfo) {
nickname.setText(getString(R.string.nick_name, myInfo.getUsername())); nickname.setText(getString(R.string.nick_name, myInfo.getUsername()));
creditScore.setText(getString(R.string.credit_score, myInfo.getCreditScore())); creditScore.setText(getString(R.string.credit_score, myInfo.getCreditScore()));
recentVisitors.setText(getString(R.string.recent_visitors, myInfo.getRecentVisitors())); recentVisitors.setText(getString(R.string.recent_visitors, myInfo.getVisitors()));
recentPosts.setText(getString(R.string.recent_posts, myInfo.getRecentPosts())); recentPosts.setText(getString(R.string.recent_posts, myInfo.getPosts()));
mobie.setText(myInfo.getMobie()); mobie.setText(myInfo.getMobie());
email.setText(myInfo.getEmail()); email.setText(myInfo.getEmail());

@ -41,8 +41,8 @@
<string name="modify_password">修改密码</string> <string name="modify_password">修改密码</string>
<string name="mobie">手机号绑定</string> <string name="mobie">手机号绑定</string>
<string name="email">邮箱绑定</string> <string name="email">邮箱绑定</string>
<string name="recent_posts">最近发帖数 :%1$d</string> <string name="recent_posts">发帖数 :%1$d</string>
<string name="recent_visitors">最近访客数:%1$d</string> <string name="recent_visitors">访客数:%1$d</string>
<string name="active_history">信用分活动记录</string> <string name="active_history">信用分活动记录</string>
<string name="notice_author">公告管理员:%1s</string> <string name="notice_author">公告管理员:%1s</string>
<string name="notice_content_load">加载公告内容中。。。。</string> <string name="notice_content_load">加载公告内容中。。。。</string>

Loading…
Cancel
Save