Authored by lore-w

点赞参数、刷新页面错乱

... ... @@ -15,6 +15,7 @@ fonts_dir = "public/fonts"
# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
sourcemap = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
... ...
... ... @@ -40,7 +40,10 @@ $('.saunter-nav li').each(function() {
});
swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination'
pagination: '.swiper-pagination',
lazyLoading: true,
lazyLoadingInPrevNext: true,
autoplayDisableOnInteraction: false
});
lazyLoad();
... ... @@ -202,7 +205,8 @@ $('.msg-list').delegate('.like-btn', 'touchstart', function(e) {
var $cur = $(e.currentTarget),
$info = $cur.closest('.tag-content'),
id = $info.data('id'),
url;
url,
udid = $('.client-ip').val();
$cur.toggleClass('like');
... ... @@ -215,7 +219,8 @@ $('.msg-list').delegate('.like-btn', 'touchstart', function(e) {
type: 'GET',
url: url,
data: {
id: id
id: id,
udid: udid
}
}).then(function(data) {
if (data.code === 200) {
... ...
... ... @@ -5,8 +5,9 @@
{{# swiper}}
<div class="swiper-slide">
<a href="{{url}}">
<img src="{{img}}">
<img class="swiper-lazy" data-src="{{img}}">
</a>
<div class="swiper-lazy-preloader"></div>
</div>
{{/ swiper}}
</div>
... ... @@ -27,4 +28,5 @@
<input id="query" type="hidden" value="{{query}}">
<input id="gender" type="hidden" value="{{gender}}">
<input id="client-type" type="hidden" value="{{client_type}}">
<input id="client-ip" type="hidden" value="{{udid}}">
{{/ data}}
\ No newline at end of file
... ...