Authored by 陈轩

fix 秒杀 ajax cache

... ... @@ -230,6 +230,7 @@ seckillObj = {
'/product/seckill/get-product-list';
loading.show();
self.el.$navList.toggleClass('fix-top', false);
$.ajax({
url: url,
data: {
... ... @@ -299,7 +300,10 @@ seckillObj = {
bindEvents: function() {
var self = this;
var $nav = self.el.$navList;
var top = $nav.position().top + $nav.height();
var h = $nav.height();
var top = $nav.position().top + h;
$nav.wrap('<div style="height:' + h + 'px;"></div>');
if (yoho.isApp) {
this.$productList.on('click', '[data-remind]', $.proxy(this.toggleRemind, this));
... ... @@ -392,7 +396,10 @@ seckillObj = {
var $xhr;
loading.show();
$xhr = $.get(location.href)
$xhr = $.ajax({
url: location.href,
cache: false
})
.done(function(result) {
self.$container.replaceWith(
self.pageTemplate($.extend(result, {
... ...