~~~[api]
get:/index.php?ctl=RedPacket&met=redPacket&typ=json&ua=wap&orderby=default&firstRow=0
*string:k=默認值#加密字符
u#用戶id
ua#wap
orderby#default
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"redpacket": {
"page": 1,
"total": 1,
"totalsize": "6",
"records": "6",
"items": [
{
"redpacket_t_id": "74",
"redpacket_t_type": "2",
"redpacket_t_title": "這是一個大紅包",
"redpacket_t_desc": "這是一個大紅包",
"redpacket_t_start_date": "2018-02-08 14:00:00",
"redpacket_t_end_date": "2018-04-30 14:00:00",
"redpacket_t_recommend_label": "是",
"redpacket_t_end_date_day": "2018-04-30",
"redpacket_t_user_grade_label": "注冊會員",
"start_date": "2018-02-08",
"end_date": "2018-04-30"
},
]
},
"user_info": {
"user_id": "10014",
"user_realname": "tanyunfei",
"user_mobile": "15212206901",
"user_email": "",
"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",
"ava_redpacket_num": "11",
"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]
get:/index.php?ctl=RedPacket&met=receiveRedPacket&typ=json
*string:red_packet_t_id=默認值#編號
k#加密字符
u#用戶id
<<<
success
{"cmd_id":-140,"status":200,"msg":"\u9886\u53d6\u6210\u529f","data":{}}
<<<
error
~~~
- 商城api接口
- 首頁數據獲取
- 分類接口
- 購物車接口
- 商品信息接口
- 搜索接口
- 訂單列表接口
- 店鋪接口
- 收藏接口
- 收貨地址接口
- 生成訂單接口
- 支付接口
- 會員中心接口
- 登錄注冊接口
- 關于我們
- 圖片上傳
- 分銷中心
- 分銷明細
- 代金券
- 平臺紅包列表
- 分銷申請列表
- 我的推廣
- 微信小程序
- 簡介
- 開發前準備
- 目錄結構介紹
- 發起請求
- 網絡請求提交表單
- 代碼及開發所遇到問題總結
- 導航跳轉時所遇到的問題
- 緩存數據與數據取得的問題
- 如何引入外部css
- 如何定義與使用全局變量
- 如何定義新的界面
- 微信小程序支付
- 小程序的手機驗證碼登錄
- 上傳,下載
- 提示框
- app.json配置
- 配置demo
- pages
- window
- tabBar
- networkTimeout
- debug
- page.json
- 緩存
- 特效
- 滑動方式
- 城市切換
- 五星好評
- Switch
- 上拉加載
- wxml 標簽
- 視圖容器
- 基礎內容
- 表單組件
- 導航
- 媒體組件
- 自定義提示框
- 小程序內訪問網頁
- 倒計時顯示
- 微信小程序,如何在返回前一個頁面時,執行前一個頁面的方法
- 在本地可以請求到數據,但手機上是請求不到的
- curl請求失敗
- 代碼同步
- 短信平臺更換