简要描述:

  • 获取未完成项目列表

请求URL:

GET/plugin.store-projects.frontend.project-order.get-un-finish-list

参数:

参数名 是否必须 类型 说明
lng float 经度
lat float 纬度
page int 页码
orderby int 排序方式:0-购买时间降序,1-购买时间升序,2-到期时间降序,3-到期时间升序

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "project_id": 2,
                "project_title": "测试项目2",
                "project_thumb": "https://localhost:82/attachment/images/2/2019/08/fv8mhb830HBd8d803zduMqSSHS88qu.png",
                "total_count": 20,
                "used_count": 0,
                "end_time": "2021-09-24 09:36:31",
                "rest_count": 20,
                "near_ending": 0,
                "store_name": "话的门店",
                "store_thumb": "http://localhost:82/addons/yun_shop/storage/app/avatars/store_applySl5RDnIJNR",
                "store_business_hours_start": "",
                "store_business_hours_end": "",
                "store_distance": 35.7000000000000028421709430404007434844970703125,
                "store_distance_unit": "km",
                "store_full_address": "浙江省 杭州市 下城区  测试"
            }
        ],
        "first_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://localhost:82/addons/yun_shop/api.php",
        "per_page": 10,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
id int 项目订单ID
project_id int 项目ID
project_title string 项目名称
project_thumb string 缩略图
total_count int 可核销总次数
used_count int 已核销次数
rest_count int 未使用数量
end_time string 使用截止日期
near_ending int 是否即将到期,0-否1-是
store_name string 门店名称
store_thumb string 门店缩略图
store_business_hours_start string 门店营业时间开始
store_business_hours_end string 门店营业时间结束
store_full_address string 门店地址
store_distance float 门店距离
store_distance_unit string 门店距离单位

备注:

  • 更多返回错误代码请看首页的错误代码描述