diff --git a/basic-info.css b/basic-info.css
index 57143ec..a1747be 100644
--- a/basic-info.css
+++ b/basic-info.css
@@ -15,7 +15,7 @@ body {
.basic-info-container {
min-height: 100vh;
padding: 16px;
- padding-bottom: 100px;
+ padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
}
/* 顶部卡片 */
@@ -547,14 +547,13 @@ body {
transform: scale(0.98);
}
-/* 底部按钮 */
+/* 底部按钮:贴底并预留安全区,避免被系统栏/手势区遮挡 */
.button-section {
position: fixed;
- bottom: 20px;
+ bottom: 0;
left: 0;
width: 100%;
- padding: 16px;
- padding-bottom: calc(8px + env(safe-area-inset-bottom));
+ padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
background-color: #fff;
box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.08);
z-index: 100;
diff --git a/index.html b/index.html
index 70bd568..3f73703 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@
- 薇钱包
+ 百雅融
diff --git a/src/js/config/api.config.js b/src/js/config/api.config.js
index ba4b765..4e6acbf 100644
--- a/src/js/config/api.config.js
+++ b/src/js/config/api.config.js
@@ -8,7 +8,9 @@ export const API_CONFIG = {
// BASE_URL: 'http://localhost:8071',
// 生产环境 URL(如需切换,取消注释并注释掉上面的)
- BASE_URL: 'https://flux.1216.top',
+ // BASE_URL: 'https://flux.1216.top',
+
+ BASE_URL: '',
// API 端点配置
ENDPOINTS: {
diff --git a/src/js/core/api.js b/src/js/core/api.js
index 57447b6..264719f 100644
--- a/src/js/core/api.js
+++ b/src/js/core/api.js
@@ -7,6 +7,17 @@ import { API_CONFIG, DEBUG_CONFIG } from '../config/index.js';
import { UserCache } from './user-cache.js';
export class ApiClient {
+ /**
+ * 拼接请求 URL(BASE_URL 为空时使用当前页同源,便于同站部署)
+ * @param {string} endpoint - 路径,如 /api/partnerh5/area_list
+ * @returns {string} - 完整 URL 或相对路径
+ */
+ static getRequestUrl(endpoint) {
+ const base = API_CONFIG.BASE_URL;
+ if (base) return base.replace(/\/$/, '') + endpoint;
+ return endpoint;
+ }
+
/**
* 构建查询参数
* @param {Object} params - 参数对象
@@ -42,7 +53,7 @@ export class ApiClient {
* @returns {Promise