最近发帖数->总发帖数

最近访客数->总访客数
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 Integer recentPosts;
private Integer posts;
//最近访客数
private Integer recentVisitors;
private Integer visitors;
//手机号
private String mobie;
//邮箱
@ -45,20 +45,20 @@ public class MyInfo {
this.headImg = headImg;
}
public Integer getRecentPosts() {
return recentPosts;
public Integer getPosts() {
return posts;
}
public void setRecentPosts(Integer recentPosts) {
this.recentPosts = recentPosts;
public void setPosts(Integer posts) {
this.posts = posts;
}
public Integer getRecentVisitors() {
return recentVisitors;
public Integer getVisitors() {
return visitors;
}
public void setRecentVisitors(Integer recentVisitors) {
this.recentVisitors = recentVisitors;
public void setVisitors(Integer visitors) {
this.visitors = visitors;
}
public String getMobie() {

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

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

Loading…
Cancel
Save