You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
1.9 KiB
109 lines
1.9 KiB
// pages/user/user.js
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
user_name: '马成泽',
|
|
user_tip: '欢迎来到星途~',
|
|
balance: 300,
|
|
user_data: [
|
|
{
|
|
name: '我的收藏夹',
|
|
img: '/images/ic_scscj@3x.png',
|
|
url: '/pages/user/subpage/newest/newest'
|
|
},{
|
|
name: '我的任务',
|
|
img: '/images/ic_wdrw@3x.png',
|
|
url: '/pages/user/subpage/quest/quest'
|
|
},{
|
|
name: '通用教程',
|
|
img: '/images/ic_tyjc@3x.png',
|
|
url: '/pages/user/subpage/tutorial/tutorial'
|
|
}
|
|
],
|
|
skills: [
|
|
{
|
|
name: "账号关联",
|
|
image: '/images/ic_zhgl@3x.png',
|
|
url: '/pages/user/subpage/relation/relation'
|
|
},{
|
|
name: "系统消息",
|
|
image: '/images/ic_xtxx@3x.png',
|
|
url: '/pages/user/subpage/system/system'
|
|
},{
|
|
name: "线索收集",
|
|
image: '/images/ic_xxsj@3x.png',
|
|
url: '/pages/user/subpage/colllection/colllection'
|
|
},{
|
|
name: "设置",
|
|
image: '/images/ic_sz@3x.png',
|
|
url: '/pages/user/subpage/setup/setup'
|
|
},
|
|
]
|
|
},
|
|
to(e){
|
|
wx.navigateTo({
|
|
url: e.currentTarget.dataset.url,
|
|
})
|
|
},
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad(options) {
|
|
wx.setNavigationBarTitle({
|
|
title: '',
|
|
success: function (res) {}
|
|
})
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
onReady() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面显示
|
|
*/
|
|
onShow() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面隐藏
|
|
*/
|
|
onHide() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面卸载
|
|
*/
|
|
onUnload() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
*/
|
|
onPullDownRefresh() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面上拉触底事件的处理函数
|
|
*/
|
|
onReachBottom() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 用户点击右上角分享
|
|
*/
|
|
onShareAppMessage() {
|
|
|
|
}
|
|
}) |