Authored by htoooth

refactor

... ... @@ -782,9 +782,6 @@ function fetchComment() {
return;
}
// 更新总数显示
// $commentNum.text(res[0].total);
if (filter && filter.length && !cNumReady) {
cNumReady = true;
$(filter).each(function(idx, fit) {
... ... @@ -808,13 +805,6 @@ function fetchComment() {
});
}
// 购买有图评价
/* function loadPicComments() {
loadComments(commentType.PIC).then(function(data){
});
}*/
// 顾客咨询
function loadConsults() {
if (loadingConsults) {
... ... @@ -1012,8 +1002,6 @@ $('.comments').on('click', '.img-preview [data-role="preview-right"]', function(
$img.css('transform', 'rotate(' + rotate + 'deg)');
});
var recommendTpl = require('hbs/product/recommend.hbs');
// 店铺推荐
function loadRecommend() {
$.ajax({
... ... @@ -1026,6 +1014,7 @@ function loadRecommend() {
}
}).then(function(data) {
var pro = data.data.products;
var recommendTpl = require('hbs/product/recommend.hbs');
var html = recommendTpl(data.data);
if (data.code === 200) {
... ...