Your Name 6 years ago
parent
commit
7014475c21
1 changed files with 1 additions and 10 deletions
  1. 1 10
      js/app.js

+ 1 - 10
js/app.js

69
  }
69
  }
70
 var loading = true, page = 1;
70
 var loading = true, page = 1;
71
 var cate_id = '推荐',timer, index = 1;
71
 var cate_id = '推荐',timer, index = 1;
72
-getCategory('package_9');
73
 timer = setInterval( function(){
72
 timer = setInterval( function(){
74
 //  cate_id = $$('#nav li a.active').attr('data-label');
73
 //  cate_id = $$('#nav li a.active').attr('data-label');
75
     if (cate_id != '' && cate_id != null ) {clearInterval(timer); getList('package_9',cate_id, '#nav1'); }
74
     if (cate_id != '' && cate_id != null ) {clearInterval(timer); getList('package_9',cate_id, '#nav1'); }
82
         var nav = '';
81
         var nav = '';
83
         getList('package_9',cate_id, '#nav'+index, ++page);
82
         getList('package_9',cate_id, '#nav'+index, ++page);
84
         console.log(index);
83
         console.log(index);
85
-      }, 1000);
84
+      }, 500);
86
     });
85
     });
87
 
86
 
88
     // 点击tab请求list接口
87
     // 点击tab请求list接口
94
     });
93
     });
95
 },100);
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
 $$('.external img').click(function () {
96
 $$('.external img').click(function () {
106
 	if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
97
 	if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
107
 		window.location.href='https://itunes.apple.com/cn/app/%E9%87%91%E7%89%9B%E8%AE%B0%E8%B4%A6/id1398141686?mt=8';
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';