完成简易版的充值和充值记录查询页面,简单的我的页面
This commit is contained in:
93
pages/rechargeRecord/index.js
Normal file
93
pages/rechargeRecord/index.js
Normal file
@@ -0,0 +1,93 @@
|
||||
import { getYears } from "../../utils/index";
|
||||
|
||||
// pages/rechargeRecord/index.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
year: new Date().getFullYear(),
|
||||
month: new Date().getMonth() + 1,
|
||||
years: getYears(),
|
||||
list: [
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" },
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" },
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" },
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" },
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" },
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" },
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" },
|
||||
{ code: '165146513', money: 100, time: "2024-02-20 18:56:15" },
|
||||
{ code: '466541651', money: 200, time: "2024-02-28 18:56:15" }
|
||||
]
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
onChangeYear(e) {
|
||||
const { years } = this.data;
|
||||
this.setData({
|
||||
year: years[Number(e.detail.value)]
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user