#### 代金券列表
~~~[api]
get:/index.php?ctl=Buyer_Voucher&met=voucher&typ=json&state=&pagesize=20&curpage=1
*string:k=默认值#加密字符
u#用户id
curpage#分页时+1
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "16",
"records": "16",
"items": [
{
"voucher_id": "826",
"voucher_code": "",
"voucher_t_id": "31",
"voucher_title": "hp01的代金券",
"voucher_desc": "呵呵",
"voucher_start_date": "2017-07-22 12:30:42",
"voucher_end_date": "2018-07-18",
"voucher_price": "100.00",
"voucher_limit": "600",
"voucher_shop_id": "25",
"voucher_state": "1",
"voucher_active_date": "2018-01-29 16:47:06",
"voucher_type": "0",
"voucher_owner_id": "10014",
"voucher_owner_name": "tanyunfei",
"voucher_order_id": "",
"id": "826",
"voucher_shop_name": "hp01的店铺",
"voucher_shop_logo": "https://h5app.local.yuanfeng021.com/upload/2017/10/N6234.jpg",
"voucher_state_label": "未用",
"v_end_date": "2018.07.18",
"v_start_date": "2017.07.22"
},
...
],
"hasmore": false,
"page_total": 1
}
}
<<<
error
~~~
#### 代金劵兑换
~~~[api]
get:/index.php?ctl=Voucher&met=vList&typ=json&rows=10&page=1&firstRow=0&orderby=&level=&price=
*string:orderby=默认值#说明文字
level#说明文字
price#
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"voucher": {
"page": 1,
"total": 2,
"totalsize": "15",
"records": "15",
"items": [
{
"voucher_t_id": "31",
"voucher_t_title": "hp01的代金券",
"voucher_t_desc": "呵呵",
"shop_class_id": "1",
"voucher_t_start_date": "2017-07-22 12:30:42",
"voucher_t_end_date": "2018-07-18",
"voucher_t_price": "100.00",
"voucher_t_limit": "600.00",
"shop_id": "25",
"shop_name": "hp01的店铺",
"voucher_t_creator_id": "10049",
"voucher_t_state": "1",
"voucher_t_total": "100",
"voucher_t_giveout": "18",
"voucher_t_used": "1",
"user_grade_sum": "0",
"user_grade_rate": "98.0",
"user_grade_time": "2016-06-21 15:51:12",
"id": "1"
},
"voucher_t_cat_name": "服装"
},
{
"voucher_t_id": "78",
"voucher_t_title": "满99减10",
"voucher_t_desc": "一欧派云",
"shop_class_id": "1",
"voucher_t_start_date": "2017-10-23 15:51:37",
"voucher_t_end_date": "2023-10-24",
"voucher_t_price": "10.00",
"voucher_t_limit": "99.00",
"shop_id": "51",
"shop_name": "特步",
"voucher_t_creator_id": "10104",
"voucher_t_state": "1",
"voucher_t_total": "1000000",
"voucher_t_giveout": "64",
"
"user_grade_sum": "0",
"user_grade_rate": "98.0",
"user_grade_time": "2016-06-21 15:51:12",
"id": "1"
},
"voucher_t_cat_name": "服装"
},
]
},
"shop_cat": {
"1": {
"shop_class_id": "1",
"shop_class_name": "服装",
"shop_class_deposit": "10.00",
"shop_class_displayorder": "5",
"id": "1"
},
},
"price_range": [
{
"voucher_price_id": "1",
"voucher_price": "10.00",
"voucher_price_describe": "啊啊",
"voucher_defaultpoints": "1",
"id": "1"
},
"user_info": {
"user_id": "10014",
"user_realname": "tanyunfei",
"user_buy": "1",
"user_talk": "1",
"user_ww": "",
"user_am": "2,1,4,6,7,3",
"user_parent_id": "10546",
"user_directseller_commission": "0.00",
"user_directseller_shop": "adadas",
"user_bt_status": "0",
"id": "10014"
},
"user_resource": {
"user_id": "10014",
"user_blog": "0",
"user_friend": "0",
"user_fan": "0",
"user_growth": "3791",
"user_points": "2737",
"id": "10014"
},
"ava_voucher_num": "1",
"points_order_num": "5",
"points_cart_num": "1",
"growth": {
"grade_growth_start": "3000",
"grade_growth_end": "10000",
"next_grade_growth": 6209,
"grade_growth_per": 11
}
}
}
<<<
error
~~~
- 商城api接口
- 首页数据获取
- 分类接口
- 购物车接口
- 商品信息接口
- 搜索接口
- 订单列表接口
- 店铺接口
- 收藏接口
- 收货地址接口
- 生成订单接口
- 支付接口
- 会员中心接口
- 登录注册接口
- 关于我们
- 图片上传
- 分销中心
- 分销明细
- 代金券
- 平台红包列表
- 分销申请列表
- 我的推广
- 微信小程序
- 简介
- 开发前准备
- 目录结构介绍
- 发起请求
- 网络请求提交表单
- 代码及开发所遇到问题总结
- 导航跳转时所遇到的问题
- 缓存数据与数据取得的问题
- 如何引入外部css
- 如何定义与使用全局变量
- 如何定义新的界面
- 微信小程序支付
- 小程序的手机验证码登录
- 上传,下载
- 提示框
- app.json配置
- 配置demo
- pages
- window
- tabBar
- networkTimeout
- debug
- page.json
- 缓存
- 特效
- 滑动方式
- 城市切换
- 五星好评
- Switch
- 上拉加载
- wxml 标签
- 视图容器
- 基础内容
- 表单组件
- 导航
- 媒体组件
- 自定义提示框
- 小程序内访问网页
- 倒计时显示
- 微信小程序,如何在返回前一个页面时,执行前一个页面的方法
- 在本地可以请求到数据,但手机上是请求不到的
- curl请求失败
- 代码同步
- 短信平台更换