🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**简要描述:** - 我的优惠券 **请求URL:** - ` api/coupon/myCoupon ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | |type |选填 |int |类型:0-未使用;1-已使用;2-已过期 | **返回示例** ``` { "code":1, "msg":"获取成功", "data":[ { "user_id":38, "coupon_id":2, "coupon_code":"kvV86324", "name":"满50减20", "money":"20.00", "coupon_type":"全场店铺可用", "use_time_tips":"2020.07.16 14:50-2020.07.16 14:50", "use_condition":"无金额门槛", "tips":"" }, { "user_id":38, "coupon_id":1, "coupon_code":"aiB47586", "name":"满50减20", "money":"20.20", "coupon_type":"全场店铺可用", "use_time_tips":"有效期至:2020.07.20 14:33", "use_condition":"满50", "tips":"" }, { "user_id":38, "coupon_id":4, "coupon_code":"WpP56279", "name":"哈哈哈", "money":"20.00", "coupon_type":"哈哈旗舰店可用", "use_time_tips":"1970.01.01 08:00-1970.01.01 08:00", "use_condition":"无金额门槛", "tips":"" }, { "user_id":38, "coupon_id":12, "coupon_code":"QJA28973", "name":"测试优惠券", "money":"200.00", "coupon_type":"哈哈旗舰店指定商品可用", "use_time_tips":"2020.07.16 00:00-2020.07.16 00:00", "use_condition":"无金额门槛", "tips":"商品Redmi K30 5G、 劲仔小鱼 鱼干鱼仔 零食 香辣味 15g*20包\/盒 、测试测试、点读机可用" }, { "user_id":38, "coupon_id":13, "coupon_code":"hBX75836", "name":"测试优惠券", "money":"200.00", "coupon_type":"哈哈旗舰店指定商品不可用", "use_time_tips":"2020.07.16 00:00-2020.07.16 00:00", "use_condition":"无金额门槛", "tips":"商品Redmi K30 5G不可用" } ], "show":0, "time":"0.291177", } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |user_id |int |用户id |coupon_id |int |优惠券id |coupon_code |int |优惠券券码 |name |string |优惠券名称 |money |float |优惠券面额 |coupon_type |string |优惠券类型 |use_time_tips |string |优惠券使用时间 |use_condition |string |使用条件 |tips |string |下拉提示 **备注** - 这里是备注信息