|
@@ -29,9 +29,11 @@ class IndexScene extends scene {
|
|
|
if (res.success) {
|
|
|
userDataStorage.setData(res.data);
|
|
|
|
|
|
- //必须获取Token后才可以正常调用以下接口
|
|
|
- this.loadHistoryList();
|
|
|
- this.loadTerminal();
|
|
|
+ //必须获取Token后才可以正常调用以下接口
|
|
|
+ this.loadHistoryList();
|
|
|
+ this.loadTerminal();
|
|
|
+ this.loadDownloadList();
|
|
|
+
|
|
|
ShopCartState.updateCount();
|
|
|
|
|
|
//记录用户登录行为
|
|
@@ -101,6 +103,12 @@ class IndexScene extends scene {
|
|
|
terminal_id.innerHTML = 'ID:' + userData.eid.replace(/(\d{4})/g, '$1 ');
|
|
|
}
|
|
|
|
|
|
+ loadDownloadList() {
|
|
|
+ APIClient.getDownloadList( ( isTrue,res) => {
|
|
|
+ console.log('fail result',res)
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
onCreate() {
|
|
|
this.setContentView(require('../../../res/tpl/IndexScene.tpl'), {
|
|
|
'title': '2B双师教学标准平台'
|