Explorar el Código

首页添加请求下载接口

sophieChenyx hace 6 años
padre
commit
0f32b5572f
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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();
                     // 请求推荐列表