...
|
...
|
@@ -7,8 +7,6 @@ const cookie = require('yoho-cookie'); |
|
|
const shopTmpl = require('hbs/activity/feature/shop-group.hbs');
|
|
|
const seckillTabTpl = require('hbs/activity/feature/seckill-tab.hbs');
|
|
|
const seckillProductTpl = require('hbs/activity/feature/seckill-product.hbs');
|
|
|
const loading = require('js/plugin/loading');
|
|
|
const tip = require('js/plugin/tip');
|
|
|
|
|
|
require('scss/feature.scss');
|
|
|
|
...
|
...
|
@@ -744,7 +742,7 @@ function loadSeckillList() { |
|
|
|
|
|
$.ajax({
|
|
|
url: '/product/seckill/list'
|
|
|
}).done(function(result) {
|
|
|
}).then(function(result) {
|
|
|
let dateList = [];
|
|
|
|
|
|
if (result && result.activitys) {
|
...
|
...
|
@@ -765,11 +763,9 @@ function loadSeckillList() { |
|
|
|
|
|
if (result && result.products) {
|
|
|
viewSeckillProduct(result.products || []);
|
|
|
} else {
|
|
|
$('.seckill').addClass('hide');
|
|
|
}
|
|
|
}).error(function() {
|
|
|
|
|
|
}).always(function() {
|
|
|
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -777,20 +773,15 @@ function refreshProductList(activityId, time) { |
|
|
$.ajax({
|
|
|
url: '/product/seckill/get-product-list',
|
|
|
data: {
|
|
|
uid: yoho.isLogin(), // only app use;
|
|
|
activityId: activityId,
|
|
|
startTime: time
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data && data.products) {
|
|
|
viewSeckillProduct(data.products || []);
|
|
|
}
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络断开连接了~');
|
|
|
}
|
|
|
}).always(function() {
|
|
|
loading.hideLoading();
|
|
|
}).then(function(data) {
|
|
|
if (data && data.products) {
|
|
|
viewSeckillProduct(data.products || []);
|
|
|
} else {
|
|
|
$('.seckill').addClass('hide');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|