// pages/piano/rank/rank.js Page({ /** * 页面的初始数据 */ data: { nvabarData: { showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示 title: '排行榜', //导航栏 中间的标题 }, userHeader: "https://img2.baidu.com/it/u=555422902,1687437697&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500", tabList: ["本月排行榜", '30天排行榜', '7天排行榜'], textList: [ { "count": 12, "tips": "今日次数"}, { "count": 32, "tips": '月度次数' }, { "count": 45, "tips": '今日排名' } ], rankList: [ { "index": 1, "header": "https://img2.baidu.com/it/u=821017625,3715366885&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500", "name": "名字", "address": "xxxx", "count": "xx次cc时间", }, { "index": 2, "header": "https://img2.baidu.com/it/u=821017625,3715366885&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500", "name": "名字2", "address": "xxxx", "count": "xx次cc时间", }, { "index": 3, "header": "https://img2.baidu.com/it/u=821017625,3715366885&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500", "name": "名字2", "address": "xxxx", "count": "xx次cc时间", } ], selectIndex: 0 }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady() { }, /** * 生命周期函数--监听页面显示 */ onShow() { }, /** * 生命周期函数--监听页面隐藏 */ onHide() { }, /** * 生命周期函数--监听页面卸载 */ onUnload() { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh() { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom() { }, /** * 用户点击右上角分享 */ onShareAppMessage() { } })