Authored by lijing

获取skn

... ... @@ -995,9 +995,9 @@ const getSeckillData = (productSkn) => {
data = {
activityId: 4,
startTime: 1465194254,
endTime: 1475294254,
formatSecKillPrice: '¥133.00',
startTime: 1475892120,
endTime: 1476892120,
formatSecKillPrice: '¥1234.00',
id: 4,
orderBy: 0,
productSkn: 512581470,
... ... @@ -1029,7 +1029,21 @@ const getSeckillData = (productSkn) => {
id: 2,
productSkn: 512581470,
productSku: 1384444,
storageNum: 0
storageNum: 4
},
{
activityId: 4,
id: 2,
productSkn: 512581470,
productSku: 138555,
storageNum: 3
},
{
activityId: 4,
id: 2,
productSkn: 512581470,
productSku: 138666,
storageNum: 3
}
],
secKillStatus: 0,
... ... @@ -1177,7 +1191,6 @@ let getProductData = (data) => {
consults: _.take(info[3], 2)
});
}
return finalResult;
});
... ...
... ... @@ -685,15 +685,8 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
function() {
var thisSkn = $('#productSkn').val();
var thisSku = '';
$('.size-row').each(
function() {
if ($(this).hasClass('hide')) {
return false;
} else {
thisSku = $(this).find('.chosed').attr('data-skuid');
}
}
);
thisSku = $('.size-row:last').find('.chosed').attr('data-skuid');
window.location.href = '/cart/seckill?skn=' + thisSkn + '&sku=' + thisSku;
}
... ...
... ... @@ -84,7 +84,7 @@ $(
seckillObj.startTick(timeObj, offsetTime);
},
error: function() {
// alert('err');
tip.show('网络异常~');
}
});
... ...