多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 品质生活商品列表 >[info]接口认证:**不需要认证** ##### 响应说明 | 字段名 | 字段类型 | 字段说明 | | --- | --- | --- | | has_more | boolean | 是否还有下一页 | | list | array[goods(object)] | 商品列表 | | goods.id | int | 商品id | | goods.goods_name | string | 商品名 | | goods.goods_image | string | 商品图片 | | goods.unpublished_at | sting | 下架时间(结束时间),未设置的时候是"",设置的话是时间格式如"2022-01-31 10:00:38" | | goods.shop_price | int | 商品价格(分),有计算的需要的话可以用这个 | | goods.shop_price_foormat | string | 商品价格,已格式化好的,展示使用 | | goods.market_price | int | 市场价格(分),有计算的需要的话可以用这个 | | goods.market_price_foormat | string | 市场价格,已格式化好的,展示使用 | | goods.cost_price | int | 成本价格(分),有计算的需要的话可以用这个 | | goods.cost_price_foormat | string | 成本价格,已格式化好的,展示使用 | | goods.activity_info.activity_score | float | 收益积分(%) | | goods.activity_info.wholesale_limit | int | 批发限购 | | goods.activity_info.group_buying_limit| int | 团购限购 | | goods.activity_info.group_buying_scale| int | 团购参团人数 | | goods.activity_info.gold_vip_score| int | 养老积分抵扣 | | goods.activity_type | int | 商品活动类型,另外列出 | ##### 商品活动类型 ```php public const ACTIVITY_TYPE_TRANS = [ 0 => "普通", 1 => '活动', 2 => '批发', 3 => '团购', 4 => '黄金会员专区', 5 => '提现配额专区', 6 => '0元体验', ]; ``` ##### api说明 ~~~[api] get:/goods/list/quality?page=1&per_page=5&sort=0&order=0 int:sort=0#排序顺序,0为由大到小,1为由小到大 int:order=0#排序字段,0:最新,1:热门,2:销量,3:价格 int:page=1#页数 int:per_page=5#每页数量 int:cate_id=0#分类id float:min_price=100#最低价格(元) float:max_price=1000#最高价格(元) <<< success { "code": 200, "msg": "成功", "data": { "has_more": true, "list": [ { "id": 21, "goods_name": "黄金-五谷丰登紫砂家用功夫茶具套装", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db93bc60032.jpg", "shop_price": 499900, "activity_type": 4, "market_price": 944400, "cost_price": 30000, "unpublished_at": "2022-01-31 10:00:38", "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 500 }, "shop_price_format": "4999.00", "market_price_format": "9444.00", "cost_price_format": "300.00" }, { "id": 20, "goods_name": "活-红双喜双控涮烤一体锅-5-50", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db8bc3595dc.png", "shop_price": 398000, "activity_type": 1, "market_price": 398000, "cost_price": 398000, "unpublished_at": "", "activity_info": { "activity_score": 5, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "3980.00", "market_price_format": "3980.00", "cost_price_format": "3980.00" }, { "id": 19, "goods_name": "活-飞科男士电动剃须刀-10-100", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db8b7e49c86.jpg", "shop_price": 288000, "activity_type": 1, "market_price": 388000, "cost_price": 288000, "unpublished_at": "", "activity_info": { "activity_score": 10, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "2880.00", "market_price_format": "3880.00", "cost_price_format": "2880.00" }, { "id": 18, "goods_name": "活-美的料理机-30-90", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db8b3dd5c8b.jpg", "shop_price": 288000, "activity_type": 1, "market_price": 288000, "cost_price": 288000, "unpublished_at": "", "activity_info": { "activity_score": 30, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "2880.00", "market_price_format": "2880.00", "cost_price_format": "2880.00" }, { "id": 17, "goods_name": "活-精品天然蓝玉髓玛瑙三件套-20-100", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db8a4387131.jpg", "shop_price": 398000, "activity_type": 1, "market_price": 600000, "cost_price": 300000, "unpublished_at": "", "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "3980.00", "market_price_format": "6000.00", "cost_price_format": "3000.00" } ] } } ~~~