diff --git a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js index 4212408..def6253 100644 --- a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js +++ b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js @@ -1,5 +1,5 @@ // 全局变量 -const API_BASE_URL = commonService+'/backstage/'; +const API_BASE_URL = commonService + '/backstage/'; const API_ENDPOINT = 'purchase/getProPurchaseList'; let token = localStorage.getItem("safetyToken"); console.log('safetyPlanShipment.js - 初始化,从localStorage获取safetyToken:', token); @@ -34,11 +34,11 @@ function loadProjectList(pageNum) { type: 'GET', url: url, dataType: 'json', - beforeSend: function(xhr) { + beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', token); console.log('📤 设置Authorization header:', token ? '已设置' : '未设置'); }, - success: function(response) { + success: function (response) { showLoading(false); console.log('✅ API响应成功'); console.log('完整响应:', JSON.stringify(response, null, 2)); @@ -64,7 +64,7 @@ function loadProjectList(pageNum) { showEmpty(true); } }, - error: function(xhr, errorStatus, error) { + error: function (xhr, errorStatus, error) { showLoading(false); console.error('❌ API请求失败'); console.error('状态码:', xhr.status); @@ -80,7 +80,7 @@ function loadProjectList(pageNum) { // 渲染工程列表 function renderProjectList(projects) { const projectList = document.getElementById('projectList'); - + if (!projects || projects.length === 0) { showEmpty(true); return; @@ -212,7 +212,8 @@ function showEmpty(show) { // 返回上一页 function goBack() { - window.location.href = 'safetyPlanIndex.html'; + // window.location.href = 'safetyPlanIndex.html'; + window.location.href = '../index.html'; } // 进入工程详情(第2层) diff --git a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html index 4663961..0815739 100644 --- a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html +++ b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html @@ -1,5 +1,6 @@ +
@@ -7,6 +8,7 @@ +