#### 代金券列表
~~~[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請求失敗
- 代碼同步
- 短信平臺更換