公用響應html
{
"status_code": 0, // 全部的status_code 爲0 表明成功
"message": null, //返回響應的提示消息
"data": {
"data_filed": "asd" // 前段須要展現的數據
}
}複製代碼
參數名
|
類型
|
是否必須
|
auth_code
|
string
|
是
|
{
"status_code": 0,
"message": null,
"data": {
"token": "123123123123123"
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"banner": ["1.jpg", "1.jpg", "1.jpg"],//輪播圖
"message": [{
"type": 1, //1 返現 2 反捲
"phone": "150 302203740",
"price": "200 \u5143"
}, {
"type": 2,
"phone": "150 302203740",
"price": "200 \u5143"
}],
"excellent_goods": [{ // // 名優商品
"product_id": 1, // 商品id
"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"
}],
"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"
}]
}
}
複製代碼
{
"status_code": 0,
"message": "",
"data": {
"product_info": { //商品信息
"product_id": 12,
"product_name": "小米 手機",
"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 名優
"product_attr": [{
"product_id": 2,
"attr_name": "顏色",
"attr_values": ["紅色", "藍色", "粉色"]
}, {
"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,藍色": {
"product_id": 2,
"suk": "12G,藍色",
"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,藍色": {
"product_id": 2,
"suk": "24G,藍色",
"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,藍色": {
"product_id": 2,
"suk": "48G,藍色",
"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": "不錯"
}]
}
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"good_comment_rate": " 好評率",
"all_comment_num": "全部評論數",
"good_comment": "好評數",
"middle_comment": "中評數",
"bad_comment": "差評數",
"total_page": "總頁數",
"comment_list": [{
"head_pic": "頭像地址",
"start_num": "星星數",
"name": "名字",
"date": "時間",
"sku": "規格",
"content": "評論內容",
"pic": ["圖片1"],
"reply": {
"name": "回覆人名字",
"content": "回覆內容"
}
}]
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": ["水果", "手機"]
}複製代碼
{
"status_code": 0,
"message": "",
"data": [{
"name": "商品名",
"pic": "商品圖片",
"price": "商品價格",
"sales": "商品銷量",
"product_attr": [{
"product_id": 2,
"attr_name": "顏色",
"attr_values": ["紅色", "藍色", "粉色"]
}, {
"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,藍色": {
"product_id": 2,
"suk": "12G,藍色",
"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,藍色": {
"product_id": 2,
"suk": "24G,藍色",
"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,藍色": {
"product_id": 2,
"suk": "48G,藍色",
"stock": 12,
"sales": 0,
"price": "100.00",
"image": "http://localhost/public/uploads/attach/2019/02/26/5c74aa8e7bf3e.png",
"unique": "c25ee482",
"cost": "121.00"
}
}
}]
}複製代碼
{
"status_code": 0,
"message": "",
"data": [{
"class_name": "分類名字",
"class_id": "分類id"
}]
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"goods": {
"name": "商品名",
"pic": "商品圖片",
"price": "商品價格",
"sales": "商品銷量",
"product_attr": [{
"product_id": 2,
"attr_name": "顏色",
"attr_values": ["紅色", "藍色", "粉色"]
}, {
"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,藍色": {
"product_id": 2,
"suk": "12G,藍色",
"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,藍色": {
"product_id": 2,
"suk": "24G,藍色",
"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,藍色": {
"product_id": 2,
"suk": "48G,藍色",
"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": "總頁數"
}
}複製代碼
{
"status_code": 0, // 表明成功
"message": null, //返回響應的提示消息
"data": {
}
}複製代碼
{
"status_code": 0, // 表明成功
"message": null, //返回響應的提示消息
"data": {
}
}複製代碼
{
"status_code": 0, // 表明成功
"message": null, //返回響應的提示消息
"data": {
}複製代碼
{
status_code: 0,
message: "",
data: {
cart_count: "購物車數量",
cart_info: [{
cart_id: "購物車id",
num: "商品數量",
product_id: "商品id",
product_name: "商品名字",
pic: "商品圖片",
price: "商品價格",
sku: "商品sku"
}]
}
}複製代碼
{
"status_code": 0, // 表明成功
"message": null, //返回響應的提示消息
"data": {
}複製代碼
{
"status_code": 0, // 表明成功
"message": null, //返回響應的提示消息
"data": {
}複製代碼
{
status_code: 0,
message: "",
data: {
cart_id: "購物車id"
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"cart_id": "1,2,3",
"address": {
"id": "1",
"real_name": "姓名",
"phone": "手機號",
"province": "廣東省",
"city": "廣州市",
"district": "海珠區",
"detail": "詳細地址"
},
"product_info": [{
"product_name": "商品名字",
"num": "3",
"price": "12.00",
"sku": " 小米 紅色 ",
"pic": "圖片地址"
}],
"postage": {
"is_need": "是否須要郵費 1 須要 2 不須要 3 到付",
"postage_price": "郵費價格"
},
"coupon": [{
"can_use": "1 能夠",
"type": "1 是折扣 2是抵錢",
"num": "數量",
"use_time": "有效期",
"name": "名字",
"id": "優惠券id",
"real": "真實的折扣或者錢數",
"content": "介紹 如 最多抵扣錢",
"max_price": "最多可抵扣錢數"
}]
}
}複製代碼
{
status_code: 0,
message: "",
data: [
[{
id: 1,
uid: 1,
real_name: "張三",
phone: "手機號",
province: "廣東省",
city: "廣州市",
district: "海珠區",
detail: "詳細地址",
post_code: 100000,
is_default: 0 // 是否默認地址
}]
]
}複製代碼
{
status_code: 0,
message: "",
data:
}複製代碼
{
status_code: 0,
message: "",
data:
}複製代碼
{
status_code: 0,
message: "",
data:
}複製代碼
{
status_code: 0,
message: "",
data: {
class: [{
id: 1,
name: "分享推廣",
count: 120
},
{
id: 1,
name: "諮詢",
count: 120
}
],
list: [{
id: 1,
ask: "問題",
answer: "回答",
reply_count: "回覆數",
update_at: "更新時間"
}],
total_page: "總頁數"
}
}複製代碼
{
status_code: 0,
message: "",
data: {
ask: {
title: "提問內容 ",
add_time: "提問時間"
},
answer: [{
can_reply: "是否能夠回答 1 能夠 2 不能夠",
can_del: "是否能夠刪除 1能夠 2不能夠",
head_pic: "頭像地址",
name: "姓名",
content: "內容",
time: "時間"
}]
}
}複製代碼
{
status_code: 0,
message: "",
data:
}複製代碼
{
status_code: 0,
message: "",
data:
}複製代碼
{
status_code: 0,
message: "",
data: 提交給微信 那幾個字段
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"user": {
"name": "",
"head_pic": "頭像地址"
},
"order": {
"wait_pay": "代付款",
"wait_take_over": "帶收貨",
"wait_comment": "待評價",
"wait_after_sale": "帶售後"
}
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"total_page": "總頁數",
"list": [{
"head_url": "頭像地址",
"name": "名字",
"time": "時間",
"content": "內容"
}, {
"head_url": "頭像地址",
"name": "名字",
"time": "時間",
"content": "內容"
}]
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": [{
"order_id": "訂單號",
"order_status": "-3 待支付 -1 : 申請退款 -2 : 退貨成功 0:待發貨;1:待收貨;2:已收貨;3:待評價;-1:已退款",
"sum_price": "總價",
"postage": {
"is_need": "是否須要郵費 1 須要 2 不須要 3 到付",
"postage_price": "郵費價格"
},
"goods_info": {
"goods_name": "商品名字",
"pic": "圖片地址",
"price": "價格",
"id": "商品id",
"sku": "商品屬性",
"num": "商品名字"
}
}]
}複製代碼
{
status_code: 0,
message: "",
data: 提交給微信 那幾個字段
}複製代碼
{
status_code: 0,
message: "",
data: picurl 圖片地址
}複製代碼
{"status_code":0,"message":"","data":[複製代碼
{"status_code":0,"message":"","data": [{
"can_use": "1 能夠",
"type": "1 是折扣 2是抵錢",
"num": "數量",
"use_time": "有效期",
"name": "名字",
"id": "優惠券id",
"real": "真實的折扣或者錢數",
"content": "介紹 如 最多抵扣錢",
"max_price": "最多可抵扣錢數"
}]}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"sum_price": "累計佣金數",
"already_refund": "已返卷",
"wait_refund": "帶返卷"
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"fans_num": "粉絲數量",
"list": [{
"head_pic": "頭像地址",
"name": "名字",
"register_time": "註冊時間",
"price": "消費金額"
}]
}
}複製代碼
{
"status_code": 0,
"message": "",
"data": {
"sum": "2",
"list": [{
"name": "名字",
"pic_url": "圖片地址",
"sale_num": "銷量",
"price": "價格",
"0": "id"
}]
}
}複製代碼
{"status_code":0,"message":"","data":[]}複製代碼
CRMEBgit