Browse Source

首页添加请求下载接口

sophieChenyx 6 years ago
parent
commit
0f32b5572f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/stage/index/scene/WaterFallIndexScene.js

+ 6 - 0
src/stage/index/scene/WaterFallIndexScene.js

@@ -25,6 +25,10 @@ class WaterfallIndexScene extends scene {
     	});
     }
 
+    loadDownloadList() {
+    	APIClient.getDownloadList( ( isTrue,res) => {})
+    }
+    
     renderRecommendList(dataset) {
     	let list = document.getElementById('recommend');
     	list.innerHTML = '';
@@ -275,6 +279,8 @@ class WaterfallIndexScene extends scene {
                 if (res.success) {
                     // 保存终端信息
                     userDataStorage.setData(res.data);
+                    //获取下载失败列表
+                    this.loadDownloadList();
                     // 渲染数字时钟
                     this.renderDigitalClock();
                     // 请求推荐列表