fix:更新已知bug,优化代码
This commit is contained in:
@@ -405,7 +405,7 @@ layui.define(['jquery', 'i18n', 'element', 'layer', 'form', 'rate', 'table', 'sl
|
||||
content: n
|
||||
})
|
||||
},
|
||||
message: function () {
|
||||
bells: function () {
|
||||
var that = $(this),
|
||||
n = that.data("url");
|
||||
admin.event.flowOpen({
|
||||
@@ -445,7 +445,7 @@ layui.define(['jquery', 'i18n', 'element', 'layer', 'form', 'rate', 'table', 'sl
|
||||
|
||||
var elemWidth = 0, client = that[0].getBoundingClientRect();
|
||||
|
||||
if (n.title == undefined) {
|
||||
if (n.title === undefined) {
|
||||
n.title = false;
|
||||
n.closeBtn = false
|
||||
}
|
||||
@@ -460,8 +460,8 @@ layui.define(['jquery', 'i18n', 'element', 'layer', 'form', 'rate', 'table', 'sl
|
||||
}
|
||||
elemWidth = parseInt(elemWidth);
|
||||
n.anim || (n.anim = 5);
|
||||
n.resize = n.resize != undefined ? n.resize : false;
|
||||
n.shade = n.shade != undefined ? n.shade : 0.1;
|
||||
n.resize = n.resize !== undefined ? n.resize : false;
|
||||
n.shade = n.shade !== undefined ? n.shade : 0.1;
|
||||
var top = client.height,
|
||||
padding = (that.innerWidth() - that.width()) / 2, // 不用计算 padding
|
||||
left = client.left + (client.width / 2) - (elemWidth / 2);
|
||||
@@ -473,7 +473,7 @@ layui.define(['jquery', 'i18n', 'element', 'layer', 'form', 'rate', 'table', 'sl
|
||||
}
|
||||
, pupupOpen: function (n) {
|
||||
|
||||
if (n.title == undefined) {
|
||||
if (n.title === undefined) {
|
||||
n.title = false;
|
||||
n.closeBtn = false
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ layui.define(['i18n'], function (exports) {
|
||||
let data;
|
||||
layer.closeAll();
|
||||
if (res.code === 200) {
|
||||
layer.msg(res.msg);
|
||||
|
||||
layer.msg(res.msg);
|
||||
let index = layui.sessionData('api_install_index').index,
|
||||
elems = $('tr[data-index="' + index + '"]');
|
||||
if (url.indexOf('install') !== -1) {
|
||||
@@ -128,23 +128,20 @@ layui.define(['i18n'], function (exports) {
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: i18n.prop('立即支付'),
|
||||
area: ['500px','685px'],
|
||||
area: ['500px','550px'],
|
||||
offset: "30px",
|
||||
resize: false,
|
||||
shade: 0.8,
|
||||
shadeClose: true,
|
||||
content: data.payUrl,
|
||||
content: data.pay_url,
|
||||
success: function (index, layero) {
|
||||
// 父类消息监听
|
||||
window.onmessage = function (res) {
|
||||
let data = res.data;
|
||||
if (res.data !== null && data.code === 200) {
|
||||
layer.close(layero);
|
||||
plugin.againClick();
|
||||
}
|
||||
|
||||
if (res.data !== null && data.code === -133) {
|
||||
layer.close(layero);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user