文档
测试

商品详情页

GET
http://{{host}}/index.php?s=%2Fapi%2Fgoods%2Fdetail&wxapp_id=10001&token=5d974deb299931300443ff7a48f0b5c7&goods_id=12474

请求参数

参数名
类型
描述
必填
s
string
示例:/api/goods/detail
必填
wxapp_id
int
示例:10001
必填
token
string
示例:5d974deb299931300443ff7a48f0b5c7
必填
goods_id
int
示例:12474
必填
is_rush
string
示例:1是秒杀
必填
activity_id
string
示例:活动id
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:success
必填
data
object
数据字典
必填
images
array
数据列表
必填
id
int
示例:30616
必填
goods_id
int
示例:12474
必填
image_id
int
示例:24979
必填
file_path
string
示例:http://btys.vshop365.cn/uploads/20200925161332e88273839.jpg
必填
file_name
string
示例:20200925161332e88273839.jpg
必填
file_url
string
示例:
必填
rules
string
示例:<p>请在设置中配置</p>
必填
detail
object
数据字典
必填
goods_id
int
示例:12474
必填
goods_name
string
示例:兵团大地无核白葡萄干120g
必填
selling_point
string
示例:货源火爆预定中!提早下单,优先备货!
必填
category_id
int
示例:10511
必填
spec_type
int
示例:10
必填
deduct_stock_type
int
示例:10
必填
content
string
示例:<p><br/></p><p><img src="http://btys.vshop365.cn/uploads/202009251617541cf637680.jpg"/></p><p><img src="http://btys.vshop365.cn/uploads/202009251618085c6b40407.jpg"/></p><p><img src="http://btys.vshop365.cn/uploads/2020092516182050a454122.jpg"/></p><p><img src="http://btys.vsh...
必填
goods_sort
int
示例:100
必填
buy_limit
int
示例:0
必填
least_expend_money
string
示例:0.00
必填
delivery_id
int
示例:10001
必填
is_new_user_enjoy
int
示例:0
必填
is_points_gift
int
示例:1
必填
is_points_discount
int
示例:1
必填
is_enable_balance_price
int
示例:0
必填
is_enable_grade
int
示例:1
必填
is_alone_grade
int
示例:0
必填
alone_grade_equity
object
数据字典
必填
1
string
示例:
必填
2
string
示例:
必填
is_ind_dealer
int
示例:1
必填
dealer_money_type
int
示例:1
必填
first_money
string
示例:10.00
必填
second_money
string
示例:0.00
必填
third_money
string
示例:0.00
必填
is_rush
int
示例:0
必填
is_points_exchange
int
示例:0
必填
need_points_num
int
示例:0
必填
need_points_money
string
示例:0.00
必填
goods_status
object
数据字典
必填
text
string
示例:上架
必填
value
int
示例:10
必填
is_packet
int
示例:0
必填
is_checked
int
示例:1
必填
video
string
示例:
必填
comment_data_count
int
示例:0
必填
goods_stock
int
示例:2298
必填
goods_image
string
示例:http://btys.vshop365.cn/uploads/20200925161332e88273839.jpg
必填
goods_sku
object
数据字典
必填
goods_sku_id
int
示例:33762
必填
goods_id
int
示例:12474
必填
spec_sku_id
string
示例:0
必填
image_id
int
示例:0
必填
goods_no
string
示例:
必填
balance_price
string
示例:0.00
必填
goods_price
string
示例:9.90
必填
line_price
string
示例:0.00
必填
stock_num
int
示例:2298
必填
goods_sales
int
示例:2
必填
goods_weight
float
示例:0.12
必填
goods_old_price
string
示例:9.90
必填
image
object
示例:null
必填
goods_multi_spec
object
示例:null
必填
is_user_grade
boolean
示例:false
必填
bought_num
int
示例:0
必填
collect
int
示例:0
必填
category
object
数据字典
必填
category_id
int
示例:10511
必填
name
string
示例:干果
必填
parent_id
int
示例:0
必填
image_id
int
示例:0
必填
sort
int
示例:10
必填
create_time
string
示例:2020-09-08 17:47:37
必填
image
array
数据列表
必填
id
int
示例:30616
必填
goods_id
int
示例:12474
必填
image_id
int
示例:24979
必填
file_path
string
示例:http://btys.vshop365.cn/uploads/20200925161332e88273839.jpg
必填
file_name
string
示例:20200925161332e88273839.jpg
必填
file_url
string
示例:
必填
sku
array
数据列表
必填
goods_sku_id
int
示例:33762
必填
goods_id
int
示例:12474
必填
spec_sku_id
string
示例:0
必填
image_id
int
示例:0
必填
goods_no
string
示例:
必填
balance_price
string
示例:0.00
必填
goods_price
string
示例:9.90
必填
line_price
string
示例:0.00
必填
stock_num
int
示例:2298
必填
goods_sales
int
示例:2
必填
goods_weight
float
示例:0.12
必填
goods_old_price
string
示例:9.90
必填
image
object
示例:null
必填
comment_data
array
数据列表
必填
goods_sales
int
示例:3
必填
coupon
object
数据字典
必填
name
string
示例:暂无可用优惠券
必填
cart_total_num
int
示例:0
必填
specData
object
示例:null
必填
setting
object
数据字典
必填
points_name
string
示例:积分
必填