...
|
...
|
@@ -40,11 +40,9 @@ $receive.on('click', function() { |
|
|
success: function(data) {
|
|
|
var msg = data.msg,
|
|
|
status = data.status,
|
|
|
newUrl;
|
|
|
|
|
|
if (data.noLogin === true) {
|
|
|
newUrl = data.url + '?code=' + getUrlParam('code');
|
|
|
|
|
|
if (data.noLogin === true) {
|
|
|
if ($('#intimacy-link').length <= 0) {
|
|
|
$('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' +
|
|
|
'<span class="intimacy-link"></span></a>');
|
...
|
...
|
@@ -79,7 +77,7 @@ $('.coupon-floor a, .banner-top a').on('click', function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
if ($('.banner-swiper').find('li').size() > 1) {
|
|
|
if ($('.banner-swiper').find('li').length > 1) {
|
|
|
bannerSwiper = new Swiper('.banner-swiper', {
|
|
|
lazyLoading: true,
|
|
|
lazyLoadingInPrevNext: true,
|
...
|
...
|
@@ -95,3 +93,17 @@ if ($('.banner-swiper').find('li').size() > 1) { |
|
|
$('.coupon-message-op-rel').on('click', function() {
|
|
|
location.reload();
|
|
|
});
|
|
|
|
|
|
if ($('#noData').length > 0) {
|
|
|
if (location.href.indexOf('?openby:yohobuy=') <= 0){
|
|
|
tip.show('网络异常!');
|
|
|
}else{
|
|
|
console.log(location.href.indexOf('?openby:yohobuy='))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$mask.on('click',function () {s
|
|
|
$mask.hide();
|
|
|
$message.hide();
|
|
|
});
|
|
|
|
...
|
...
|
|