From 71284af47ef9ab76315932147ae6d79cd3622a48 Mon Sep 17 00:00:00 2001
From: likky <664907696@qq.com>
Date: Thu, 4 May 2017 15:02:55 +0800
Subject: [PATCH] Update script.js
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
调整二维码位置,先关闭已打开弹窗再弹出新的弹窗。
---
templates/static/js/script.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/templates/static/js/script.js b/templates/static/js/script.js
index 86c0e12..a1c01ff 100644
--- a/templates/static/js/script.js
+++ b/templates/static/js/script.js
@@ -91,6 +91,7 @@ $(document).ready(function() {
str = base64encode($(this).attr('data-params'));
}
str = $(this).attr('data-type') + '://' + str;
+ layer.closeAll();
layer.open({
type: 1,
title: $(this).attr('data-title'),
@@ -100,7 +101,7 @@ $(document).ready(function() {
closeBtn: 1,
shift: 2,
shadeClose: true,
- content: '