| | |
| | | const app = getApp() |
| | | const menuData = [ |
| | | { |
| | | const menuData = [{ |
| | | title: '我的订单', |
| | | icon: '/static/images/personal/order.png', |
| | | url: '/packagePersonal/pages/myOrder/index', |
| | |
| | | type: 'publishBooks', |
| | | } |
| | | ]; |
| | | const moreMenu = [ |
| | | { |
| | | const moreMenu = [{ |
| | | title: '我的消息', |
| | | icon: '/static/images/personal/notification.png', |
| | | url: '/packagePersonal/pages/myMassage/index', |
| | |
| | | type: 'feedback', |
| | | } |
| | | ]; |
| | | const moreMenu1 = [ |
| | | { |
| | | const moreMenu1 = [{ |
| | | title: '关于我们', |
| | | icon: '/static/images/personal/about.png', |
| | | url: '/packagePersonal/pages/aboutUs/index?types=jsek_aboutUs', |
| | |
| | | type: 'contact', |
| | | } |
| | | ]; |
| | | const userTypeList = [ |
| | | { |
| | | const userTypeList = [{ |
| | | lable: '中职教师', |
| | | value: 'vocSchoolTeachers' |
| | | }, |
| | |
| | | visible: false, |
| | | baseRefresh: { |
| | | value: false |
| | | } |
| | | }, |
| | | loadingProps: { |
| | | size: '50rpx', |
| | | }, |
| | | scrollTop: 0, |
| | | }, |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom() { |
| | | }, |
| | | onReachBottom() {}, |
| | | // 获取登录用户身份 |
| | | getUserInfo() { |
| | | app.MG.identity.getCurrentAppUser().then(res => { |
| | |
| | | }); |
| | | }, |
| | | tabUserTypeClick(e) { |
| | | console.log(e) |
| | | let { info } = e.currentTarget.dataset; |
| | | let { |
| | | info |
| | | } = e.currentTarget.dataset; |
| | | this.setData({ |
| | | userTypeActive: info.value, |
| | | }); |
| | | }, |
| | | submit() { |
| | | let userTypeInfo = { |
| | | requests: [ |
| | | { |
| | | data: JSON.stringify({ userType: this.data.userTypeActive }), |
| | | name: '用户类型', |
| | | type: 'userType' |
| | | } |
| | | ] |
| | | requests: [{ |
| | | data: JSON.stringify({ |
| | | userType: this.data.userTypeActive |
| | | }), |
| | | name: '用户类型', |
| | | type: 'userType' |
| | | }] |
| | | } |
| | | app.MG.identity.setAppUserInfo(userTypeInfo).then((res) => { |
| | | if (res) { |
| | |
| | | |
| | | //点击目录 |
| | | toPages(item) { |
| | | console.log(item) |
| | | let info = item.currentTarget.dataset.info |
| | | if (info.url) { |
| | | wx.navigateTo({ |
| | |
| | | |
| | | onScroll(e) { |
| | | this.setData({ |
| | | isWhite: e.scrollTop > 20 ? true : false |
| | | isWhite: e.detail.scrollTop > 10 ? true : false |
| | | }) |
| | | const { |
| | | scrollTop |
| | | } = e.detail; |
| | | this.setData({ |
| | | scrollTop |
| | | }); |
| | | }, |
| | | |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |