...
|
...
|
@@ -978,10 +978,10 @@ const _getCommonConsult = () => { |
|
|
/**
|
|
|
* 获取秒杀列表
|
|
|
*/
|
|
|
const getSeckillData = (productSkn) => {
|
|
|
const getSeckillData = (param) => {
|
|
|
let params = {
|
|
|
method: 'app.seckill.data',
|
|
|
product_skn: productSkn
|
|
|
product_skn: param.productskn
|
|
|
};
|
|
|
|
|
|
return api.get('', params, {
|
...
|
...
|
@@ -996,65 +996,7 @@ const getSeckillData = (productSkn) => { |
|
|
if (result.data) {
|
|
|
data = result.data;
|
|
|
}
|
|
|
|
|
|
data = {
|
|
|
activityId: 4,
|
|
|
startTime: 1475892120,
|
|
|
endTime: 1476892120,
|
|
|
formatSecKillPrice: '¥1234.00',
|
|
|
id: 4,
|
|
|
orderBy: 0,
|
|
|
productSkn: 512581470,
|
|
|
secKillPrice: 50,
|
|
|
secKillSku: [
|
|
|
{
|
|
|
activityId: 4,
|
|
|
id: 1,
|
|
|
productSkn: 512581470,
|
|
|
productSku: 1381111,
|
|
|
storageNum: 1
|
|
|
},
|
|
|
{
|
|
|
activityId: 4,
|
|
|
id: 2,
|
|
|
productSkn: 512581470,
|
|
|
productSku: 1382222,
|
|
|
storageNum: 2
|
|
|
},
|
|
|
{
|
|
|
activityId: 4,
|
|
|
id: 2,
|
|
|
productSkn: 512581470,
|
|
|
productSku: 1383333,
|
|
|
storageNum: 3
|
|
|
},
|
|
|
{
|
|
|
activityId: 4,
|
|
|
id: 2,
|
|
|
productSkn: 512581470,
|
|
|
productSku: 1384444,
|
|
|
storageNum: 4
|
|
|
},
|
|
|
{
|
|
|
activityId: 4,
|
|
|
id: 2,
|
|
|
productSkn: 512581470,
|
|
|
productSku: 138555,
|
|
|
storageNum: 3
|
|
|
},
|
|
|
{
|
|
|
activityId: 4,
|
|
|
id: 2,
|
|
|
productSkn: 512581470,
|
|
|
productSku: 138666,
|
|
|
storageNum: 3
|
|
|
}
|
|
|
],
|
|
|
secKillStatus: 0,
|
|
|
status: 2,
|
|
|
storageSum: 0
|
|
|
};
|
|
|
|
|
|
|
|
|
return data;
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -1101,7 +1043,7 @@ let getProductData = (data) => { |
|
|
}),
|
|
|
_getCommonConsult(),
|
|
|
comment.getConsults(result.productId, 1, 2),
|
|
|
getSeckillData(result.productSkn)
|
|
|
getSeckillData({productskn: result.productSkn})
|
|
|
]).then((info) => {
|
|
|
|
|
|
// 根据app.product.data接口是否返回isSecKill,判断是否是秒杀
|
...
|
...
|
|