人生啊人生 преди 2 месеца
родител
ревизия
0589c66d5f
променени са 1 файла, в които са добавени 27 реда и са изтрити 1 реда
  1. 27 1
      src/components/WindowQingXiCheAndQv/js/WindowEvent.js

+ 27 - 1
src/components/WindowQingXiCheAndQv/js/WindowEvent.js

@@ -27,7 +27,14 @@ export class WindowEvent {
      * 关闭弹出提示
      */
     WindowTxtViewOpenExit = function() {
+
         let thisClass = this;
+
+        if (typeof thisClass.ComStore["WindowTxtStore"] == "undefined" ) {
+            return this;
+        }
+
+        
         thisClass.ComStore["WindowTxtStore"]().obj.WindowTxtViewOpen = false;
     }
 
@@ -55,8 +62,15 @@ export class WindowEvent {
      * 关闭弹出视频
      */
     WindowVideoViewOpenExit = function() {
+
         let thisClass = this;
 
+        if (typeof thisClass.ComStore["WindowVideoStore"] == "undefined" ) {
+            return this;
+        }
+
+        
+
         if (typeof thisClass.ComStore["WindowVideoStore"]().obj.callbackEvent == 'function') {
             thisClass.ComStore["WindowVideoStore"]().obj.callbackEvent(
                 thisClass.ComStore["WindowVideoStore"]().obj.myJson
@@ -73,7 +87,7 @@ export class WindowEvent {
      * callbackEvent    自定义回调事件
      */
     WindowVideoViewOpenEvent = function(url, myJson, callbackEvent) {
-
+        
         let thisClass = this;
         thisClass.WindowVideoViewOpenExit();
 
@@ -104,6 +118,12 @@ export class WindowEvent {
     WindowCountdownExit = function() {
 
         let thisClass = this;
+        
+        if (typeof thisClass.ComStore["WindowCountdownStore"] == "undefined" ) {
+            return this;
+        }
+
+        
         thisClass.ComStore["WindowCountdownStore"]().obj.viewOpen = false;
 
         if (typeof thisClass.ComStore["WindowCountdownStore"]().obj.callbackEvent == "function") {
@@ -149,6 +169,12 @@ export class WindowEvent {
     WindowVideoRemoveColorExit = function() {
 
         let thisClass = this;
+
+        if (typeof thisClass.ComStore["WindowVideoRemoveColorStore"] == "undefined" ) {
+            return this;
+        }
+
+        
         thisClass.ComStore["WindowVideoRemoveColorStore"]().obj.viewOpen = false;
 
         thisClass.WindowVideoRemoveColorStop();