文档
测试

√界面加载

GET
/api/order/order/getLoadInfo

接口描述

页面加载-onLoad以及change函数中current=0的情况

说明 / 示例

>请求参数 ```json { "userId": 1 } ``` >响应参数 ```json { "code": 0, "data": { //查找userId为该用户的所有订单(discount不为null)的所有订单——即优惠卡信息 orderInfos: [{ storeId: 1, //主键 orderId: 1, //主键 storeName: "西安理工大学(曲江校区)", //订单表中的store_id对应店的store_title orderStatus: 0, //订单状态,0:未支付,1:已支付,2:正在使用,3:已完成,4:已取消,5:待评价 discountTitle: "预约订单", //固定都叫这个名字 discontDesc: "2021-8-10 14:00 - 2021-8-10 18:00", //start_time+" - "+end_time discountPrice: 20, //订单表中的pay_amount订单付出去的实际总金额 }], } } ```