2026-04-03 00:47:20 +08:00

68 lines
1.5 KiB
JavaScript

Page({
data: {
loading: false,
noMore: false,
orders: [
{
id: 1,
eventName: '2024上海市学生运动会跳绳比赛',
statusText: '交易成功',
statusKey: 'success',
payTimeStr: '2025-08-05 16:26',
actualAmount: '859',
refundAmount: ''
},
{
id: 2,
eventName: '2024上海市学生运动会跳绳比赛',
statusText: '交易取消',
statusKey: 'cancelled',
payTimeStr: '2025-08-05 16:26',
actualAmount: '859',
refundAmount: '859'
},
{
id: 3,
eventName: '2024上海市学生运动会跳绳比赛',
statusText: '交易成功',
statusKey: 'success',
payTimeStr: '2025-08-05 16:26',
actualAmount: '859',
refundAmount: ''
},
{
id: 4,
eventName: '2024上海市学生运动会跳绳比赛',
statusText: '交易成功',
statusKey: 'success',
payTimeStr: '2025-08-05 16:26',
actualAmount: '859',
refundAmount: ''
}
]
},
onLoad() {},
onPullDownRefresh() {
wx.stopPullDownRefresh();
},
onBack() {
if (getCurrentPages().length > 1) {
wx.navigateBack();
} else {
wx.switchTab({ url: '/pages/mine/mine' });
}
},
onOrderTap(e) {
const { id } = e.currentTarget.dataset;
wx.navigateTo({ url: `/subpackages/mine/order-detail/order-detail?id=${id}` });
},
onLoadMore() {
// TODO: 分页加载
}
});