## 1.19. StoreCtl
./shop/controllers/StoreCtl.php
### 1.19.1. 首頁
#### 1.19.1.1. 請求URL
api.php?ctl=Store&met=getConfig&typ=json
#### 1.19.1.2. 返回數據
~~~json
{
}
~~~
### 1.19.2. menu
#### 1.19.2.1. 請求URL
api.php?ctl=Store&met=menu&typ=json
#### 1.19.2.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
#### 1.19.2.3. 返回數據
~~~json
{
}
~~~
### 1.19.3. 首頁
#### 1.19.3.1. 請求URL
api.php?ctl=Store&met=index&typ=json
#### 1.19.3.2. 返回數據
~~~json
{
}
~~~
### 1.19.4. 列表數據
#### 1.19.4.1. 請求URL
api.php?ctl=Store&met=lists&typ=json
#### 1.19.4.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| page | int | 描述 |
| rows | int | 描述 |
| sidx | string | 排序字段 |
| sord | string | 排序方式: ASC | DESC |
| store\_id | int | 描述 |
| store\_category\_id | int | 描述 |
| coordinate | array | 描述 |
| keyword | string | 描述 |
| keyword | string | 描述 |
#### 1.19.4.3. 返回數據
~~~json
{
}
~~~
### 1.19.5. 列表數據
#### 1.19.5.1. 請求URL
api.php?ctl=Store&met=near&typ=json
#### 1.19.5.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| page | int | 描述 |
| rows | int | 描述 |
| sidx | string | 排序字段 |
| sord | string | 排序方式: ASC | DESC |
| store\_id | int | 描述 |
| store\_category\_id | int | 描述 |
| keyword | string | 描述 |
| district\_info | string | 描述 |
| coordinate | array | 描述 |
#### 1.19.5.3. 返回數據
~~~json
{
}
~~~
### 1.19.6. 讀取
#### 1.19.6.1. 請求URL
api.php?ctl=Store&met=credit&typ=json
#### 1.19.6.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
#### 1.19.6.3. 返回數據
~~~json
{
}
~~~
### 1.19.7. 讀取
#### 1.19.7.1. 請求URL
api.php?ctl=Store&met=get&typ=json
#### 1.19.7.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| category\_id | int | 描述 |
| store\_id | int | 描述 |
#### 1.19.7.3. 返回數據
~~~json
{
}
~~~
### 1.19.8. 讀取
#### 1.19.8.1. 請求URL
api.php?ctl=Store&met=info&typ=json
#### 1.19.8.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
| action | string | 描述 |
| store\_category | string | 描述 |
| store\_product\_cat\_id | int | 描述 |
| recursive | int | 描述 |
#### 1.19.8.3. 返回數據
~~~json
{
}
~~~
### 1.19.9. 店鋪概況
#### 1.19.9.1. 請求URL
api.php?ctl=Store&met=profile&typ=json
#### 1.19.9.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
| action | string | 描述 |
#### 1.19.9.3. 返回數據
~~~json
{
}
~~~
### 1.19.10. 店鋪首頁內容
#### 1.19.10.1. 請求URL
api.php?ctl=Store&met=contents&typ=json
#### 1.19.10.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
#### 1.19.10.3. 返回數據
~~~json
{
}
~~~
### 1.19.11. 店鋪首頁內容
#### 1.19.11.1. 請求URL
api.php?ctl=Store&met=indexDiy&typ=json
#### 1.19.11.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
#### 1.19.11.3. 返回數據
~~~json
{
}
~~~
### 1.19.12. 添加店鋪基礎信息
#### 1.19.12.1. 請求URL
api.php?ctl=Store&met=add&typ=json
#### 1.19.12.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_name | string | 店鋪名稱 |
| store\_grade\_id | int | 店鋪等級 |
| store\_logo | string | 店鋪logo |
| store\_domain | string | 二級域名 |
| store\_latitude | string | 緯度 |
| store\_longitude | string | 經度 |
| store\_type | int | 店鋪類型: 1-賣家店鋪; 2-供應商店鋪 |
| shop\_parent\_id | int | 上級店鋪id:創建店鋪決定,所屬分銷商-不可更改! 傭金公平性考慮 |
| store\_category\_id | int | 店鋪分類id |
| store\_o2o\_flag | int | 店鋪分類id |
| product\_category\_ids | array | 店鋪分類id |
| company\_id | int | 公司Id |
| company\_name | string | 企業全稱(length=>2,50) |
| company\_area | string | 公司所在地 |
| company\_address | string | 地址:請輸入公司詳細地址 |
| company\_zipcode | string | 郵編:請輸入公司郵編 |
| company\_phone | string | 電話:請輸入公司電話 |
| company\_website | string | 公司網址:請輸入公司網址 |
| company\_description | string | 公司介紹:請輸入公司介紹 |
| contacts\_name | string | 聯系人 |
| contacts\_position | string | 職位 |
| contacts\_phone | string | 聯系人電話 |
| contacts\_email | string | 聯系人email |
| company\_registered\_capital | int | 注冊資金(required) |
| company\_employee\_count | int | 員工總數 |
| company\_taxnum | string | 納稅人識別號 |
| company\_invoice | string | 發票抬頭 |
| bank\_account\_name | string | 發票抬頭 |
| bank\_name | string | 發票抬頭 |
| bank\_account\_number | string | 發票抬頭 |
| business\_license\_electronic | array | 發票抬頭 |
#### 1.19.12.3. 返回數據
~~~json
{
}
~~~
### 1.19.13. 修改
#### 1.19.13.1. 請求URL
api.php?ctl=Store&met=edit&typ=json
#### 1.19.13.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int |
| store\_name | string | 店鋪名稱 |
| store\_grade\_id | int | 店鋪等級 |
| store\_category\_id | int | 店鋪等級 |
| store\_is\_open | int | 店鋪狀態- 0:關閉 1:運營中 |
#### 1.19.13.3. 返回數據
~~~json
{
}
~~~
### 1.19.14. 店鋪活動
#### 1.19.14.1. 請求URL
api.php?ctl=Store&met=activity&typ=json
#### 1.19.14.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
| sidx | string | 排序字段 |
| sord | string | 排序方式: ASC | DESC |
| activity\_state | int | 描述 |
| activity\_type\_id | int | 描述 |
#### 1.19.14.3. 返回數據
~~~json
{
}
~~~
### 1.19.15. 店鋪活動
#### 1.19.15.1. 請求URL
api.php?ctl=Store&met=activityInfo&typ=json
#### 1.19.15.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| activity\_id | int | 描述 |
#### 1.19.15.3. 返回數據
~~~json
{
}
~~~
### 1.19.16. 店鋪優惠券
#### 1.19.16.1. 請求URL
api.php?ctl=Store&met=voucher&typ=json
#### 1.19.16.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
| page | int | 描述 |
| rows | int | 描述 |
| sidx | string | 排序字段 |
| sord | string | 排序方式: ASC | DESC |
#### 1.19.16.3. 返回數據
~~~json
{
}
~~~
### 1.19.17. 列表數據, 不論用戶是否登錄,收藏等等數據不做處理。
#### 1.19.17.1. 請求URL
api.php?ctl=Store&met=product&typ=json
#### 1.19.17.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
| category\_id | int | 描述 |
#### 1.19.17.3. 返回數據
~~~json
{
}
~~~
### 1.19.18. 銷量最高
#### 1.19.18.1. 請求URL
api.php?ctl=Store&met=productPopular&typ=json
#### 1.19.18.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
#### 1.19.18.3. 返回數據
~~~json
{
}
~~~
### 1.19.19. 銷量最高
#### 1.19.19.1. 請求URL
api.php?ctl=Store&met=paymentVoucher&typ=json
#### 1.19.19.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| payment\_voucher | string | 付款憑證 |
| payment\_voucher\_explain | string | 付款憑證說明\\ |
#### 1.19.19.3. 返回數據
~~~json
{
}
~~~
### 1.19.20. 列出店鋪等級
#### 1.19.20.1. 請求URL
api.php?ctl=Store&met=listsStoreGrade&typ=json
#### 1.19.20.2. 返回數據
~~~json
{
}
~~~
### 1.19.21. 店鋪商品分類
#### 1.19.21.1. 請求URL
api.php?ctl=Store&met=productCategory&typ=json
#### 1.19.21.2. 請求參數
| 鍵值 | 類型 | 描述 |
| --- | --- | --- |
| store\_id | int | 描述 |
| store\_product\_cat\_id | int | 描述 |
| recursive | int | 描述 |
| action | string | 描述 |
#### 1.19.21.3. 返回數據
~~~json
{
}
~~~
### 1.19.22. 店鋪分類
#### 1.19.22.1. 請求URL
api.php?ctl=Store&met=category&typ=json
#### 1.19.22.2. 返回數據
~~~json
{
}
~~~
### 1.19.23. 列出店鋪分類
#### 1.19.23.1. 請求URL
api.php?ctl=Store&met=listsStoreCategory&typ=json
#### 1.19.23.2. 返回數據
~~~json
{
}
~~~
- 開發文檔
- /輸出格式化處理
- /MySQL.md
- /tpl.md
- /locale.md
- /試衣鏡.md
- /note.md
- /api/shop.md
- Table of Content
- shop 項目
- 1.1. ActivityCtl
- 1.2. CartCtl
- 1.3. CategoryCtl
- 1.4. ChainCtl
- 1.5. ChooseIndustryCtl
- 1.6. Distribution_UserCtl
- 1.7. IndexCtl
- 1.8. JoinController
- 1.9. JoinCtl
- 1.10. LoginCtl
- 1.11. MediaCtl
- 1.12. PageCtl
- 1.13. PlatformController
- 1.14. PointController
- 1.15. PointCtl
- 1.16. ProductCtl
- 1.17. SitemapCtl
- 1.18. StoreController
- 1.19. StoreCtl
- 1.20. UrlCtl
- 1.21. User_AccountCtl
- 1.22. User_ActivityCtl
- 1.23. User_AskCtl
- 1.24. User_CommentCtl
- 1.25. User_DeliveryAddressCtl
- 1.26. User_FavoritesCtl
- 1.27. User_FeedbackCtl
- 1.28. User_InvoiceCtl
- 1.29. User_OrderCtl
- 1.30. User_ResourceCtl
- 1.31. User_ReturnCtl
- 1.32. User_VoucherCtl
- 1.33. UserCenterController
- 1.34. UserCtl
- 1.35. VerifyCodeCtl
- 1.36. WechatCallbackCtl
- /框架核心說明.md