feat: 增加小程序服务预约和订单页面
This commit is contained in:
1 parent
63e5e3bd7b
commit
6a66d20b81
14 files changed
+41
-1
No files matched your search
@@ -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})})}});
|
||||
Reference in new issue
Block a user