From f2d8e2ed27d047cbb24ae6d60ce46cba08d3ca36 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Fri, 23 Jan 2026 17:07:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 2 +-
config/index.js | 81 +-
pages.json | 7 +
pages/index/index.vue | 270 ++++--
pages/index/verify_backup_phone.vue | 305 +++++++
pages/my/index.vue | 1312 ++++++++++++++++-----------
6 files changed, 1346 insertions(+), 631 deletions(-)
create mode 100644 pages/index/verify_backup_phone.vue
diff --git a/App.vue b/App.vue
index 06337e4..d612907 100644
--- a/App.vue
+++ b/App.vue
@@ -24,7 +24,7 @@
// 判断是否是开发环境
if (process.env.NODE_ENV === 'development') {
console.log('开发环境,使用模拟登录')
- this.mockAccountLogin('songwz', 'Abcd1234')
+ this.mockAccountLogin('songwz', 'Admin@2025')
} else {
this.wxH5AuthLogin()
}
diff --git a/config/index.js b/config/index.js
index 621b977..3b3fd2e 100644
--- a/config/index.js
+++ b/config/index.js
@@ -1,41 +1,42 @@
-// API配置
-export const BASE_URL = 'https://xukoushuniu.115.langye.net'
-
-// 判断环境(你可以用 process.env.NODE_ENV 或自定义变量)
-const IS_PROD = process.env.NODE_ENV === 'production';
-
-// API接口地址
-export const API = {
- WECHAT_JSSDK_CONFIG: `${BASE_URL}/api/customer/wechat/jssdk-config`,
- LOGIN: `${BASE_URL}/api/customer/login-by-code`,
- WX_LOGIN: `${BASE_URL}/api/customer/login-by-wechat-code`,
- STATISTICS: `${BASE_URL}/api/customer/reservation/statistics`,
- LOGIN_ACCOUNT: `${BASE_URL}/api/customer/login`,
- GET_USER_INFO: `${BASE_URL}/api/customer/me`,
- UPDATE_USER_INFO: `${BASE_URL}/api/customer/profile/update`,
- UPLOAD_FILE:`${BASE_URL}/api/customer/upload-file`,
- SHIP_CREATE: `${BASE_URL}/api/customer/ship/create`,
- SHIP_INDEX: `${BASE_URL}/api/customer/ship/index`,
- SHIP_DETAIL: `${BASE_URL}/api/customer/ship/get-one`,
- SHIP_PROPERTY_ENUM: `${BASE_URL}/api/customer/ship/get-property-enum`,
- SHIP_DELETE: `${BASE_URL}/api/customer/ship/delete`,
- RESERVATION_STATUS_ENUM: `${BASE_URL}/api/customer/reservation/get-status-enum`,
- RESERVATION_CREATE: `${BASE_URL}/api/customer/reservation/create`,
- RESERVATION_LIST: `${BASE_URL}/api/customer/reservation/index`,
- AVAILABLE_SHIP: `${BASE_URL}/api/customer/reservation/get-available-ship`,
- // GET_PAYMENT_QRCODE: IS_PROD
- // ? `${BASE_URL}/api/customer/reservation/get-payment-qrcode`
- // : `${BASE_URL}/api/customer/reservation/get-fake-payment-qrcode`,
- GET_PAYMENT_QRCODE: `${BASE_URL}/api/customer/reservation/fake-pay`,
- FAKE_PAY: `${BASE_URL}/api/customer/reservation/fake-pay`,
- NOTIFICATION_LIST: `${BASE_URL}/api/customer/notifications/index`,
- CANCEL_RESERVATION: `${BASE_URL}/api/customer/reservation/cancel`,
- GET_DIRECTION_ENUM: `${BASE_URL}/api/customer/reservation/get-direction-enum`,
- SHIP_UPDATE: `${BASE_URL}/api/customer/ship/update`,
- GET_INVOICE: `${BASE_URL}/api/customer/reservation/get-invoice`,
- GET_DAILY_RESERVATION_DEADLINE: `${BASE_URL}/api/customer/setting/get-daily-reservation-deadline`,
- GET_GEOFENCE_BY_DIRECTION: `${BASE_URL}/api/customer/geofence/get-by-direction`,
- GET_WATER_LEVEL: `${BASE_URL}/api/customer/setting/get-water-level`,
- GET_UNIT_PRICE: `${BASE_URL}/api/customer/setting/get-unit-price`,
- GET_SHIP_INSPECTION_EXAMPLES: `${BASE_URL}/api/customer/setting/get-ship-inspection-examples`,
+// API配置
+export const BASE_URL = 'https://xukoushuniu.115.langye.net'
+
+// 判断环境(你可以用 process.env.NODE_ENV 或自定义变量)
+const IS_PROD = process.env.NODE_ENV === 'production';
+
+// API接口地址
+export const API = {
+ WECHAT_JSSDK_CONFIG: `${BASE_URL}/api/customer/wechat/jssdk-config`,
+ LOGIN: `${BASE_URL}/api/customer/login-by-code`,
+ WX_LOGIN: `${BASE_URL}/api/customer/login-by-wechat-code`,
+ STATISTICS: `${BASE_URL}/api/customer/reservation/statistics`,
+ LOGIN_ACCOUNT: `${BASE_URL}/api/customer/login`,
+ GET_USER_INFO: `${BASE_URL}/api/customer/me`,
+ UPDATE_USER_INFO: `${BASE_URL}/api/customer/profile/update`,
+ UPLOAD_FILE:`${BASE_URL}/api/customer/upload-file`,
+ SHIP_CREATE: `${BASE_URL}/api/customer/ship/create`,
+ SHIP_INDEX: `${BASE_URL}/api/customer/ship/index`,
+ SHIP_DETAIL: `${BASE_URL}/api/customer/ship/get-one`,
+ SHIP_PROPERTY_ENUM: `${BASE_URL}/api/customer/ship/get-property-enum`,
+ SHIP_DELETE: `${BASE_URL}/api/customer/ship/delete`,
+ RESERVATION_STATUS_ENUM: `${BASE_URL}/api/customer/reservation/get-status-enum`,
+ RESERVATION_CREATE: `${BASE_URL}/api/customer/reservation/create`,
+ RESERVATION_LIST: `${BASE_URL}/api/customer/reservation/index`,
+ AVAILABLE_SHIP: `${BASE_URL}/api/customer/reservation/get-available-ship`,
+ // GET_PAYMENT_QRCODE: IS_PROD
+ // ? `${BASE_URL}/api/customer/reservation/get-payment-qrcode`
+ // : `${BASE_URL}/api/customer/reservation/get-fake-payment-qrcode`,
+ GET_PAYMENT_QRCODE: `${BASE_URL}/api/customer/reservation/fake-pay`,
+ FAKE_PAY: `${BASE_URL}/api/customer/reservation/fake-pay`,
+ NOTIFICATION_LIST: `${BASE_URL}/api/customer/notifications/index`,
+ CANCEL_RESERVATION: `${BASE_URL}/api/customer/reservation/cancel`,
+ GET_DIRECTION_ENUM: `${BASE_URL}/api/customer/reservation/get-direction-enum`,
+ SHIP_UPDATE: `${BASE_URL}/api/customer/ship/update`,
+ GET_INVOICE: `${BASE_URL}/api/customer/reservation/get-invoice`,
+ GET_DAILY_RESERVATION_DEADLINE: `${BASE_URL}/api/customer/setting/get-daily-reservation-deadline`,
+ GET_GEOFENCE_BY_DIRECTION: `${BASE_URL}/api/customer/geofence/get-by-direction`,
+ GET_WATER_LEVEL: `${BASE_URL}/api/customer/setting/get-water-level`,
+ GET_UNIT_PRICE: `${BASE_URL}/api/customer/setting/get-unit-price`,
+ GET_SHIP_INSPECTION_EXAMPLES: `${BASE_URL}/api/customer/setting/get-ship-inspection-examples`,
+ PROFILE_SEND_PHONE_CODE: `${BASE_URL}/api/customer/profile/send-phone-code`,
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 8a805b4..6603d76 100644
--- a/pages.json
+++ b/pages.json
@@ -127,6 +127,13 @@
"navigationBarTitleText": "关于我们",
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "pages/index/verify_backup_phone",
+ "style": {
+ "navigationBarTitleText": "验证备用手机号",
+ "navigationStyle": "custom"
+ }
}
],
"tabBar": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 20f5edf..a3ebed1 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -5,59 +5,39 @@
-
+
@@ -162,7 +142,7 @@
北向南2025040102准备过闸
-->
-
+