Browse Source

开放答题

qiushiyong 7 months ago
parent
commit
907a03ac00

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

@@ -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() {

BIN
pingan_h5_qianduan/build-templates/web-mobile/splash.png


pingan_h5_qianduan/build/web-mobile/splash.9be84.png → pingan_h5_qianduan/build-templates/web-mobile/splash.png.2.20


File diff suppressed because it is too large
+ 1 - 1
pingan_h5_qianduan/build/web-mobile/assets/main/config.c6647.json


File diff suppressed because it is too large
+ 1 - 0
pingan_h5_qianduan/build/web-mobile/assets/main/index.6bf05.js


File diff suppressed because it is too large
+ 0 - 1
pingan_h5_qianduan/build/web-mobile/assets/main/index.c6647.js


File diff suppressed because it is too large
+ 1 - 0
pingan_h5_qianduan/build/web-mobile/assets/resources/config.1a78e.json


File diff suppressed because it is too large
+ 0 - 1
pingan_h5_qianduan/build/web-mobile/assets/resources/config.1c41e.json


pingan_h5_qianduan/build/web-mobile/assets/resources/index.1c41e.js → pingan_h5_qianduan/build/web-mobile/assets/resources/index.1a78e.js


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

@@ -37,7 +37,7 @@
   <!--<link rel="apple-touch-icon" href=".png" />-->
   <!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
 
-  <link rel="stylesheet" type="text/css" href="style-mobile.aa686.css"/>
+  <link rel="stylesheet" type="text/css" href="style-mobile.872b3.css"/>
   <link rel="icon" href="favicon.8de18.ico"/>
 </head>
 <body>
@@ -48,9 +48,9 @@
     </div>
   </div>
 
-<script src="src/settings.90808.js" charset="utf-8"></script>
+<script src="src/settings.fad4b.js" charset="utf-8"></script>
 
-<script src="main.bf11b.js" charset="utf-8"></script>
+<script src="main.80810.js" charset="utf-8"></script>
 
 <script type="text/javascript">
 //自定义后端API地址

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

@@ -125,7 +125,7 @@ window.boot = function () {
 if (window.jsb) {
     var isRuntime = (typeof loadRuntime === 'function');
     if (isRuntime) {
-        require('src/settings.90808.js');
+        require('src/settings.fad4b.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.90808.js');
+        require('src/settings.fad4b.js');
         require('src/cocos2d-jsb.js');
         if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
             require('src/physics.js');

BIN
pingan_h5_qianduan/build/web-mobile/splash.7e65b.png


BIN
pingan_h5_qianduan/build/web-mobile/splash.png.2.9be84.20


+ 1 - 1
pingan_h5_qianduan/build/web-mobile/src/settings.90808.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:"1c41e",main:"c6647"}};
+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:"1a78e",main:"6bf05"}};

+ 1 - 1
pingan_h5_qianduan/build/web-mobile/style-desktop.fac94.css

@@ -61,7 +61,7 @@ p.footer {
   width: 100%;
   height: 100%;
 
-  background: #171717 url(./splash.9be84.png) no-repeat center;
+  background: #171717 url(./splash.7e65b.png) no-repeat center;
   background-size: 350px;
 }
 

+ 1 - 1
pingan_h5_qianduan/build/web-mobile/style-mobile.aa686.css

@@ -87,7 +87,7 @@ p.footer {
   left: 0;
   width: 100%;
   height: 100%;
-  background: #171717 url(./splash.9be84.png) no-repeat center;
+  background: #171717 url(./splash.7e65b.png) no-repeat center;
   background-size: 100%;
 }
 

+ 1 - 1
pingan_h5_qianduan/settings/project.json

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