🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**简要描述:** - pc商品列表 **请求URL:** - ` api/pc/goodsList` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | |name|选填 |sting|商品名称 | |category_id|选填 |int |分类id | |type|选填 |int |类型:1-热销榜单;2-新品推荐;3-好物优选| |sort_type|选填 |string |筛选类型:sales_sum-销量筛选;price-价格筛选| |sort|选填 |string |排序方式:desc-降序;asc-升序 | **返回示例** ``` { "code": 1, "msg": "", "data": { "list": [ { "id": 45, "name": "ROG幻13(8核锐龙R7 5800HS 16G 512G GTX1650)", "image": "http://www.likeshop.localhost/uploads/images/background/20210130/b23ca523e1b3c4b33f207bde90202ca1.png", "price": "0.01", "market_price": "7999.00", "sales_sum": 24 }, { "id": 29, "name": "雾霾蓝纯色套头卫衣 2020秋季新款ins圆领长袖T恤宽松男女外套潮777", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/17ca8666f3122f0ea83801a7c333b58f.png", "price": "59.00", "market_price": "69.00", "sales_sum": 10410 }, { "id": 19, "name": "好利来马卡龙甜品情人节礼盒糕点点心小蛋糕零食送女友", "image": "http://www.likeshop.localhost/uploads/images/background/20201020/701941ed21af22e3699953a9367d18ad.jpg", "price": "79.00", "market_price": "168.00", "sales_sum": 198 }, { "id": 47, "name": "tetst", "image": "http://www.likeshop.localhost/uploads/images/202102261103100ce006719.jpeg", "price": "111.00", "market_price": "111.00", "sales_sum": 13 }, { "id": 25, "name": "智能机器狗遥控儿童玩具小狗编程特技狗狗电子男孩益智宝宝机器人", "image": "http://www.likeshop.localhost/uploads/images/background/20201117/82ca52262e475be6819436276468540d.jpg", "price": "199.00", "market_price": "199.00", "sales_sum": 25 }, { "id": 23, "name": "5G新品创星mate30PRO骁龙865全网通5g学生价游戏智能手机水滴全面屏千百元曲面送老人老年oppo小米鼠华为耳机", "image": "http://www.likeshop.localhost/uploads/images/background/20201022/b94995f7802403650a89c7bbc8768ef3.jpg", "price": "999.00", "market_price": "2099.00", "sales_sum": 254 }, { "id": 24, "name": "乐高旗舰店官网 成年高难度创意百变高手10262跑车积木玩具男女孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/6d2ce8d11a6a25cdfee5efd2dab03f50.png", "price": "1399.00", "market_price": "1869.00", "sales_sum": 417 }, { "id": 27, "name": "Apple/苹果 iPhone 12", "image": "http://www.likeshop.localhost/uploads/images/background/20201130/3cb868c5006d0950b4c4c438564edf53.png", "price": "7999.00", "market_price": "7999.00", "sales_sum": 40 } ], "page": 1, "size": 15, "count": 8, "more": 0 }, "show": 0, "time": "0.395993" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |list|array|商品列表 |----id |int |商品id |----name |varchar |商品名称 |----image |varchar |商品主图 |----price |string |商品价格 |----market_price |string |商品市场价 **备注** -