|
@@ -40,11 +40,9 @@ $receive.on('click', function() { |
|
@@ -40,11 +40,9 @@ $receive.on('click', function() { |
40
|
success: function(data) {
|
40
|
success: function(data) {
|
41
|
var msg = data.msg,
|
41
|
var msg = data.msg,
|
42
|
status = data.status,
|
42
|
status = data.status,
|
43
|
- newUrl;
|
|
|
44
|
-
|
|
|
45
|
- if (data.noLogin === true) {
|
|
|
46
|
newUrl = data.url + '?code=' + getUrlParam('code');
|
43
|
newUrl = data.url + '?code=' + getUrlParam('code');
|
47
|
|
44
|
|
|
|
45
|
+ if (data.noLogin === true) {
|
48
|
if ($('#intimacy-link').length <= 0) {
|
46
|
if ($('#intimacy-link').length <= 0) {
|
49
|
$('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' +
|
47
|
$('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' +
|
50
|
'<span class="intimacy-link"></span></a>');
|
48
|
'<span class="intimacy-link"></span></a>');
|
|
@@ -79,7 +77,7 @@ $('.coupon-floor a, .banner-top a').on('click', function() { |
|
@@ -79,7 +77,7 @@ $('.coupon-floor a, .banner-top a').on('click', function() { |
79
|
}
|
77
|
}
|
80
|
});
|
78
|
});
|
81
|
|
79
|
|
82
|
-if ($('.banner-swiper').find('li').size() > 1) {
|
80
|
+if ($('.banner-swiper').find('li').length > 1) {
|
83
|
bannerSwiper = new Swiper('.banner-swiper', {
|
81
|
bannerSwiper = new Swiper('.banner-swiper', {
|
84
|
lazyLoading: true,
|
82
|
lazyLoading: true,
|
85
|
lazyLoadingInPrevNext: true,
|
83
|
lazyLoadingInPrevNext: true,
|
|
@@ -95,3 +93,17 @@ if ($('.banner-swiper').find('li').size() > 1) { |
|
@@ -95,3 +93,17 @@ if ($('.banner-swiper').find('li').size() > 1) { |
95
|
$('.coupon-message-op-rel').on('click', function() {
|
93
|
$('.coupon-message-op-rel').on('click', function() {
|
96
|
location.reload();
|
94
|
location.reload();
|
97
|
});
|
95
|
});
|
|
|
96
|
+
|
|
|
97
|
+if ($('#noData').length > 0) {
|
|
|
98
|
+ if (location.href.indexOf('?openby:yohobuy=') <= 0){
|
|
|
99
|
+ tip.show('网络异常!');
|
|
|
100
|
+ }else{
|
|
|
101
|
+ console.log(location.href.indexOf('?openby:yohobuy='))
|
|
|
102
|
+ }
|
|
|
103
|
+}
|
|
|
104
|
+
|
|
|
105
|
+$mask.on('click',function () {s
|
|
|
106
|
+ $mask.hide();
|
|
|
107
|
+ $message.hide();
|
|
|
108
|
+});
|
|
|
109
|
+ |