| | |
| | | const app = getApp(); |
| | | import moment from 'moment' |
| | | import { |
| | | loginInfo |
| | | } from '../../assets/js/login'; |
| | |
| | | { |
| | | title: '我的证书', |
| | | icon: '/static/images/personal/certificate.png', |
| | | url: '', |
| | | url: '/pages/personalCenter/certificate/index', |
| | | type: 'certificate', |
| | | }, |
| | | { |
| | |
| | | { |
| | | 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', |
| | | } |
| | | ]; |
| | |
| | | currAuthStep: 2, |
| | | }); |
| | | this.getUserInfo() |
| | | this.getIntegral() |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | currAuthStep: 3, |
| | | }); |
| | | this.getUserInfo() |
| | | this.getIntegral() |
| | | } |
| | | }, |
| | | /** |
| | |
| | | 'baseRefresh.value': true, |
| | | }) |
| | | this.getUserInfo() |
| | | this.getIntegral() |
| | | wx.stopPullDownRefresh() |
| | | }, |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | |
| | | }); |
| | | }, |
| | | |
| | | 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 |