|
@@ -69,7 +69,6 @@ var cate_id = '';
|
69
|
69
|
}
|
70
|
70
|
var loading = true, page = 1;
|
71
|
71
|
var cate_id = '推荐',timer, index = 1;
|
72
|
|
-getCategory('package_9');
|
73
|
72
|
timer = setInterval( function(){
|
74
|
73
|
// cate_id = $$('#nav li a.active').attr('data-label');
|
75
|
74
|
if (cate_id != '' && cate_id != null ) {clearInterval(timer); getList('package_9',cate_id, '#nav1'); }
|
|
@@ -82,7 +81,7 @@ timer = setInterval( function(){
|
82
|
81
|
var nav = '';
|
83
|
82
|
getList('package_9',cate_id, '#nav'+index, ++page);
|
84
|
83
|
console.log(index);
|
85
|
|
- }, 1000);
|
|
84
|
+ }, 500);
|
86
|
85
|
});
|
87
|
86
|
|
88
|
87
|
// 点击tab请求list接口
|
|
@@ -94,14 +93,6 @@ timer = setInterval( function(){
|
94
|
93
|
});
|
95
|
94
|
},100);
|
96
|
95
|
|
97
|
|
-/* 判断登录状态 */
|
98
|
|
-$$.post('/user/user/personalCenter', function (res) {
|
99
|
|
- res = JSON.parse(res);
|
100
|
|
- if (res.errno == '0' ) {
|
101
|
|
- $$('.toolbar .JS_login').attr('href', '/mine.html');
|
102
|
|
- }
|
103
|
|
-});
|
104
|
|
-
|
105
|
96
|
$$('.external img').click(function () {
|
106
|
97
|
if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
|
107
|
98
|
window.location.href='https://itunes.apple.com/cn/app/%E9%87%91%E7%89%9B%E8%AE%B0%E8%B4%A6/id1398141686?mt=8';
|