公用響應(yīng)
創(chuàng)新互聯(lián)公司是一家專注于成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)與策劃設(shè)計(jì),錯(cuò)那網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)公司做網(wǎng)站,專注于網(wǎng)站建設(shè)十年,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:錯(cuò)那等地區(qū)。錯(cuò)那做網(wǎng)站價(jià)格咨詢:18982081108
首頁接口
獲取用戶 token
獲取首頁數(shù)據(jù)
獲取商品詳情頁
評論列表
獲取商品搜索歷史
搜索商品
獲取商品分類
獲取商品通過分類 id
商品收藏
商品取消收藏
添加到購物車
我的購物車
變化購物車數(shù)量
刪除購物車
用戶點(diǎn)擊立即購買下單
用戶創(chuàng)建訂單頁面
用戶地址 獲取
用戶地址 設(shè)置默認(rèn)
用戶地址刪除
用戶地址添加
討論區(qū) 列表
問題詳情頁
用戶刪除問題詳情頁評論
用戶添加問題詳情頁評論
用戶提交訂單
我的
我的消息
全部訂單
用戶提交訂單 點(diǎn)擊去支付按鈕
訂單詳情頁
上傳圖片
評論訂單
優(yōu)惠券列表
地址管理 請求上面的地址的數(shù)據(jù)就可以了
推廣信息
推廣列表
用戶收藏
刪除訂單
所有的請求 接口都會響應(yīng)統(tǒng)一的數(shù)據(jù)格式( json 格式)
eg
{ "status_code": 0, // 所有的status_code 為0 代表成功 "message": null, //返回響應(yīng)的提示消息 "data": { "data_filed": "asd" // 前段需要展示的數(shù)據(jù) } }
首頁接口
獲取用戶 token
接口說明
因?yàn)樾〕绦虿皇褂?cookie 所以需要用戶登錄后操作的操作都需要帶上后端
接口返回的 token
請求方式
post
請求參數(shù)
參數(shù)名 |
類型 |
是否必須 |
auth_code |
string |
是 |
請求 url
user/gettoken
相應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": null, "data": { "token": "123123123123123" } }
獲取首頁數(shù)據(jù)
接口說明
獲取首頁展示數(shù)據(jù)
請求地址
/index
請求參數(shù)
無
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "banner": ["1.jpg", "1.jpg", "1.jpg"],//輪播圖 "message": [{ "type": 1, //1 返現(xiàn) 2 反卷 "phone": "150 302203740", "price": "200 \u5143" }, { "type": 2, "phone": "150 302203740", "price": "200 \u5143" }], "excellent_goods": [{ // // 名優(yōu)商品 "product_id": 1, // 商品id "pic_url": "http:\/\/www.baidu.com\/1.jpg", "price": "128.00 \u5143" 價(jià)格 }, { "product_id": 1, "pic_url": "http:\/\/www.baidu.com\/1.jpg", "price": "128.00 \u5143" }, { "product_id": 1, "pic_url": "http:\/\/www.baidu.com\/1.jpg", "price": "128.00 \u5143" }], "special_goods": [{ "product_id": 1, "pic_url": "http:\/\/www.baidu.com\/1.jpg", "price": "128.00 \u5143" }, { "product_id": 1, "pic_url": "http:\/\/www.baidu.com\/1.jpg", "price": "128.00 \u5143" }, { "product_id": 1, "pic_url": "http:\/\/www.baidu.com\/1.jpg", "price": "128.00 \u5143" }] } }
獲取商品詳情頁
接口說明
獲取商品詳情頁數(shù)據(jù)
請求地址
/goods/info
請求參數(shù)
product_id 首頁數(shù)據(jù)中的 商品 id
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "product_info": { //商品信息 "product_id": 12, "product_name": "小米 手機(jī)", "stock": "12 件", "sales_volume": "1222 件", "description": "詳情", "price": "123元", "banner": ["1,jpg", "2.jpg"], "video": "123.mp4", "content": ["1,jpg", "2.jpg"], }, "is_collection": "1", 是否收藏 1 收藏 2 未收藏, "flag": "1", 1 特推 2 名優(yōu) "product_attr": [{ "product_id": 2, "attr_name": "顏色", "attr_values": ["紅色", "藍(lán)色", "粉色"] }, { "product_id": 2, "attr_name": "容量", "attr_values": ["12G", "24G", "48G"] }], "product_value": { "12G,粉色": { "product_id": 2, "suk": "12G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "bfaf34b2", "cost": "121.00" }, "12G,紅色": { "product_id": 2, "suk": "12G,紅色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "ba9be73a", "cost": "121.00" }, "12G,藍(lán)色": { "product_id": 2, "suk": "12G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "f6582b9d", "cost": "121.00" }, "24G,粉色": { "product_id": 2, "suk": "24G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "d3050a70", "cost": "121.00" }, "24G,紅色": { "product_id": 2, "suk": "24G,紅色", "stock": 0, "sales": 12, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "84d41ab3", "cost": "121.00" }, "24G,藍(lán)色": { "product_id": 2, "suk": "24G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "b2f7264f", "cost": "121.00" }, "48G,粉色": { "product_id": 2, "suk": "48G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "4f8372a1", "cost": "121.00" }, "48G,紅色": { "product_id": 2, "suk": "48G,紅色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "af388d95", "cost": "121.00" }, "48G,藍(lán)色": { "product_id": 2, "suk": "48G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "c25ee482", "cost": "121.00" } }, "comment": { "sum": "12", "good_comment": "99%", "list": [{ "name": "zhangsan", "head_pic": "頭像地址", "level": "1", "sku": "紅色 128G", "pic": ["1.jpg"], "time": "2019-08-05", "content": "不錯(cuò)" }] } } }
評論列表
請求地址
/comment/list
請求方式
get
請求參數(shù)
product_id 必須
page 不傳默認(rèn)顯示第一頁
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "good_comment_rate": " 好評率", "all_comment_num": "所有評論數(shù)", "good_comment": "好評數(shù)", "middle_comment": "中評數(shù)", "bad_comment": "差評數(shù)", "total_page": "總頁數(shù)", "comment_list": [{ "head_pic": "頭像地址", "start_num": "星星數(shù)", "name": "名字", "date": "時(shí)間", "sku": "規(guī)格", "content": "評論內(nèi)容", "pic": ["圖片1"], "reply": { "name": "回復(fù)人名字", "content": "回復(fù)內(nèi)容" } }] } }
獲取商品搜索歷史
請求地址
/goods/history
請求參數(shù)
無
請求方式
get
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": ["水果", "手機(jī)"] }
搜索商品
請求地址
/goods/serach
請求參數(shù)
goods_name 商品名字 type 搜索類型 不傳默認(rèn) 綜合 sale 代表銷量 new 代表最新 最多顯示 30 條
請求方式
get
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": [{ "name": "商品名", "pic": "商品圖片", "price": "商品價(jià)格", "sales": "商品銷量", "product_attr": [{ "product_id": 2, "attr_name": "顏色", "attr_values": ["紅色", "藍(lán)色", "粉色"] }, { "product_id": 2, "attr_name": "容量", "attr_values": ["12G", "24G", "48G"] }], "product_value": { "12G,粉色": { "product_id": 2, "suk": "12G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "bfaf34b2", "cost": "121.00" }, "12G,紅色": { "product_id": 2, "suk": "12G,紅色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "ba9be73a", "cost": "121.00" }, "12G,藍(lán)色": { "product_id": 2, "suk": "12G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "f6582b9d", "cost": "121.00" }, "24G,粉色": { "product_id": 2, "suk": "24G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "d3050a70", "cost": "121.00" }, "24G,紅色": { "product_id": 2, "suk": "24G,紅色", "stock": 0, "sales": 12, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "84d41ab3", "cost": "121.00" }, "24G,藍(lán)色": { "product_id": 2, "suk": "24G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "b2f7264f", "cost": "121.00" }, "48G,粉色": { "product_id": 2, "suk": "48G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "4f8372a1", "cost": "121.00" }, "48G,紅色": { "product_id": 2, "suk": "48G,紅色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "af388d95", "cost": "121.00" }, "48G,藍(lán)色": { "product_id": 2, "suk": "48G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "c25ee482", "cost": "121.00" } } }] } 獲取商品分類 請求地址 /goods/class 請求方式 get 請求參數(shù) 無 響應(yīng)數(shù)據(jù) { "status_code": 0, "message": "", "data": [{ "class_name": "分類名字", "class_id": "分類id" }] }
獲取商品通過分類 id
請求地址
/goods/class
請求方式
get
請求參數(shù)
class_id 必填 page 不必填 默認(rèn)為 1
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "goods": { "name": "商品名", "pic": "商品圖片", "price": "商品價(jià)格", "sales": "商品銷量", "product_attr": [{ "product_id": 2, "attr_name": "顏色", "attr_values": ["紅色", "藍(lán)色", "粉色"] }, { "product_id": 2, "attr_name": "容量", "attr_values": ["12G", "24G", "48G"] }], "product_value": { "12G,粉色": { "product_id": 2, "suk": "12G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "bfaf34b2", "cost": "121.00" }, "12G,紅色": { "product_id": 2, "suk": "12G,紅色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "ba9be73a", "cost": "121.00" }, "12G,藍(lán)色": { "product_id": 2, "suk": "12G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "f6582b9d", "cost": "121.00" }, "24G,粉色": { "product_id": 2, "suk": "24G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "d3050a70", "cost": "121.00" }, "24G,紅色": { "product_id": 2, "suk": "24G,紅色", "stock": 0, "sales": 12, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "84d41ab3", "cost": "121.00" }, "24G,藍(lán)色": { "product_id": 2, "suk": "24G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "b2f7264f", "cost": "121.00" }, "48G,粉色": { "product_id": 2, "suk": "48G,粉色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "4f8372a1", "cost": "121.00" }, "48G,紅色": { "product_id": 2, "suk": "48G,紅色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "af388d95", "cost": "121.00" }, "48G,藍(lán)色": { "product_id": 2, "suk": "48G,藍(lán)色", "stock": 12, "sales": 0, "price": "100.00", "image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png", "unique": "c25ee482", "cost": "121.00" } } }, "total_page": "總頁數(shù)" } }
商品收藏
請求地址
/goods/collection
請求方式
get
請求參數(shù)
product_id 商品 id
響應(yīng)數(shù)據(jù)
{ "status_code": 0, // 代表成功 "message": null, //返回響應(yīng)的提示消息 "data": { } }
商品取消收藏
請求地址
/goods/uncollection
請求方式
get
請求參數(shù)
product_id 商品 id
響應(yīng)數(shù)據(jù)
{ "status_code": 0, // 代表成功 "message": null, //返回響應(yīng)的提示消息 "data": { } }
添加到購物車
請求地址
/goods/addcart
請求方式
post
請求參數(shù)
prodect_id 必傳參數(shù) 商品 id num 必傳參數(shù) 商品數(shù)量 unique 商品的唯一識別碼 也就是說 如果選擇了商品的屬性 那么此參數(shù)必須
響應(yīng)數(shù)據(jù)
{ "status_code": 0, // 代表成功 "message": null, //返回響應(yīng)的提示消息 "data": { }
我的購物車
請求地址
/goods/cartlist
請求方式
post
請求參數(shù)
prodect_id 必傳參數(shù) 商品 id num 必傳參數(shù) 商品數(shù)量 unique 商品的唯一識別碼 也就是說 如果選擇了商品的屬性 那么此參數(shù)必須
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: { cart_count: "購物車數(shù)量", cart_info: [{ cart_id: "購物車id", num: "商品數(shù)量", product_id: "商品id", product_name: "商品名字", pic: "商品圖片", price: "商品價(jià)格", sku: "商品sku" }] } }
變化購物車數(shù)量
請求地址 /goods/changecart
請求參數(shù) type : add 為增加 reduce 為減少
cart_id
- 請求方式
post
響應(yīng)數(shù)據(jù)
{ "status_code": 0, // 代表成功 "message": null, //返回響應(yīng)的提示消息 "data": { }
刪除購物車
請求地址
goods/delcart
請求參數(shù)
cart_id
請求方式
post
響應(yīng)數(shù)據(jù)
{ "status_code": 0, // 代表成功 "message": null, //返回響應(yīng)的提示消息 "data": { }
用戶點(diǎn)擊立即購買下單
請求地址
/order/makecart
請求方式
post
請求參數(shù)
product_id 必填
uninq 如果選擇了屬性 那么此參數(shù)必填
num 商品數(shù)量
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: { cart_id: "購物車id" } }
用戶創(chuàng)建訂單頁面
請求地址
/order/confirmorder
請求方式
get
請求參數(shù)
cart_id 購物車 id 用逗號隔開
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "cart_id": "1,2,3", "address": { "id": "1", "real_name": "姓名", "phone": "手機(jī)號", "province": "廣東省", "city": "廣州市", "district": "海珠區(qū)", "detail": "詳細(xì)地址" }, "product_info": [{ "product_name": "商品名字", "num": "3", "price": "12.00", "sku": " 小米 紅色 ", "pic": "圖片地址" }], "postage": { "is_need": "是否需要郵費(fèi) 1 需要 2 不需要 3 到付", "postage_price": "郵費(fèi)價(jià)格" }, "coupon": [{ "can_use": "1 可以", "type": "1 是折扣 2是抵錢", "num": "數(shù)量", "use_time": "有效期", "name": "名字", "id": "優(yōu)惠券id", "real": "真實(shí)的折扣或者錢數(shù)", "content": "介紹 如 最多抵扣錢", "max_price": "最多可抵扣錢數(shù)" }] } }
用戶地址 獲取
請求地址
/user/addresslist
請求方式
get
- 請求參數(shù)
無
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: [ [{ id: 1, uid: 1, real_name: "張三", phone: "手機(jī)號", province: "廣東省", city: "廣州市", district: "海珠區(qū)", detail: "詳細(xì)地址", post_code: 100000, is_default: 0 // 是否默認(rèn)地址 }] ] }
用戶地址 設(shè)置默認(rèn)
請求地址
/user/addressdefult
請求方式
post
- 請求參數(shù)
address_id
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: }
用戶地址刪除
請求地址
/user/addressdel
請求方式
post
- 請求參數(shù)
address_id
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: }
用戶地址添加
請求地址
/user/addressadd
請求方式
post
- 請求參數(shù)
province 省 city 市 district 區(qū) is_default 是否默認(rèn) 1 為默認(rèn) 其他為不是
real_name 真實(shí)姓名
post_code 郵編 非必須
phone 手機(jī)號
detail 詳細(xì)地址 id 如果 id 為 0 是新增 然后又值 是修改
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: }
討論區(qū) 列表
請求方式
get
請求地址
task/list
請求方式
get
- 請求參數(shù)
page 頁碼 默認(rèn)為 1
fid 分類 id 默認(rèn)為 1
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: { class: [{ id: 1, name: "分享推廣", count: 120 }, { id: 1, name: "咨詢", count: 120 } ], list: [{ id: 1, ask: "問題", answer: "回答", reply_count: "回復(fù)數(shù)", update_at: "更新時(shí)間" }], total_page: "總頁數(shù)" } }
問題詳情頁
請求方式
get
請求地址
task/info
請求參數(shù)
task_id
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: { ask: { title: "提問內(nèi)容 ", add_time: "提問時(shí)間" }, answer: [{ can_reply: "是否可以回答 1 可以 2 不可以", can_del: "是否可以刪除 1可以 2不可以", head_pic: "頭像地址", name: "姓名", content: "內(nèi)容", time: "時(shí)間" }] } }
用戶刪除問題詳情頁評論
請求地址
/task/del
請求方式
post
- 請求參數(shù)
task_id
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: }
用戶添加問題詳情頁評論
請求地址
/task/add
請求方式
post
- 請求參數(shù)
task_id 問題 id
content 內(nèi)容
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: }
用戶提交訂單
請求方式
post
請求地址
order/commit
請求方式
get
- 請求參數(shù)
address_id 地址 id
cart_id 購物車 id coupon [['id'=>' 數(shù)量 ']]
message ‘ 留言 ’
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: 提交給微信 那幾個(gè)字段 }
我的
請求地址
/center/index
請求方式
post
- 請求參數(shù)
無
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "user": { "name": "", "head_pic": "頭像地址" }, "order": { "wait_pay": "代付款", "wait_take_over": "帶收貨", "wait_comment": "待評價(jià)", "wait_after_sale": "帶售后" } } }
我的消息
請求地址
/center/index
請求方式
post
- 請求參數(shù)
page 頁碼
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "total_page": "總頁數(shù)", "list": [{ "head_url": "頭像地址", "name": "名字", "time": "時(shí)間", "content": "內(nèi)容" }, { "head_url": "頭像地址", "name": "名字", "time": "時(shí)間", "content": "內(nèi)容" }] } }
全部訂單
請求地址
/order/orderlist
請求方式
post
- 請求參數(shù)
page 頁碼
type ' 狀態(tài) 可不傳 -3 待支付 ; 1 :待收貨; 2 :已收貨; 3 :待評價(jià); '
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": [{ "order_id": "訂單號", "order_status": "-3 待支付 -1 : 申請退款 -2 : 退貨成功 0:待發(fā)貨;1:待收貨;2:已收貨;3:待評價(jià);-1:已退款", "sum_price": "總價(jià)", "postage": { "is_need": "是否需要郵費(fèi) 1 需要 2 不需要 3 到付", "postage_price": "郵費(fèi)價(jià)格" }, "goods_info": { "goods_name": "商品名字", "pic": "圖片地址", "price": "價(jià)格", "id": "商品id", "sku": "商品屬性", "num": "商品名字" } }] }
用戶提交訂單 點(diǎn)擊去支付按鈕
請求方式
post
請求地址
order/commitfromwaitpay
請求方式
post
- 請求參數(shù)
order_id 訂單 id
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: 提交給微信 那幾個(gè)字段 }
訂單詳情頁
請求方式
post
請求地址
order/showinfo
請求方式
post
- 請求參數(shù)
order_id 訂單 id
響應(yīng)數(shù)據(jù)
上傳圖片
請求方式
post
請求地址
common/uploadpic
請求方式
post
- 請求參數(shù)
pic 圖片 key
響應(yīng)數(shù)據(jù)
{ status_code: 0, message: "", data: picurl 圖片地址 }
評論訂單
請求方式
post
請求地址
order/comment
請求方式
post
- 請求參數(shù)
pic 圖片 ['1.jpg','2.jpg']
content 評論內(nèi)容 quality 數(shù)字 1-5 serveice_quality 數(shù)字 1-5
響應(yīng)數(shù)據(jù)
{"status_code":0,"message":"","data":[
優(yōu)惠券列表
請求方式
get
請求地址
coupon/list
請求方式
get
- 請求參數(shù)
type 1 未使用 2 已經(jīng)使用 3 已經(jīng)過期
響應(yīng)數(shù)據(jù)
{"status_code":0,"message":"","data": [{ "can_use": "1 可以", "type": "1 是折扣 2是抵錢", "num": "數(shù)量", "use_time": "有效期", "name": "名字", "id": "優(yōu)惠券id", "real": "真實(shí)的折扣或者錢數(shù)", "content": "介紹 如 最多抵扣錢", "max_price": "最多可抵扣錢數(shù)" }]}
地址管理 請求上面的地址的數(shù)據(jù)就可以了
推廣信息
請求方式
get
請求地址
extension/info
請求方式
get
- 請求參數(shù)
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "sum_price": "累計(jì)傭金數(shù)", "already_refund": "已返卷", "wait_refund": "帶返卷" } }
推廣列表
請求方式
get
請求地址
extension/info
請求方式
get
- 請求參數(shù)
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "fans_num": "粉絲數(shù)量", "list": [{ "head_pic": "頭像地址", "name": "名字", "register_time": "注冊時(shí)間", "price": "消費(fèi)金額" }] } }
用戶收藏
請求方式
get
請求地址
user/collection
請求方式
get
- 請求參數(shù)
響應(yīng)數(shù)據(jù)
{ "status_code": 0, "message": "", "data": { "sum": "2", "list": [{ "name": "名字", "pic_url": "圖片地址", "sale_num": "銷量", "price": "價(jià)格", "0": "id" }] } }
刪除訂單
請求方式
post
請求地址
order/delorder
請求方式
post
- 請求參數(shù)
order_id 訂單 id
響應(yīng)數(shù)據(jù)
{"status_code":0,"message":"","data":[]}
文章題目:小程序商城前端代碼流程
轉(zhuǎn)載源于:http://chinadenli.net/article10/pdsido.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)、搜索引擎優(yōu)化、服務(wù)器托管、網(wǎng)站排名、面包屑導(dǎo)航、品牌網(wǎng)站設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)