Showing
1 changed file
with
1 additions
and
12 deletions
@@ -782,9 +782,6 @@ function fetchComment() { | @@ -782,9 +782,6 @@ function fetchComment() { | ||
782 | return; | 782 | return; |
783 | } | 783 | } |
784 | 784 | ||
785 | - // 更新总数显示 | ||
786 | - // $commentNum.text(res[0].total); | ||
787 | - | ||
788 | if (filter && filter.length && !cNumReady) { | 785 | if (filter && filter.length && !cNumReady) { |
789 | cNumReady = true; | 786 | cNumReady = true; |
790 | $(filter).each(function(idx, fit) { | 787 | $(filter).each(function(idx, fit) { |
@@ -808,13 +805,6 @@ function fetchComment() { | @@ -808,13 +805,6 @@ function fetchComment() { | ||
808 | }); | 805 | }); |
809 | } | 806 | } |
810 | 807 | ||
811 | - // 购买有图评价 | ||
812 | - /* function loadPicComments() { | ||
813 | - loadComments(commentType.PIC).then(function(data){ | ||
814 | - | ||
815 | - }); | ||
816 | - }*/ | ||
817 | - | ||
818 | // 顾客咨询 | 808 | // 顾客咨询 |
819 | function loadConsults() { | 809 | function loadConsults() { |
820 | if (loadingConsults) { | 810 | if (loadingConsults) { |
@@ -1012,8 +1002,6 @@ $('.comments').on('click', '.img-preview [data-role="preview-right"]', function( | @@ -1012,8 +1002,6 @@ $('.comments').on('click', '.img-preview [data-role="preview-right"]', function( | ||
1012 | $img.css('transform', 'rotate(' + rotate + 'deg)'); | 1002 | $img.css('transform', 'rotate(' + rotate + 'deg)'); |
1013 | }); | 1003 | }); |
1014 | 1004 | ||
1015 | -var recommendTpl = require('hbs/product/recommend.hbs'); | ||
1016 | - | ||
1017 | // 店铺推荐 | 1005 | // 店铺推荐 |
1018 | function loadRecommend() { | 1006 | function loadRecommend() { |
1019 | $.ajax({ | 1007 | $.ajax({ |
@@ -1026,6 +1014,7 @@ function loadRecommend() { | @@ -1026,6 +1014,7 @@ function loadRecommend() { | ||
1026 | } | 1014 | } |
1027 | }).then(function(data) { | 1015 | }).then(function(data) { |
1028 | var pro = data.data.products; | 1016 | var pro = data.data.products; |
1017 | + var recommendTpl = require('hbs/product/recommend.hbs'); | ||
1029 | var html = recommendTpl(data.data); | 1018 | var html = recommendTpl(data.data); |
1030 | 1019 | ||
1031 | if (data.code === 200) { | 1020 | if (data.code === 200) { |
-
Please register or login to post a comment