获取商品评价订单
接口地址:{#webAspxUrl#}member/shopping/shopComment.aspx?action=ordergoodslist
支持格式:json
请求方式:get
请求参数说明:
| 名称 | 类型 | 必填 | 说明 | |
|---|---|---|---|---|
| count | int | Y | 每页显示数量 | |
| page | int | Y | 当前页码 | |
| status | string | Y | 评价状态 0 未评价 1 已评价 |
返回参数说明:
| 名称 | 类型 | 说明 | |
|---|---|---|---|
| OrderGoodsCount | int | 数量 | |
| OrderGoodsList | array | 商品数据 | |
| CartId | int | ID | |
| commodityId | int | 商品ID | |
| CartImg | string | 商品图片地址 | |
| orderDate | string | 订单时间 | |
| CommodityName | string | 商品名称 | |
| commodityLink | string | 商品链接 | |
| CommodityProperty | string | 商品属性 | |
| CommodityNumber | int | 购物数量 | |
| commentStatus | int | 评价数量 |
JSON返回示例:
获取某个评价订单商品
接口地址:{#webAspxUrl#}member/shopping/shopCommentAdd.aspx?action=ordergoods
支持格式:json
请求方式:get
请求参数说明:
| 名称 | 类型 | 必填 | 说明 | |
|---|---|---|---|---|
| CartId | string | Y | 购物车id |
返回参数说明:
| 名称 | 类型 | 说明 | |
|---|---|---|---|
| CartId | int | id | |
| commodityId | int | 商品ID | |
| CartImg | string | 商品缩略图 | |
| orderDate | string | 订单时间 | |
| CommodityName | string | 商品名称 | |
| commodityLink | string | 商品链接 | |
| CommodityProperty | string | 商品属性 | |
| CommodityNumber | int | 购买数量 | |
| commentStatus | int | 评价id |
JSON返回示例:
对商品进行评价
接口地址:{#webAspxUrl#}member/shopping/shopCommentAdd.aspx?action=add
支持格式:json
请求方式:post
请求参数说明:
| 名称 | 类型 | 必填 | 说明 | |
|---|---|---|---|---|
| CartId | int | Y | 购物车id | |
| commodityId | int | Y | 商品id | |
| commentContent | string | Y | 评价内容 | |
| commentLevel | int | Y | 星级 | |
| commentPQ | string | Y | 评价标签 | |
| commentImages | string | N | 上传图片 |
返回参数说明:
| 名称 | 类型 | 说明 | |
|---|---|---|---|
| Status | int | 状态 1 成功 <1 失败 | |
| returnMsg | string | 返回信息 | |
| 代码 | 返回信息 | ||
| 1 | 商品评价发表成功 | ||
| -1 | 商品评价发表失败,请与管理员联系 | ||
| -2 | 商品评价发表失败,必填项不能为空 | ||
JSON返回示例:
