fix(withdraw): 修复提现台账导出PHP8兼容性与页面崩溃问题,统一大余额与导出体验

这个提交包含在:
chen
2026-09-21 15:11:58 +08:00
父节点 3bd0954df1
当前提交 dbd0ac5e02
共有 21 个文件被更改,包括 255 次插入 和 165 次删除

查看文件

@@ -147,8 +147,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
updatetime: 'range',
});
if (Config.save_type == 'download') {
window.location.href = `${Config.moduleurl}/shopro/withdraw/${type}?page=${pagination.page}&list_rows=${pagination.list_rows}&order=${state.order}&sort=${state.sort}&search=${search.search}`;
exportLoading.value = false;
const downloadUrl = `${Config.moduleurl}/shopro/withdraw/${type}?page=${pagination.page}&list_rows=${pagination.list_rows}&order=${state.order}&sort=${state.sort}&search=${encodeURIComponent(search.search || '')}`;
const iframe = document.createElement('iframe');
iframe.style.display = 'none';
iframe.src = downloadUrl;
document.body.appendChild(iframe);
setTimeout(() => {
if (iframe && iframe.parentNode) {
iframe.parentNode.removeChild(iframe);
}
exportLoading.value = false;
}, 3000);
} else {
Fast.api.ajax({
url: `shopro/withdraw/${type}`,