detail-hotarea-api.js
439 Bytes
/**
* Created by TaoHuang on 2016/6/13.
*/
const library = '../../../library';
const API = require(`${library}/api`).API;
const sign = require(`${library}/sign`);
const Promise = require('bluebird');
const api = new API();
/**
* 获取商品的热区
*/
module.exports.indexAsync = (pid) => {
return api.get('', api.apiSign({
method: 'web.productCollocation.list',
product_id: pid
})).catch(console.log);
};