薛鸿潇 5 лет назад
Родитель
Сommit
82b472ae22

+ 9 - 5
assets/resources/module/agreementTip/agreementTip.prefab

@@ -756,10 +756,12 @@
   },
   {
     "__type__": "cc.ClickEvent",
-    "target": null,
+    "target": {
+      "__id__": 1
+    },
     "component": "",
-    "_componentId": "",
-    "handler": "",
+    "_componentId": "27e8eZbIM9ApIU8LRLiALwU",
+    "handler": "clickRule",
     "customEventData": "0"
   },
   {
@@ -1001,9 +1003,11 @@
   },
   {
     "__type__": "cc.ClickEvent",
-    "target": null,
+    "target": {
+      "__id__": 1
+    },
     "component": "",
-    "_componentId": "6cec48K3X9GK6QSjqp7IWnc",
+    "_componentId": "27e8eZbIM9ApIU8LRLiALwU",
     "handler": "clickRule",
     "customEventData": "1"
   },

+ 8 - 0
assets/script/game/module/agreementTip/agreementTip.ts

@@ -21,5 +21,13 @@ export default class agreementTip extends cc.Component {
     private clickAgreeCall() {
         mk.storage.setStorage('notShowAgreementTip', true)
     }
+
+    /**
+     * 点击协议按钮
+     * @param data 协议类型
+     */
+    async clickRule(data) {
+        gData.setting.rule_type = parseInt(data);
+    }
     // update (dt) {}
 }

+ 1 - 1
assets/script/game/module/login/Login.ts

@@ -41,7 +41,7 @@ export default class Login extends cc.Component {
                 gData.appData.getDeviceInfoCompelete = false;
             }
             else if (gData.gameData.dataFinish) {//登录流程完毕
-                if (!mk.storage.getStorage('notShowAgreementTip')) {
+                if (true) {//!mk.storage.getStorage('notShowAgreementTip')
                     mk.ui.openPanel("module/agreementTip/agreementTip");
                 } else {
                     mk.ui.openPanel("game/prefab/game");