Authored by zhangxiaoru

guangCache改type

... ... @@ -5,6 +5,7 @@
*/
'use strict';
const logger = global.yoho.logger;
const moment = require('moment');
const mRoot = '../models';
const headerModel = require('../../../doraemon/models/header');
... ... @@ -151,6 +152,8 @@ const getProductList = (req, res, next) => {
res.render('seckill/product-list', Object.assign(result, {
layout: false
}, {helpers: _helpers}));
}).catch(error => {
logger.error(error);
});
};
... ...
<div class="seckill-list">
<div class="seckill-list yoho-page">
{{> seckill/nav}}
<div class="product-list">
{{# products}}
... ...
... ... @@ -58,8 +58,6 @@ var limitProductCode,
// 限购商品的skn。只有限购商品时才会设置。
skn;
var isSecKills = $('.isSecKill').length;// 秒杀标记
// 禁用数字编辑
function disableNumEdit() {
var $numBtn = $('.chose-panel').find('.num .btn>.iconfont');
... ... @@ -207,6 +205,7 @@ function hide() {
// 修改加入购物车的文字和背景
var isSeckill = $('.limit-num-text').length;
var isSecKills = 0;
function updateConformButtonClassAndText() {
if (isSeckill > 0) {
... ... @@ -558,6 +557,8 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
$chosed = $('.block-list>ul>li.chosed');
if ($chosed.length === 2 && $chosed.closest('.zero-stock').length === 0) {
isSecKills = $('.seckill-time').length;// 秒杀标记
productSku = $curSizeBlock.data('skuid');
promotionId = $('#promotionId').val();
if (confirming) {
... ... @@ -589,7 +590,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
url = '/cart/index/modify';
} else if (limitProductCode) {
isSecKills = $('.seckill-time').length;// 秒杀标记
$(this).css('background-color', '#ccc').removeAttr('id');
// 当前面板选择的是限购商品
... ...