Authored by ccbikai

商品详情页

... ... @@ -114,11 +114,14 @@ exports.consults = (req, res, next) => {
/**
* 咨询表单页
*/
exports.consultform = (req, res) => {
exports.consultform = (req, res, next) => {
let headerData = headerModel.setNav({
navTitle: '我要咨询'
});
if (!req.query.product_id) {
return next();
}
res.render('detail/consult-form', {
pageHeader: headerData,
productId: req.query.product_id,
... ...
... ... @@ -39,8 +39,6 @@ function showFooter() {
showFooter();
require('./detail/like');
lazyLoad($('img.lazy'));
if ($('#goodsDiscount h1').length < 1) {
... ... @@ -120,6 +118,7 @@ $('#limit-sale').on('touchend', function(e) {
}
});
require('./detail/like');
require('./detail/desc');
require('./detail/comments-consults');
require('./detail/consultform');
... ... @@ -148,5 +147,3 @@ $.ajax({
if ($('.good-detail-page').length > 0) {
$('#yoho-footer').css('border-top', '1px solid #e0e0e0');
}
... ...