Authored by Lynnic

update

... ... @@ -1243,6 +1243,6 @@
'cartInfo' : {
'numInCart' : 3,
'goodsInstore' : 0,
''
'isCollect':true
}
}
... ...
... ... @@ -11,7 +11,7 @@ var goodsSwiper;
require('./desc');
require('./comments-consults');
require('./like.js');
require('./like');
require('../recommend-for-you.js');
lazyLoad($('img.lazy'));
... ... @@ -50,6 +50,4 @@ $('.goodsDiscount .dropdown').on('click', function() {
$('.goodsDiscount .first-item span').html('');
$('.goodsDiscount .discount-folder').slideUp();
}
});
});
\ No newline at end of file
... ...
... ... @@ -7,7 +7,7 @@ var $ = require('jquery'),
Hammer = require('yoho.hammer'),
tip = require('../../plugin/tip');
var likeHammer = new Hammer('#likeBtn');
var likeHammer = new Hammer(document.getElementById('likeBtn'));
likeHammer.on('tap', function(e) {
var productId = $('#productId').val(),
... ...
... ... @@ -2,7 +2,7 @@
<div class="good-detail-page yoho-page">
<div class="banner-container">
<div class="tag-container">
<p class="good-tag soonSoldOut-tag">即将售罄</p>
<!-- <p class="good-tag soonSoldOut-tag">即将售罄</p> -->
{{# tags}}
{{# is_new}}
<p class="good-tag new-tag">NEW</p>
... ... @@ -118,10 +118,10 @@
{{else}}
<a href="" class="sold-out">已售罄</a>
{{/if}}
{{#if favorite}}
{{#if isCollect}}
<a href="" id="likeBtn" class="favorite iconfont liked">&#xe605;</a>
{{else}}
<a href="" class="favorite iconfont">&#xe605;</a>
<a href="" id="likeBtn" class="favorite iconfont">&#xe605;</a>
{{/if}}
</div>
{{/cartInfo}}
... ...