litian
2024-09-06 266c7278841d2cbae5e9ab969ffd2efae1d0dda5
pages/personalCenter/index.js
@@ -1,4 +1,5 @@
const app = getApp();
import moment from 'moment'
import {
  loginInfo
} from '../../assets/js/login';
@@ -18,6 +19,7 @@
    title: '我的证书',
    icon: '/static/images/personal/certificate.png',
    url: '',
    // url: '/pages/personalCenter/certificate/index',
    type: 'certificate',
  },
  {
@@ -42,12 +44,14 @@
    title: '我的上传',
    icon: '/static/images/personal/upload.png',
    url: '',
    // url: '/pages/personalCenter/myUpload/index',
    type: 'upload',
  },
  {
    title: '出书申请',
    icon: '/static/images/personal/chushu.png',
    url: '',
    // url: '/packagePersonal/pages/publishBooks/index',
    type: 'publishBooks',
  }
];
@@ -153,6 +157,7 @@
            currAuthStep: 2,
          });
          this.getUserInfo()
          this.getIntegral()
        }
      })
    } else {
@@ -160,6 +165,7 @@
        currAuthStep: 3,
      });
      this.getUserInfo()
      this.getIntegral()
    }
  },
  /**
@@ -170,6 +176,8 @@
      'baseRefresh.value': true,
    })
    this.getUserInfo()
    this.getIntegral()
    wx.stopPullDownRefresh()
  },
  /**
   * 页面上拉触底事件的处理函数
@@ -330,6 +338,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