qiushiyong 1 سال پیش
والد
کامیت
f3e12823b2

+ 33 - 33
pingan_h5_qianduan/assets/src/Main.ts

@@ -91,8 +91,8 @@ export default class Main extends cc.Component {
 
             this.setupCustomImage()
             this.initUI()
-            // this.reset() //没有答题的情况下要注释掉
-            this.reset() //有答题的情况下开放出来
+            this.reset() //没有答题的情况下要注释掉
+            // this.reset() //有答题的情况下开放出来
 
             this.playBGM(true)
 
@@ -124,40 +124,12 @@ export default class Main extends cc.Component {
     }
 
     /* 没有答题的情况下抽奖start */
-    // initUI() {
-    //     this.questionPanel.active = false;
-    //     this.lotteryPanel.active = true;
-    //     this.labelTitle.string = NetManager.getInst().activityName
-    //
-    //     /*
-    //     const questionData = NetManager.getInst().questions
-    //     this.MAX_QUESTION_NUM = questionData.length
-    //     for (let i = 0; i < questionData.length; ++i) {
-    //         let itemData = questionData[i]
-    //
-    //         let itemNode = cc.instantiate((itemData.type == 3) ? this.inputQuestionItem : this.optQuestionItem)
-    //         this.questionNode.addChild(itemNode)
-    //
-    //         let comp = itemNode.getComponent((itemData.type == 3) ? 'InputQuestionItem' : 'OptQuestionItem')
-    //         comp.loadData(i + 1, itemData)
-    //         this.questionCompArr.push(comp)
-    //     }
-    //     */
-    //
-    //     const rewardTypes = NetManager.getInst().lotteryItems;
-    //     let index = 0
-    //     for (let idx in rewardTypes) {
-    //         this.rewardType[index++].string = rewardTypes[idx]
-    //     }
-    // }
-    /* 没有答题的情况下抽奖end */
-
-    /* 有答题的情况下抽奖start */
     initUI() {
-        this.questionPanel.active = true;
-        this.lotteryPanel.active = false;
+        this.questionPanel.active = false;
+        this.lotteryPanel.active = true;
         this.labelTitle.string = NetManager.getInst().activityName
 
+        /*
         const questionData = NetManager.getInst().questions
         this.MAX_QUESTION_NUM = questionData.length
         for (let i = 0; i < questionData.length; ++i) {
@@ -170,6 +142,7 @@ export default class Main extends cc.Component {
             comp.loadData(i + 1, itemData)
             this.questionCompArr.push(comp)
         }
+        */
 
         const rewardTypes = NetManager.getInst().lotteryItems;
         let index = 0
@@ -177,6 +150,33 @@ export default class Main extends cc.Component {
             this.rewardType[index++].string = rewardTypes[idx]
         }
     }
+    /* 没有答题的情况下抽奖end */
+
+    /* 有答题的情况下抽奖start */
+    // initUI() {
+    //     this.questionPanel.active = true;
+    //     this.lotteryPanel.active = false;
+    //     this.labelTitle.string = NetManager.getInst().activityName
+    //
+    //     const questionData = NetManager.getInst().questions
+    //     this.MAX_QUESTION_NUM = questionData.length
+    //     for (let i = 0; i < questionData.length; ++i) {
+    //         let itemData = questionData[i]
+    //
+    //         let itemNode = cc.instantiate((itemData.type == 3) ? this.inputQuestionItem : this.optQuestionItem)
+    //         this.questionNode.addChild(itemNode)
+    //
+    //         let comp = itemNode.getComponent((itemData.type == 3) ? 'InputQuestionItem' : 'OptQuestionItem')
+    //         comp.loadData(i + 1, itemData)
+    //         this.questionCompArr.push(comp)
+    //     }
+    //
+    //     const rewardTypes = NetManager.getInst().lotteryItems;
+    //     let index = 0
+    //     for (let idx in rewardTypes) {
+    //         this.rewardType[index++].string = rewardTypes[idx]
+    //     }
+    // }
     /* 有答题的情况下抽奖end */
 
     reset() {

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
pingan_h5_qianduan/build/web-mobile/assets/main/config.6e8bb.json


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 1
pingan_h5_qianduan/build/web-mobile/assets/main/index.6e8bb.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
pingan_h5_qianduan/build/web-mobile/assets/main/index.ad42c.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
pingan_h5_qianduan/build/web-mobile/assets/resources/config.794ac.json


pingan_h5_qianduan/build/web-mobile/assets/resources/index.794ac.js → pingan_h5_qianduan/build/web-mobile/assets/resources/index.c7a96.js


+ 2 - 2
pingan_h5_qianduan/build/web-mobile/index.html

@@ -48,9 +48,9 @@
     </div>
   </div>
 
-<script src="src/settings.5e1a0.js" charset="utf-8"></script>
+<script src="src/settings.74003.js" charset="utf-8"></script>
 
-<script src="main.2a838.js" charset="utf-8"></script>
+<script src="main.4860b.js" charset="utf-8"></script>
 
 <script type="text/javascript">
 //自定义后端API地址

+ 2 - 2
pingan_h5_qianduan/build/web-mobile/main.2a838.js

@@ -125,7 +125,7 @@ window.boot = function () {
 if (window.jsb) {
     var isRuntime = (typeof loadRuntime === 'function');
     if (isRuntime) {
-        require('src/settings.5e1a0.js');
+        require('src/settings.74003.js');
         require('src/cocos2d-runtime.js');
         if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
             require('src/physics.js');
@@ -133,7 +133,7 @@ if (window.jsb) {
         require('jsb-adapter/engine/index.js');
     }
     else {
-        require('src/settings.5e1a0.js');
+        require('src/settings.74003.js');
         require('src/cocos2d-jsb.js');
         if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
             require('src/physics.js');

+ 1 - 1
pingan_h5_qianduan/build/web-mobile/src/settings.5e1a0.js

@@ -1 +1 @@
-window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Main.fire",orientation:"portrait",jsList:["assets/src/aladdin.d2841.js"],bundleVers:{internal:"468ae",resources:"794ac",main:"6e8bb"}};
+window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Main.fire",orientation:"portrait",jsList:["assets/src/aladdin.d2841.js"],bundleVers:{internal:"468ae",resources:"c7a96",main:"ad42c"}};

+ 1 - 1
pingan_h5_qianduan/settings/project.json

@@ -1,5 +1,5 @@
 {
-  "last-module-event-record-time": 1687744166629,
+  "last-module-event-record-time": 1688553073598,
   "group-list": [
     "default"
   ],