闫增涛
2024-12-16 1fa2461678d7f93b88f5666c4898e5b6c72080f3
pages/personalCenter/index.js
@@ -1,4 +1,5 @@
const app = getApp();
import moment from 'moment'
import {
  loginInfo
} from '../../assets/js/login';
@@ -17,7 +18,8 @@
  {
    title: '我的证书',
    icon: '/static/images/personal/certificate.png',
    url: '',
    // url: '',
    url: '/pages/personalCenter/certificate/index',
    type: 'certificate',
  },
  {
@@ -41,14 +43,28 @@
  {
    title: '我的上传',
    icon: '/static/images/personal/upload.png',
    url: '',
    // url: '',
    url: '/pages/personalCenter/myUpload/index',
    type: 'upload',
  },
  {
    title: '出书申请',
    icon: '/static/images/personal/chushu.png',
    url: '',
    // url: '',
    url: '/packagePersonal/pages/publishBooks/index',
    type: 'publishBooks',
  },
  {
    title: '我的课程',
    icon: '/static/images/personal/course.png',
    url: '/packageCourse/pages/course/index',
    type: 'course',
  },
  {
    title: '我的班级',
    icon: '/static/images/personal/class.png',
    url: '/packageCourse/pages/studentClass/index',
    type: 'class',
  }
];
const moreMenu = [{
@@ -153,6 +169,7 @@
            currAuthStep: 2,
          });
          this.getUserInfo()
          this.getIntegral()
        }
      })
    } else {
@@ -160,6 +177,7 @@
        currAuthStep: 3,
      });
      this.getUserInfo()
      this.getIntegral()
    }
  },
  /**
@@ -170,6 +188,8 @@
      'baseRefresh.value': true,
    })
    this.getUserInfo()
    this.getIntegral()
    wx.stopPullDownRefresh()
  },
  /**
   * 页面上拉触底事件的处理函数
@@ -330,6 +350,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
@@ -365,7 +404,15 @@
      isWhite: data
    })
  },
  // delectBtn() {
  //   app.MG.ugc
  //     .delTopicMessage({
  //       messageIds: [2986, 1302, 1301, 3074, 1305, 1304]
  //     })
  //     .then((res) => {
  //       console.log('删除成功')
  //     })
  // },
  /**
   * 用户点击右上角分享