Browse Source

【修改】修改弹窗报错

DESKTOP-VHLO35R\Administrator 1 year ago
parent
commit
8714ec302f
1 changed files with 1 additions and 15 deletions
  1. 1 15
      assets/script/core/view/JMAlertBase.js

+ 1 - 15
assets/script/core/view/JMAlertBase.js

@@ -58,8 +58,6 @@ cc.Class({
58 58
      * @date 2019-03-25
59 59
      */
60 60
     onLoad () {
61
-        this._alertStartTime = G.STMgr.getCurrentTime();
62
-
63 61
         // 穿透的特殊处理
64 62
         if (!this.isBlockOutside) {
65 63
             // 注意:_hitTest方法,需要调用this.node.on才会执行到
@@ -106,18 +104,6 @@ cc.Class({
106 104
      * @date 2019-07-22
107 105
      */
108 106
     onDestroy () {
109
-        let duration = G.STMgr.getCurrentTime() - this._alertStartTime;
110
-        this.stAlertTime(duration);
111
-    },
112
-
113
-    /**
114
-     * 统计弹框时长。需要统计时长子类重写该方法
115
-     *
116
-     * @author Pyden
117
-     * @date 2019-07-22
118
-     * @param {Integer} duration
119
-     */
120
-    stAlertTime (duration) {
121 107
     },
122 108
 
123 109
 
@@ -225,7 +211,7 @@ cc.Class({
225 211
             return;
226 212
         }
227 213
 
228
-        G.AudioMgr.playEffect('res_audio/mp3/sound/click', false);
214
+        // G.AudioMgr.playEffect('res_audio/mp3/sound/click', false);
229 215
 
230 216
         this.alertCallback('clickedClose');
231 217
     },