xz
litian
2024-08-30 485fcbbc57cbf7495286359250135c482ec1360a
pages/personalCenter/index.js
@@ -1,4 +1,5 @@
const app = getApp();
import moment from 'moment'
import {
  loginInfo
} from '../../assets/js/login';
@@ -17,7 +18,7 @@
  {
    title: '我的证书',
    icon: '/static/images/personal/certificate.png',
    url: '',
    url: '/pages/personalCenter/certificate/index',
    type: 'certificate',
  },
  {
@@ -47,7 +48,7 @@
  {
    title: '出书申请',
    icon: '/static/images/personal/chushu.png',
    url: '',
    url: '/packagePersonal/pages/publishBooks/index',
    type: 'publishBooks',
  }
];
@@ -153,6 +154,7 @@
            currAuthStep: 2,
          });
          this.getUserInfo()
          this.getIntegral()
        }
      })
    } else {
@@ -160,6 +162,7 @@
        currAuthStep: 3,
      });
      this.getUserInfo()
      this.getIntegral()
    }
  },
  /**
@@ -170,6 +173,7 @@
      'baseRefresh.value': true,
    })
    this.getUserInfo()
    this.getIntegral()
    wx.stopPullDownRefresh()
  },
  /**
@@ -331,6 +335,25 @@
    });
  },
  getIntegral() {
    app.MG.store
      .getUserWallet({
        type: 'integral'
      })
      .then((res) => {
        this.setData({
          integral: res.balance,
        });
      })
  },
  getIntegralList() {
    wx.navigateTo({
      url: `/pages/personalCenter/pointsRecord/index`,
    });
  },
  //点击目录
  toPages(item) {
    let info = item.currentTarget.dataset.info