Authored by lijing

获取skn

@@ -995,9 +995,9 @@ const getSeckillData = (productSkn) => { @@ -995,9 +995,9 @@ const getSeckillData = (productSkn) => {
995 995
996 data = { 996 data = {
997 activityId: 4, 997 activityId: 4,
998 - startTime: 1465194254,  
999 - endTime: 1475294254,  
1000 - formatSecKillPrice: '¥133.00', 998 + startTime: 1475892120,
  999 + endTime: 1476892120,
  1000 + formatSecKillPrice: '¥1234.00',
1001 id: 4, 1001 id: 4,
1002 orderBy: 0, 1002 orderBy: 0,
1003 productSkn: 512581470, 1003 productSkn: 512581470,
@@ -1029,7 +1029,21 @@ const getSeckillData = (productSkn) => { @@ -1029,7 +1029,21 @@ const getSeckillData = (productSkn) => {
1029 id: 2, 1029 id: 2,
1030 productSkn: 512581470, 1030 productSkn: 512581470,
1031 productSku: 1384444, 1031 productSku: 1384444,
1032 - storageNum: 0 1032 + storageNum: 4
  1033 + },
  1034 + {
  1035 + activityId: 4,
  1036 + id: 2,
  1037 + productSkn: 512581470,
  1038 + productSku: 138555,
  1039 + storageNum: 3
  1040 + },
  1041 + {
  1042 + activityId: 4,
  1043 + id: 2,
  1044 + productSkn: 512581470,
  1045 + productSku: 138666,
  1046 + storageNum: 3
1033 } 1047 }
1034 ], 1048 ],
1035 secKillStatus: 0, 1049 secKillStatus: 0,
@@ -1177,7 +1191,6 @@ let getProductData = (data) => { @@ -1177,7 +1191,6 @@ let getProductData = (data) => {
1177 consults: _.take(info[3], 2) 1191 consults: _.take(info[3], 2)
1178 }); 1192 });
1179 } 1193 }
1180 -  
1181 return finalResult; 1194 return finalResult;
1182 }); 1195 });
1183 1196
@@ -685,15 +685,8 @@ $yohoPage.on('touchstart', '.btn-minus', function() { @@ -685,15 +685,8 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
685 function() { 685 function() {
686 var thisSkn = $('#productSkn').val(); 686 var thisSkn = $('#productSkn').val();
687 var thisSku = ''; 687 var thisSku = '';
688 - $('.size-row').each(  
689 - function() {  
690 - if ($(this).hasClass('hide')) {  
691 - return false;  
692 - } else {  
693 - thisSku = $(this).find('.chosed').attr('data-skuid');  
694 - }  
695 - }  
696 - ); 688 +
  689 + thisSku = $('.size-row:last').find('.chosed').attr('data-skuid');
697 690
698 window.location.href = '/cart/seckill?skn=' + thisSkn + '&sku=' + thisSku; 691 window.location.href = '/cart/seckill?skn=' + thisSkn + '&sku=' + thisSku;
699 } 692 }
@@ -84,7 +84,7 @@ $( @@ -84,7 +84,7 @@ $(
84 seckillObj.startTick(timeObj, offsetTime); 84 seckillObj.startTick(timeObj, offsetTime);
85 }, 85 },
86 error: function() { 86 error: function() {
87 - // alert('err'); 87 + tip.show('网络异常~');
88 } 88 }
89 }); 89 });
90 90