|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
// pages/profile/orders.js
|
|
|
|
|
const toast = require('../../utils/toast.js')
|
|
|
|
|
Page({
|
|
|
|
|
data: {
|
|
|
|
|
currentTab: 'all',
|
|
|
|
@ -134,12 +135,21 @@ Page({
|
|
|
|
|
}, 1000);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 加载更多
|
|
|
|
|
loadMore: function () {
|
|
|
|
|
if (!this.data.isLoading && this.data.hasMoreOrders) {
|
|
|
|
|
this.loadOrders();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//雷雨田2025.8.30添加
|
|
|
|
|
confirmOrder() {
|
|
|
|
|
if (!this.data.address) {
|
|
|
|
|
wx.showToast({ title: '请选择地址', icon: 'none' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
wx.showToast({ title: '下单成功', icon: 'success' })
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 下拉刷新
|
|
|
|
|
onPullDownRefresh: function () {
|
|
|
|
|