文档
测试

商品详情

POST
app/yxh/getYxhPro

接口描述

产品详情:商品信息+库存信息

请求参数

参数名
类型
描述
必填
proId
number
商品ID
必填

响应参数

参数名
类型
描述
必填
message
string
示例:商品详情
必填
status
string
示例:success
必填
data
object
数据字典
必填
proId
number
商品ID 示例:4
必填
marketPrice
number
市场价、原价 示例:3
必填
scaleVals
array
规格及规格值 数据列表
必填
scaleId
number
规格ID 示例:1
必填
scaleName
string
规格名称 示例:颜色
必填
scaleIdVals
array
数据列表
必填
scaleValId
number
规格值ID 示例:80
必填
scaleVal
string
规格值 示例:棕色
必填
store
number
库存
必填
proImage
array
商品图片[] 数据列表
必填
proType
string
类型 示例:1 {1-爆款 2-基础款 3-电子券}
必填
lowPrice
number
最低价 示例:1
必填
brandId
number
品牌ID 示例:3
必填
scaleIds
string
规格ID 示例:1,3
必填
typeName
string
类型、类目 示例:食品
必填
proName
string
商品名称 示例:中盐纯精岩盐
必填
brand
string
品牌 示例:中盐
必填
proNo
string
商品编号 示例:e4cf520b-1a93-4e76-84b8-eae2f2e0c63e
必填
price5
number
示例:1
必填
price4
number
示例:1
必填
typeId
number
示例:1
必填
price3
number
示例:1
必填
price2
number
示例:1
必填
proUnit
string
单位 示例:袋
必填
price1
number
示例:1
必填
proDetail
array
商品详情图片[] 数据列表
必填
imgUrl
string
图片URL
必填
width
number
图片宽
必填
height
number
图片高
必填

说明 / 示例

```json { "message": "商品详情", "status": "success", "data": { "proId": 4, "marketPrice": 3.0, "scaleVals": [{ "scaleId": 1, "scaleName": "颜色", "scaleIdVals": [{ "scaleValId": 80, "store":0, "scaleVal": "棕色" }, { "scaleValId": 81, "store":3280, "scaleVal": "白色" }, { "scaleValId": 82, "store":0, "scaleVal": "粉色" }, { "scaleValId": 83, "store":0, "scaleVal": "红色" }, { "scaleValId": 84, "store":0, "scaleVal": "蓝色" }, { "scaleValId": 85, "store":0, "scaleVal": "黄色" }, { "scaleValId": 86, "store":0, "scaleVal": "黑色" }] }, { "scaleId": 3, "scaleName": "重量", "scaleIdVals": [{ "scaleValId": 58, "store":3280, "scaleVal": "400g" }, { "scaleValId": 59, "store":0, "scaleVal": "500g" }, { "scaleValId": 60, "store":0, "scaleVal": "1000g" }] }], "proImage": ["http://192.183.2.228/static//upload/uploadify/2019121/826bd8ba-eb4c-4605-81db-aed94a059ae3_360_360.jpg"], "proType": "1", "lowPrice": 1.0, "brandId": 3, "scaleIds": "1,3", "typeName": "食品", "proName": "中盐纯精岩盐", "brand": "中盐", "proDetail": [{"imgUrl":"http://192.183.2.228//static//upload/xheditor/2019122/2d98d8c1-de2f-4a40-96a0-96823bf5c076_360_360.jpg","width":360,"height":360}, {"imgUrl":"http://192.183.2.228//static//upload/xheditor/2019122/47a452b4-682a-43e5-af39-2a13566a88dd_360_360.jpg","width":360,"height":360}, {"imgUrl":"http://192.183.2.228//static//upload/xheditor/2019122/5bf82586-d9a9-4a46-9fc4-555f08c51de6_360_360.jpg","width":360,"height":360}], "proNo": "e4cf520b-1a93-4e76-84b8-eae2f2e0c63e", "price5": 1, "price4": 1, "typeId": 1, "price3": 1, "price2": 1, "proUnit": "袋", "price1": 1 } }