浏览代码

登录失效调试3

zhouna 3 年之前
父节点
当前提交
fe015f0015
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/js/modal.js
  2. 2 0
      src/js/utils.js

+ 2 - 0
src/js/modal.js

@@ -7,6 +7,7 @@ const jQuery = require('jquery');
     let warn = require("../images/warn.png")
     let loadingImg = require("../images/loading.gif")
     $.alerModal = function (options) {
+        console.log(223,options)
         var dft = {
             sureBtn: true,
             quiteBtn: false,
@@ -29,6 +30,7 @@ const jQuery = require('jquery');
 		  ops.fatherWrapper.find('.alertModal:visible');
 		}
 		if(popDom.length){  //如果该弹窗已存在,则不再显示多个
+
 		  return;
 		}
         var html = `

+ 2 - 0
src/js/utils.js

@@ -234,8 +234,10 @@ function unloginPop(msg){
 		iframemessage: 1,
 		data: msg
 	  }
+	  console.log('子窗口')
 	  window.parent.postMessage(JSON.stringify(dialogmessage), '*')
     }else{
+	  console.log('父窗口')
 	  $.alerModal({
 		gobackBtn: true,
 		title: "提示",