fix:更新已知bug,优化代码

This commit is contained in:
Ying
2022-11-28 19:11:12 +08:00
parent f6aee95cfc
commit 9445b206a2
1378 changed files with 53759 additions and 20789 deletions

View File

@@ -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);
}
}
}
});