| | 1669 | == 38.动态条件接口 app2.0 == |
| | 1670 | |
| | 1671 | http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ [[BR]] |
| | 1672 | |
| | 1673 | URL:http://youpin.pchouse.com.cn/jsp/intf/condition.jsp [[BR]] |
| | 1674 | 测试:http://dev10.pchouse.com.cn:8083/jsp/intf/condition.jsp [[BR]] |
| | 1675 | |
| | 1676 | 请求方式:GET[[BR]] |
| | 1677 | |
| | 1678 | 是否需要登录:否[[BR]] |
| | 1679 | |
| | 1680 | 功能说明:根据用户输入的条件动态变化搜索条件[[BR]] |
| | 1681 | |
| | 1682 | 提交参数: |
| | 1683 | {{{ |
| | 1684 | categoryId:1 |
| | 1685 | brands:诗雅轩家具旗舰店 |
| | 1686 | styles:1 |
| | 1687 | services:2 |
| | 1688 | pageNo: 1 |
| | 1689 | pageSize: 50 |
| | 1690 | sort:1 |
| | 1691 | }}} |
| | 1692 | 提交参数说明:[[BR]] |
| | 1693 | categoryId: 类别ID [[BR]] |
| | 1694 | brands: 多个品牌 [[BR]] |
| | 1695 | styles: 多个风格 [[BR]] |
| | 1696 | services: 多个服务 [[BR]] |
| | 1697 | pageNo: 页码 [[BR]] |
| | 1698 | pageSize: 分页大小 [[BR]] |
| | 1699 | sort:1为按最新排序,2最热排序,3为最优惠排序 |
| | 1700 | |
| | 1701 | 返回参数:[[BR]] |
| | 1702 | {{{ |
| | 1703 | { |
| | 1704 | "brands":[ |
| | 1705 | "优尚美家旗舰店","雷博士红楼专卖店","美迪雅家居旗舰店".................. |
| | 1706 | ], |
| | 1707 | "categorys":[ |
| | 1708 | { |
| | 1709 | "id": 101, |
| | 1710 | "name": "客厅", |
| | 1711 | "children":[ |
| | 1712 | { |
| | 1713 | "id":212, |
| | 1714 | "name":"沙发", |
| | 1715 | "children":[........] |
| | 1716 | } |
| | 1717 | ] |
| | 1718 | }, |
| | 1719 | { |
| | 1720 | "id": 102, |
| | 1721 | "name": "卧室", |
| | 1722 | "children":[ |
| | 1723 | { |
| | 1724 | "id":222, |
| | 1725 | "name":"床", |
| | 1726 | "children":[........] |
| | 1727 | } |
| | 1728 | ] |
| | 1729 | }, |
| | 1730 | ............... |
| | 1731 | ], |
| | 1732 | "styles":[ |
| | 1733 | { |
| | 1734 | "id": 316, |
| | 1735 | "name":"欧式" |
| | 1736 | }, |
| | 1737 | { |
| | 1738 | "id": 317, |
| | 1739 | "name":"田园" |
| | 1740 | }, |
| | 1741 | ............... |
| | 1742 | ], |
| | 1743 | "services":[ |
| | 1744 | { |
| | 1745 | "id": 1, |
| | 1746 | "name":"是否包邮" |
| | 1747 | }, |
| | 1748 | { |
| | 1749 | "id": 2, |
| | 1750 | "name":"是否有发票" |
| | 1751 | }, |
| | 1752 | ............ |
| | 1753 | ], |
| | 1754 | "price":{ |
| | 1755 | "min" : 200, |
| | 1756 | "max" : 8000 |
| | 1757 | } |
| | 1758 | |
| | 1759 | }}} |
| | 1760 | 返回参数说明:[[BR]] |
| | 1761 | |
| | 1762 | brands: 品牌数组 [[BR]] |
| | 1763 | |
| | 1764 | categorys: 分类数组[[BR]] |
| | 1765 | id: 风格ID [[BR]] |
| | 1766 | name:风格名称 [[BR]] |
| | 1767 | children: 分类子结果 [[BR]] |
| | 1768 | |
| | 1769 | styles: 风格结果数组[[BR]] |
| | 1770 | id:风格ID [[BR]] |
| | 1771 | name:风格名称 [[BR]] |
| | 1772 | |
| | 1773 | services: 服务结果数组[[BR]] |
| | 1774 | id:服务ID [[BR]] |
| | 1775 | name:服务名称 [[BR]] |
| | 1776 | |
| | 1777 | price: 价格[[BR]] |
| | 1778 | min: 最低价格 [[BR]] |
| | 1779 | max: 最高价格 [[BR]] |
| | 1780 | |
| | 1781 | |