Changes between Version 11 and Version 12 of pcauto_chexingku/web-intf


Ignore:
Timestamp:
08/03/2012 03:37:09 PM (14 years ago)
Author:
daiyuwen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_chexingku/web-intf

    v11 v12  
    195195===  2.3 [=#point203 getPriceList ] === 
    196196{{{ 
    197 请求方式get 
    198 请求参数 无 
     197请求方式:get 
     198请求参数:无 
     199Url: 
     200   http://mrobot.pcauto.com.cn/v3/price/getPriceList 
    199201返回: 
    200202{ 
    201         data:[ 
    202         { 
    203                 indexId:”1”, 
    204                 title:”1~3万” 
    205   }, 
    206   { 
    207                 indexId:”2”, 
    208                 title:”4~9万” 
    209   } 
    210   ] 
     203    "data":[ 
     204        { 
     205            "title":"5万以下", 
     206            "indexId":0 
     207        }, 
     208        { 
     209            "title":"5-8万", 
     210            "indexId":1 
     211        }, 
     212        { 
     213            "title":"8-10万", 
     214            "indexId":2 
     215        }, 
     216        { 
     217            "title":"10-15万", 
     218            "indexId":3 
     219        }, 
     220        { 
     221            "title":"15-20万", 
     222            "indexId":4 
     223        }, 
     224        { 
     225            "title":"20-25万", 
     226            "indexId":5 
     227        }, 
     228        { 
     229            "title":"25-35万", 
     230            "indexId":6 
     231        }, 
     232        { 
     233            "title":"35-50万", 
     234            "indexId":7 
     235        }, 
     236        { 
     237            "title":"50-70万", 
     238            "indexId":8 
     239        }, 
     240        { 
     241            "title":"70-100万", 
     242            "indexId":9 
     243        }, 
     244        { 
     245            "title":"100-150万", 
     246            "indexId":10 
     247        }, 
     248        { 
     249            "title":"150万以上", 
     250            "indexId":11 
     251        } 
     252    ] 
    211253} 
     254 
    212255indexId 价格范围索引 
    213256title 价格范围内容 
    214257 
    215 http://ks.pcauto.com.cn/search.jsp?q=state:1&returnType=json&appName=auto_price&perPage=0&clustered=cluster_price,cluster_brand,cluster_std_displacement,cluster_kind,cluster_gearbox 
    216258}}} 
    217259 
     
    221263请求方式get 
    222264请求参数: 
    223   indexed 对应1.3返回的indexId,用于搜索该范围内的车系数据,例如1.3返回 
    224 { 
    225         data:[ 
    226         { 
    227                 indexId:”1”, 
    228                 title:”1~3万” 
    229   }, 
    230   { 
    231                 indexId:”2”, 
    232                 title:”4~9万” 
    233   } 
    234   ] 
    235 } 
    236 当客户端请求indexId为1时,则返回1~3万范围内的车系信息 
    237    
     265  price :价格范围,例如 100-150万  70-100万 ,需要UTF-8编码 
     266Url: 
     267   http://mrobot.pcauto.com.cn/v3/price/getSerialListByPrice 
     268例子: 
     269   http://mrobot.pcauto.com.cn/v3/price/getSerialListByPrice?price=70-100%e4%b8%87 
     270 
    238271返回: 
    239272{ 
    240         data:[ 
    241         { 
    242                 manufacturerName:"奥迪", 
    243   letter:"A", 
    244                 photo:"http://XXXX" 
    245                 Serials: 
    246                 [ 
    247                         { 
    248                                 id:"1", 
    249                                 name:"奥迪A5",            photo:"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1204/17/c0/11275790_11275790_1334627727533_120x90.jpg" 
    250                         }, 
    251                         { 
    252                                 id:"1", 
    253                                 name:"奥迪A6L"                    photo:"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1204/17/c0/11275790_11275790_1334627727533_120x90.jpg" 
    254                         } 
    255                 ] 
    256         }, 
    257         { 
    258                 manufacturerName:"阿斯顿马丁", 
    259   letter:"A", 
    260                 photo:"http://XXXX" 
    261                 Serials: 
    262                 [ 
    263                         { 
    264                                 id:"1", 
    265                                 name:"奥迪A5"             photo:"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1204/17/c0/11275790_11275790_1334627727533_120x90.jpg" 
    266                         } 
    267                 ] 
    268         }] 
     273    "data":[ 
     274        { 
     275            "manufacturerName":"奥迪", 
     276            "letter":"A", 
     277            "photo":"http://img2.pcauto.com.cn/pcauto/1011/29/1328170_audi.png", 
     278            "serials":[ 
     279                { 
     280                    "id":"8", 
     281                    "name":"奥迪TT", 
     282                    "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1204/17/c0/11275790_11275790_1334627727533_120x90.jpg" 
     283                }, 
     284                { 
     285                    "id":"3975", 
     286                    "name":"奥迪Q3", 
     287                    "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1204/17/c0/11275790_11275790_1334627727533_120x90.jpg" 
     288                } 
     289            ] 
     290        }, 
     291        { 
     292            "manufacturerName":"宝马", 
     293            "letter":"B", 
     294            "photo":"http://img3.pcauto.com.cn/pcauto/1011/29/1328238_bmw_1.png", 
     295            "serials":[ 
     296                { 
     297                    "id":"424", 
     298                    "name":"宝马3系", 
     299                    "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1204/17/c0/11275790_11275790_1334627727533_120x90.jpg" 
     300                } 
     301            ] 
     302        } 
     303    ] 
    269304} 
     305 
    270306manufacturerName:厂商名 
    271307Letter:索引字母