Commit 424b1745 authored by liujiangnan's avatar liujiangnan

feat: 爱学宝

parent f90ecae7
......@@ -383,11 +383,11 @@ export default class NewClass extends middleLayerBase {
this.callNetworkApiGet(`/api/syllabus/v1/allbundles`, { orgid: this.ORG_ID, platform }, (datastr) => {
const data = JSON.parse(datastr);
this.batchPreloadScene(data.rows, [], onProgress, onComplete);
this.callNetworkApiGet(`/api/syllabus/v1/allresources`, { orgid: this.ORG_ID }, (datastr1) => {
const data1 = JSON.parse(datastr1);
this.batchPreloadScene(data.rows);
this.preloadSource(data1.rows);
});
// this.callNetworkApiGet(`/api/syllabus/v1/allresources`, { orgid: this.ORG_ID }, (datastr1) => {
// const data1 = JSON.parse(datastr1);
// this.batchPreloadScene(data.rows);
// this.preloadSource(data1.rows);
// });
});
}
......@@ -727,7 +727,7 @@ export default class NewClass extends middleLayerBase {
cc.find('middleLayer/BtnRight').active = false;
cc.find('middleLayer/BtnLeft').active = false;
cc.find('middleLayer/ExitBtn').active = false;
cc.find('middleLayer/ram').active = (bundleName == 'NJ_YouLeChang');
cc.find('middleLayer/ram').active = (bundleName == 'NJ_YouLeChang' && this.type == 'aixuebao');
if (bundleName == 'NJ_login') {
// 如果跳到登录页,则清理一些缓存的使用数据
this.data = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment