首页接口
URL地址 | http://www.tpshop.com/index.php?m=api&c=Index&a=homePage |
请求方式 | get |
返回结果,参数说明
meida_type = 3 时, 意味着该广告跳转到一个商品详情, 此时ad_link的值是goods_id
meida_type = 4 时, 意味着该广告跳转到一个商品列表, 此时ad_link的值是三级分类id
meida_type = 5 时, 意味着该广告跳转到一个网页, 此时ad_link的值是网页URL
参数列表
无:
示例:
成功返回: { "status":1, "msg":"获取成功", "result":{ "banner":[ { "ad_link":"", "ad_name":"首页轮播1", "ad_code":"/public/upload/ad/2017/09-15/a6c2511e078699d7e63d68e98c70331b.jpg", "media_type":4, "pid":500 }, { "ad_link":"174", "ad_name":"轮播广告-商品", "ad_code":"/public/upload/ad/2017/09-15/d9498c21166f7ff550e855904e1025b4.jpg", "media_type":3, "pid":500 }, { "ad_link":"1_12_100", "ad_name":"轮播广告-分类", "ad_code":"/public/upload/ad/2017/09-15/12168781c1786084e646dfa13dff93e6.jpg", "media_type":4, "pid":500 }, { "ad_link":"/index.php?m=api&c=user&a=about_us", "ad_name":"轮播广告-链接", "ad_code":"/public/upload/ad/2017/09-15/740a03f12360ffb6c64f46eab0ac9180.jpg", "media_type":5, "pid":500 } ], "ad":[ { "ad_link":"166", "ad_name":"首页-中部广告-大图", "ad_code":"/public/upload/ad/2017/09-15/a3073da17c946b82582dae03f77307e7.png", "media_type":3, "pid":506 }, { "ad_link":"4_32_238", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/bd9c7def14f57853090c99dee669dad9.png", "media_type":4, "pid":507 }, { "ad_link":"163", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/fdda23e0f1f7a66b2ba8caac1bdfee04.png", "media_type":3, "pid":508 }, { "ad_link":"150", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/eb8bce747d71e0d9c34b06882c669c33.png", "media_type":3, "pid":509 }, { "ad_link":"140", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/873d019356a39dc68394e23d5da0d48f.png", "media_type":3, "pid":510 }, { "ad_link":"", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/f564636c54c0b0f9bd1cdac97e0a20f8.png", "media_type":3, "pid":511 }, { "ad_link":"142", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/440ec04a84ccba54f5199e7e4b265523.png", "media_type":3, "pid":512 }, { "ad_link":"1_13_103", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/afdc46ec14f8d0754191512fe5434c3a.png", "media_type":4, "pid":513 }, { "ad_link":"1_14_108", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/bab8969e333348a083b7607c73c9172b.png", "media_type":4, "pid":514 }, { "ad_link":"126", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/fed0cd45f9c36fd04f9b87c9a112cd6a.png", "media_type":3, "pid":515 }, { "ad_link":"140", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-15/8be98bb09000e3c778221a4c85d57a38.png", "media_type":3, "pid":516 }, { "ad_link":"136", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-18/dd46e0d2f92ffaf5ac630ef6bdc36eae.png", "media_type":3, "pid":517 }, { "ad_link":"117", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-18/43f5a005c5fb5b57c82b74a85c12673d.png", "media_type":3, "pid":517 }, { "ad_link":"106", "ad_name":"自定义广告名称", "ad_code":"/public/upload/ad/2017/09-18/3f3ac9392c8687a9f5b048b924126d51.png", "media_type":3, "pid":518 } ] } }