feat: 增加小程序服务预约和订单页面

This commit is contained in:
que01 committed 2026-09-19 10:37:51 +08:00
1 parent 63e5e3bd7b
commit 6a66d20b81
14 files changed
+41 -1

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
const API='http://localhost:3001';
Page({data:{loading:true,bookings:[]},onLoad(){this.load()},onShow(){this.load()},load(){const token=wx.getStorageSync('customerToken');if(!token){this.setData({loading:false});return}wx.request({url:API+'/customer/bookings',header:{Authorization:'Bearer '+token},success:r=>this.setData({bookings:r.data,loading:false}),fail:()=>this.setData({loading:false})})}});