Loading…

Read the bargain setting of the product

Product list interface, product details interface, fields in the product data returned by the interface `kanjiaIf the ` field is `true`, it means that the product is a bargain product, and the bargain settings of the current product can be pulled through this interface. ```javascript WXAPI.kanjiaSet(goodsId) ``` + goodsId product id, please use commas to separate multiple products. Interface return example: ```json { "code": 0, "data": [ { "dateAdd": "2018-04-01 17:10:19", "dateEnd": "2222-05-01 12:00:00", "goodsId": 6765, "helpPriceMax": 10, "helpPriceMin": 1, "helpTimes": 2, "id": 3, "minPrice": 82, "number": 676500, "numberBuy": 112, "originalPrice": 100, "reduction": false, "status": 0, "statusStr": "Normal" } ], "msg": "success" } ``` + The amount that can be reduced each time a friend bargains is a random number between helpPriceMin - helpPriceMax; + helpTimes The number of times each person can help to bargain. By default, you can only help friends to bargain once; + id This sets the ID for bargaining. This field will be used in subsequent bargaining-related interfaces; + minPrice is the minimum bargaining price, that is to say, the minimum amount that can be obtained after the bargaining is over; the goods can be purchased at this amount in the end; + number The total number of copies of the goods being bargained for this time is on a first-come, first-served basis; the people behind you cannot purchase the goods even if they bargain down to the lowest price; + numberBuy How many people have purchased the product after bargaining; + originalPrice original price of the product; + reduction: Whether to enable production reduction, when the same person helps to bargain for multiple commodities, the amount of the subsequent commodities will be reduced by half; after the same person negotiates for himself, the amount of the reduction for others will be halved;