|
@@ -81,25 +81,25 @@ function shopListData(tabName, stoping) { |
|
@@ -81,25 +81,25 @@ function shopListData(tabName, stoping) { |
81
|
success: function(list) {
|
81
|
success: function(list) {
|
82
|
var url;
|
82
|
var url;
|
83
|
|
83
|
|
84
|
- if (list.code === 200) {
|
|
|
85
|
- if ($this.hasClass('already-collect')) {
|
|
|
86
|
- $this.removeClass('already-collect');
|
|
|
87
|
- tip.show('店铺取消收藏成功');
|
|
|
88
|
- } else {
|
|
|
89
|
- $this.addClass('already-collect');
|
|
|
90
|
- tip.show('店铺收藏成功');
|
84
|
+ if (list.code === 200) {
|
|
|
85
|
+ if ($this.hasClass('already-collect')) {
|
|
|
86
|
+ $this.removeClass('already-collect');
|
|
|
87
|
+ tip.show('店铺取消收藏成功');
|
|
|
88
|
+ } else {
|
|
|
89
|
+ $this.addClass('already-collect');
|
|
|
90
|
+ tip.show('店铺收藏成功');
|
|
|
91
|
+ }
|
91
|
}
|
92
|
}
|
92
|
- }
|
|
|
93
|
|
93
|
|
94
|
- if (list.code === 400) {
|
94
|
+ if (list.code === 400) {
|
95
|
|
95
|
|
96
|
- url = list.data;
|
|
|
97
|
- if ($('#jump-login').length <= 0) {
|
|
|
98
|
- $('body').append('<a href=\'' + url + '\'><span id="jump-login"><span></a>');
|
96
|
+ url = list.data;
|
|
|
97
|
+ if ($('#jump-login').length <= 0) {
|
|
|
98
|
+ $('body').append('<a href=\'' + url + '\'><span id="jump-login"><span></a>');
|
|
|
99
|
+ }
|
|
|
100
|
+ $('#jump-login').click();
|
99
|
}
|
101
|
}
|
100
|
- $('#jump-login').click();
|
|
|
101
|
- }
|
|
|
102
|
- searching = false;
|
102
|
+ searching = false;
|
103
|
},
|
103
|
},
|
104
|
error: function() {
|
104
|
error: function() {
|
105
|
tip.show('网络断开连接了~');
|
105
|
tip.show('网络断开连接了~');
|