|
- // pages/mine/index.js
- Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- userInfo: {}, // 用户授权信息
- list: [
- {title: '我的反馈', type: 'feedback'},
- {title: '我的美拍', type: 'upload'}
- ]
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- this.getTabBar().setData({
- selected: 2
- })
- this.setData({
- userInfo: wx.getStorageSync('userInfo')
- })
- },
-
- goRecords(e) {
- const type = e.currentTarget.dataset.type
- if(type === 'feedback') {
- wx.navigateTo({
- url: '/package_B/pages/records/index',
- })
- } else {
- wx.navigateTo({
- url: '/package_B/pages/beauties/index',
- })
- }
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- }
- })
|