* 店鋪列表頁
~~~[api]
get:/index.php?ctl=Shop_Index&met=index&typ=json&ua=wap&sub_site_id=0&rows=10&page=1&firstRow=0&or=&keywords=&district=&plat=
ua=wap#說明文字
sub_site_id#分站id
rows#說明文字
page#說明文字
firstRow#說明文字
or#篩選條件
keywords#搜索詞
district#說明文字
plat#說明文字
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 10,
"totalsize": "99",
"records": "99",
"items": [
{
"shop_id": "176",
"user_id": "10740",
"user_name": "test7",
"shop_name": "test7",
"shop_grade_id": "0",
"shop_class_id": "0",
"shop_all_class": "1",
"shop_self_support": "true",
"shop_business": "1",
"shop_create_time": "2017-11-14 05:04:39",
"shop_end_time": "0000-00-00 00:00:00",
....
"goods_barcode": "",
"goods_is_recommend": "2",
"goods_click": "2",
"goods_salenum": "2",
"goods_collect": "0",
"goods_image": "***/20171114/1510650531780250.jpg",
"color_id": "0",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "1",
"goods_max_sale": "0",
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "1692"
}
],
"shop_owner": 0,
"dist_owner": 0,
"is_favorite": 0
}
]
},
"goods_num": 1
},
...
]
}
}
<<<
error
~~~
* 店鋪詳情頁
~~~[api]
get:/index.php?ctl=Shop&met=getStoreInfo&typ=json
string:k#key
int:u#用戶id
int:shop_id#店鋪id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"rec_goods_list": [
{
"common_id": "2029",
"common_name": "新測試",
"common_promotion_tips": "123",
"cat_id": "120",
"cat_name": "服裝鞋帽 > ceshi10 > ceshi1 > ceshi1_1",
"shop_id": "176",
"shop_name": "test7",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
"goods_id": "1692",
"shop_self_support": "1",
"shop_status": "3",
"common_property": null,
"common_spec_name": null,
"common_spec_value": null,
"brand_id": "0",
"brand_name": "",
"type_id": "0",
"common_image": "***/1510650531780250.jpg",
........
"is_favorate": false,
"is_own_shop": "true",
"mb_sliders": [
{
"link": "",
"imgUrl": ""
}
],
"mb_title_img": "",
"member_id": "10014",
"store_avatar": "",
"user_name": "test7",
"store_collect": "0",
"store_credit_text": "描述: 5.00, 服務: 100.00, 物流: 5.00",
"shop_id": "176",
"store_name": "test7",
"user_id": "10740",
"store_tel": "",
"is_open_im": 1
},
"voucher_list": []
}
}
<<<
error
~~~
* 銷量排行/收藏排行
~~~[api]
get:/index.php?ctl=Shop&met=goodsList&sort=desc&typ=json
int:id#店鋪id
order#排行條件common_collect:收藏排行common_salenum:銷量排行
num#賣出數量
sort=desc#排序方式
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "1",
"records": "1",
"items": [
{
"common_id": "2029",
"common_name": "新測試",
"common_promotion_tips": "123",
"cat_id": "120",
"cat_name": "服裝鞋帽 > ceshi10 > ceshi1 > ceshi1_1",
"shop_id": "176",
"shop_name": "test7",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
"goods_id": [
{
"goods_id": "1692",
"color_id": 0
}
],
......
"goods_image": "***/20171114/1510650531780250.jpg",
"color_id": "0",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "1",
"goods_max_sale": "0",
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "1692"
}
],
"shop_owner": 0,
"dist_owner": 0,
"is_favorite": 0
}
]
}
}
<<<
error
~~~
* 全部商品
~~~[api]
get:/index.php?ctl=Shop&met=goodsList&typ=json
int:shop_id#店鋪id
pagesize#說明文字
curpage#說明文字
firstRow#說明文字
int:id#店鋪id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "1",
"records": "1",
"items": [
{
"common_id": "2029",
"common_name": "新測試",
"common_promotion_tips": "123",
"cat_id": "120",
"cat_name": "服裝鞋帽 > ceshi10 > ceshi1 > ceshi1_1",
"shop_id": "176",
"shop_name": "test7",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
......
"goods_salenum": "2",
"goods_collect": "0",
"goods_image": "***/1510650531780250.jpg",
"color_id": "0",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "1",
"goods_max_sale": "0",
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "1692"
}
],
"shop_owner": 0,
"dist_owner": 0,
"is_favorite": 0
}
]
}
}
<<<
error
~~~
* 商品上新
~~~[api]
get:/index.php?ctl=Shop&met=goodsList&order=common_sell_time&sort=desc&typ=json&id=160&curpage=1&page=10
int:id#店鋪id
curpage#說明文字
page#說明文字
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "2",
"records": "2",
"items": [
{
"common_id": "954",
"common_name": "6611aa普通商品1",
"common_promotion_tips": "",
"cat_id": "11",
"cat_name": "服裝鞋帽 > 服飾衣帽 > 女裝服飾 > 連衣裙",
"shop_id": "160",
"shop_name": "6611個人分銷",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
......
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "1550"
}
],
"shop_owner": 0,
"dist_owner": 0,
"is_favorite": 0
}
]
}
}
<<<
error
~~~
- 商城api接口
- 首頁數據獲取
- 分類接口
- 購物車接口
- 商品信息接口
- 搜索接口
- 訂單列表接口
- 店鋪接口
- 收藏接口
- 收貨地址接口
- 生成訂單接口
- 支付接口
- 會員中心接口
- 登錄注冊接口
- 關于我們
- 圖片上傳
- 分銷中心
- 分銷明細
- 代金券
- 平臺紅包列表
- 分銷申請列表
- 我的推廣
- 微信小程序
- 簡介
- 開發前準備
- 目錄結構介紹
- 發起請求
- 網絡請求提交表單
- 代碼及開發所遇到問題總結
- 導航跳轉時所遇到的問題
- 緩存數據與數據取得的問題
- 如何引入外部css
- 如何定義與使用全局變量
- 如何定義新的界面
- 微信小程序支付
- 小程序的手機驗證碼登錄
- 上傳,下載
- 提示框
- app.json配置
- 配置demo
- pages
- window
- tabBar
- networkTimeout
- debug
- page.json
- 緩存
- 特效
- 滑動方式
- 城市切換
- 五星好評
- Switch
- 上拉加載
- wxml 標簽
- 視圖容器
- 基礎內容
- 表單組件
- 導航
- 媒體組件
- 自定義提示框
- 小程序內訪問網頁
- 倒計時顯示
- 微信小程序,如何在返回前一個頁面時,執行前一個頁面的方法
- 在本地可以請求到數據,但手機上是請求不到的
- curl請求失敗
- 代碼同步
- 短信平臺更換