Browse Source

删除测试代码

zhaoyu_ma 4 months ago
parent
commit
8a42a0ad85
1 changed files with 8 additions and 8 deletions
  1. 8 8
      luckypot_sp/assets/Lobby/scripts/homesence/homeStartDev.js

+ 8 - 8
luckypot_sp/assets/Lobby/scripts/homesence/homeStartDev.js

@@ -156,7 +156,7 @@ cc.Class({
 
         //设置初始预加载的子游戏
     initPreSubGame(){
-        // /*
+        /*
         //临时生成节点
         let tnode = new cc.Node('lab');
         tnode.setPosition(-521, 272);
@@ -170,7 +170,7 @@ cc.Class({
         tnode2.addComponent(cc.Label);
         tnode2.getComponent(cc.Label).fontSize = 30;
         tnode2.parent = this.node;
-        // */
+        */
 
         let preLoadSubGameNums = 3; //预加载的子游戏个数
         if(BaseDefine.GAME_PLATFORM === BaseDefine.WEB_H5_PLATFORM){
@@ -691,7 +691,7 @@ cc.Class({
         if(!bContain){ //当前进入的子游戏不在预加载子游戏列表中
             //移除权重最低的子游戏
             let tempName = config[preArr[0].kindID].bundle;
-            this.node.getChildByName('lab2').getComponent(cc.Label).string ='移除bundle: ' + tempName;
+            // this.node.getChildByName('lab2').getComponent(cc.Label).string ='移除bundle: ' + tempName;
             let bundle = cc.assetManager.getBundle(tempName);
             if(bundle){
                 // window.nowBundle = null;
@@ -703,11 +703,11 @@ cc.Class({
             preArr[0].kindID = optdata.KindID; //给移除的bundle重新赋值
             preArr[0].weight = 30;
         }
-        let des = '';
-        for(let i=0; i < preArr.length; i++){
-            des += config[preArr[i].kindID].bundle + ':' + preArr[i].weight + '  ';
-        }
-        this.node.getChildByName('lab').getComponent(cc.Label).string = '当前bundle: ' + des;
+        // let des = '';
+        // for(let i=0; i < preArr.length; i++){
+        //     des += config[preArr[i].kindID].bundle + ':' + preArr[i].weight + '  ';
+        // }
+        // this.node.getChildByName('lab').getComponent(cc.Label).string = '当前bundle: ' + des;
         //修改本地缓存
         let str = JSON.stringify(preArr);
         Global.setLocalStorageVaule("preSubGames", str);