```javascript
WXAPI.goodsDetailV2({
  id: 123,
  token: '000',
  showWholesale: false
})
```
+ id 商品编号
+ token 这个参数不是必填的,游客可不填;填了这个参数,会记录浏览记录,登陆用户建议传该参数
+ showWholesale 是否返回批发设置信息
+ showBillDiscounts 显示满减设置
```json
{
  "code": 0,
  "data": {
    "pics2": [
      "https://dcdn.it120.cc/2020/04/15/0a86e7ef-3680-4f9f-a22c-2afb26672b7d.png"
    ],
    "skuList": [
      {
        "fxType": 2,
        "goodsId": 810285,
        "id": 4359784,
        "originalPrice": 800,
        "pingtuanPrice": 0,
        "price": 599,
        "propertyChildIds": "30899:320216,30900:320218,30901:320221,",
        "propertyChildNames": "网络类型:4G,新订单提示:真人语音,切纸方式:自动切纸,",
        "score": 0,
        "stores": 999996,
        "userId": 951
      },
      {
        "fxType": 2,
        "goodsId": 810285,
        "id": 4359785,
        "originalPrice": 800,
        "pingtuanPrice": 0,
        "price": 499,
        "propertyChildIds": "30899:320216,30900:320218,30901:320220,",
        "propertyChildNames": "网络类型:4G,新订单提示:真人语音,切纸方式:手动撕纸,",
        "score": 0,
        "stores": 999999,
        "userId": 951
      },
      {
        "fxType": 2,
        "goodsId": 810285,
        "id": 4359786,
        "originalPrice": 0,
        "pingtuanPrice": 0,
        "price": 499,
        "propertyChildIds": "30899:320215,30900:320218,30901:320221,",
        "propertyChildNames": "网络类型:WIFI,新订单提示:真人语音,切纸方式:自动切纸,",
        "score": 0,
        "stores": 999986,
        "userId": 951
      },
      {
        "fxType": 2,
        "goodsId": 810285,
        "id": 4359787,
        "originalPrice": 0,
        "pingtuanPrice": 0,
        "price": 389,
        "propertyChildIds": "30899:320215,30900:320218,30901:320220,",
        "propertyChildNames": "网络类型:WIFI,新订单提示:真人语音,切纸方式:手动撕纸,",
        "score": 0,
        "stores": 999994,
        "userId": 951
      },
      {
        "fxType": 2,
        "goodsId": 810285,
        "id": 4359788,
        "originalPrice": 0,
        "pingtuanPrice": 0,
        "price": 299,
        "propertyChildIds": "30899:320215,30900:320217,30901:320220,",
        "propertyChildNames": "网络类型:WIFI,新订单提示:滴滴声,切纸方式:手动撕纸,",
        "score": 0,
        "stores": 999967,
        "userId": 951
      }
    ],
    "subPics": [],
    "logistics": {
      "isFree": true,
      "feeType": 0,
      "feeTypeStr": "按件数",
      "details": [
        {
          "addAmount": 0,
          "addNumber": 1,
          "firstAmount": 8,
          "firstNumber": 100,
          "type": 0,
          "userId": 951
        }
      ]
    },
    "extJson": {},
    "category": {
      "icon": "https://cdn.it120.cc/apifactory/2019/04/09/8d32c254e2cb86d2d42c99b768d136b6.png",
      "id": 1875,
      "isUse": true,
      "key": "4",
      "name": "特价区",
      "paixu": 0,
      "pid": 0,
      "shopId": 0,
      "type": "",
      "userId": 951
    },
    "pics": [
      {
        "goodsId": 810285,
        "id": 4324619,
        "pic": "https://dcdn.it120.cc/2020/04/15/0a86e7ef-3680-4f9f-a22c-2afb26672b7d.png",
        "userId": 951
      }
    ],
    "content": "











",
    "properties": [
      {
        "childsCurGoods": [
          {
            "dateAdd": "2020-04-16 11:00:11",
            "id": 320215,
            "name": "WIFI",
            "paixu": 0,
            "propertyId": 30899,
            "userId": 951
          },
          {
            "dateAdd": "2020-04-16 11:00:15",
            "id": 320216,
            "name": "4G",
            "paixu": 0,
            "propertyId": 30899,
            "userId": 951
          }
        ],
        "dateAdd": "2020-04-16 11:00:05",
        "id": 30899,
        "name": "网络类型",
        "paixu": 0,
        "userId": 951
      },
      {
        "childsCurGoods": [
          {
            "dateAdd": "2020-04-16 11:00:38",
            "id": 320217,
            "name": "滴滴声",
            "paixu": 0,
            "propertyId": 30900,
            "userId": 951
          },
          {
            "dateAdd": "2020-04-16 11:00:44",
            "id": 320218,
            "name": "真人语音",
            "paixu": 0,
            "propertyId": 30900,
            "userId": 951
          }
        ],
        "dateAdd": "2020-04-16 11:00:31",
        "id": 30900,
        "name": "新订单提示",
        "paixu": 0,
        "userId": 951
      },
      {
        "childsCurGoods": [
          {
            "dateAdd": "2020-04-16 11:01:23",
            "id": 320220,
            "name": "手动撕纸",
            "paixu": 0,
            "propertyId": 30901,
            "userId": 951
          },
          {
            "dateAdd": "2020-04-16 11:01:32",
            "id": 320221,
            "name": "自动切纸",
            "paixu": 0,
            "propertyId": 30901,
            "userId": 951
          }
        ],
        "dateAdd": "2020-04-16 11:01:07",
        "id": 30901,
        "name": "切纸方式",
        "paixu": 0,
        "userId": 951
      }
    ],
    "basicInfo": {
      "afterSale": "0,1,2",
      "categoryId": 1875,
      "commission": 0,
      "commissionSettleType": 0,
      "commissionType": 0,
      "commissionUserType": 0,
      "dateAdd": "2021-04-11 22:43:55",
      "dateUpdate": "2021-12-07 16:07:00",
      "fxType": 2,
      "gotScore": 0,
      "gotScoreType": 0,
      "hasAddition": true,
      "hasTourJourney": false,
      "hidden": 0,
      "id": 810285,
      "kanjia": false,
      "kanjiaPrice": 0,
      "limitation": false,
      "logisticsId": 386,
      "maxCoupons": 1,
      "miaosha": false,
      "minBuyNumber": 1,
      "minPrice": 299,
      "minScore": 0,
      "name": "小票打印机工厂定制版",
      "numberFav": 43,
      "numberGoodReputation": 7,
      "numberOrders": 8,
      "numberReputation": 0,
      "numberSells": 8,
      "originalPrice": 0,
      "overseas": false,
      "paixu": 0,
      "pic": "https://dcdn.it120.cc/2020/04/15/0a86e7ef-3680-4f9f-a22c-2afb26672b7d.png",
      "pingtuan": false,
      "pingtuanPrice": 0,
      "priceShopSell": 0,
      "propertyIds": ",30899,30900,30901,",
      "recommendStatus": 1,
      "recommendStatusStr": "推荐",
      "seckillBuyNumber": 0,
      "sellEnd": false,
      "sellStart": true,
      "shopId": 0,
      "status": 0,
      "statusStr": "上架",
      "storeAlert": false,
      "stores": 4999942,
      "stores0Unsale": false,
      "tags": "",
      "type": 0,
      "unit": "台",
      "unusefulNumber": 0,
      "usefulNumber": 0,
      "userId": 951,
      "vetStatus": 1,
      "views": 9083,
      "weight": 0
    }
  },
  "msg": "success"
}
```
# 返回参数说明
## 类目信息 category
+ id 类目ID
+ name 类目名称
## 轮播图 pics
或者直接使用 `pics2`,已经帮你把图标地址转换为字符串数组了
+ pic 图片地址
## 基础信息 basicInfo
+ name 商品名称
+ tags 商品标签,多个标签用英文状态下的逗号分隔
+ originalPrice 原价
+ minPrice 现价
+ stores 当前库存
+ shopId 该商品所属门店的门店id
+ limitation 该商品是否已开启限购
+ miaosha  true 为秒杀商品;false为不是秒杀商品
+ seckillBuyNumber 秒杀每个用户限购数量
+ minScore 需要支付多少积分
+ numberSells 销售数量
+ numberOrders 订单数
+ purchaseNotes 购买须知
+ characteristic 特色、卖点
+ vetStatus 0 待审核 1 审核通过 2 审核不通过
## 商品sku信息 skuList
商品有几个款式组合,就有几条记录
+ originalPrice 原价
+ pingtuanPrice 拼团价格
+ price 单独购买价格
+ propertyChildIds sku对应的信息
+ propertyChildNames sku名称
+ score 需要扣除多少积分
+ stores 当前库存
## 规格尺寸选择器 properties
将上面的款式组合的选项打散以后的数据,这样前端可以做成选择联动
例如:
```json
"properties": [
            {
                "childsCurGoods": [
                    {
                        "dateAdd": "2020-04-16 11:00:11",
                        "extJson": {},
                        "extJson2": {},
                        "id": 320215,
                        "name": "WIFI",
                        "paixu": 0,
                        "propertyId": 30899,
                        "userId": 951
                    },
                    {
                        "dateAdd": "2020-04-16 11:00:15",
                        "extJson": {},
                        "extJson2": {},
                        "id": 320216,
                        "name": "4G",
                        "paixu": 0,
                        "propertyId": 30899,
                        "userId": 951
                    }
                ],
                "dateAdd": "2020-04-16 11:00:05",
                "id": 30899,
                "name": "网络类型",
                "paixu": 0,
                "userId": 951
            },
            {
                "childsCurGoods": [
                    {
                        "dateAdd": "2020-04-16 11:00:38",
                        "extJson": {},
                        "extJson2": {},
                        "id": 320217,
                        "name": "滴滴声",
                        "paixu": 0,
                        "propertyId": 30900,
                        "userId": 951
                    },
                    {
                        "dateAdd": "2020-04-16 11:00:44",
                        "extJson": {},
                        "extJson2": {},
                        "id": 320218,
                        "name": "真人语音",
                        "paixu": 0,
                        "propertyId": 30900,
                        "userId": 951
                    }
                ],
                "dateAdd": "2020-04-16 11:00:31",
                "id": 30900,
                "name": "新订单提示",
                "paixu": 0,
                "userId": 951
            },
            {
                "childsCurGoods": [
                    {
                        "dateAdd": "2020-04-16 11:01:23",
                        "extJson": {},
                        "extJson2": {},
                        "id": 320220,
                        "name": "手动撕纸",
                        "paixu": 0,
                        "propertyId": 30901,
                        "userId": 951
                    },
                    {
                        "dateAdd": "2020-04-16 11:01:32",
                        "extJson": {},
                        "extJson2": {},
                        "id": 320221,
                        "name": "自动切纸",
                        "paixu": 0,
                        "propertyId": 30901,
                        "userId": 951
                    }
                ],
                "dateAdd": "2020-04-16 11:01:07",
                "id": 30901,
                "name": "切纸方式",
                "paixu": 0,
                "userId": 951
            }
        ],
```
+ id 规格ID
+ name 规格名称
+ childsCurGoods 这个规格有哪些可选项
    - id 选项ID
    - name 选项名称
    - extJson 和 extJson2 后台设置的扩展属性数据,原样返回
## 商品详情 content
## 运费模板 logistics
+ feeTypeStr 计费类型,比如 按件数、按总量、按金额等等
+ isFree 是否包邮,包邮的话,就不计算运费
+ details 计费详情,是个数组
    - firstNumber 初始数量
    - firstAmount 初始金额
    - addNumber 增加数量
    - addAmount 增加金额
## 商品扩展属性 extJson 和 extJson2
原样返回后台填写的扩展属性数据