|
|
@@ -40,10 +40,15 @@ Page({
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ onHide:function(){
|
|
|
+ clearInterval(this.data.timer);
|
|
|
+ },
|
|
|
onLoad: function (options) {
|
|
|
- this.getCartList();
|
|
|
+ clearInterval(this.data.timer);
|
|
|
+ // this.getCartList();
|
|
|
},
|
|
|
onShow: function () {
|
|
|
+ clearInterval(this.data.timer);
|
|
|
this.getCartList();
|
|
|
this.setData({submitlock: false});
|
|
|
this.setData({selectedall: false});
|
|
|
@@ -399,7 +404,7 @@ Page({
|
|
|
var runtime = setInterval(function () {
|
|
|
var _cartlist = that.data.cartList;
|
|
|
for(var index = 0;index<_cartlist.length;index++){
|
|
|
- if(_cartlist[index].seckill_end > 0){
|
|
|
+ if(_cartlist[index].seckill_show_price > 0){
|
|
|
if(Date.parse(new Date()) / 1000 < _cartlist[index].seckill_end && Date.parse(new Date()) / 1000 > _cartlist[index].seckill_start){
|
|
|
var __cartdata = that.data.cartList[index];
|
|
|
var __cartindex = index;
|
|
|
@@ -469,7 +474,7 @@ Page({
|
|
|
|
|
|
}else{
|
|
|
that.setData({
|
|
|
- ['seckillruntimearr['+index+']']:'秒杀已结束'
|
|
|
+ ['seckillruntimearr['+index+']']:'秒杀已结束,左滑商品从购物车删除'
|
|
|
})
|
|
|
}
|
|
|
}
|