diff --git a/.env b/.env
index 5b04806..81e7a56 100644
--- a/.env
+++ b/.env
@@ -1,9 +1,17 @@
-# 客户端可读变量必须以 VITE_ 开头
-# 不配置 VITE_API_BASE_URL 时,逻辑在 src/api/http.js 的 resolveBaseUrl():
-# - H5:默认 /api/v1(配合 vite.config.js 里 proxy)
-# - 非 H5:默认 https://www.tianyuancha.cn/api/v1
+# API 基础地址控制
+# ──────────────────────────────────────────────
+# 方式1:不设置 VITE_API_BASE_URL(留空),由代码自动选择:
+# H5 dev → /api/v1(走 Vite proxy)
+# 小程序 dev → http://127.0.0.1:8888/api/v1(直连本地)
+# 生产 → https://www.quannengcha.com/api/v1
#
-# 需要覆盖时再取消注释其一:
-# VITE_API_BASE_URL=/api/v1
+# 方式2:设置 VITE_API_BASE_URL 强制覆盖所有端
+# 连线上:VITE_API_BASE_URL=https://www.quannengcha.com/api/v1
+# 连本地:VITE_API_BASE_URL=http://127.0.0.1:8888/api/v1
+# ──────────────────────────────────────────────
+
+# 想用线上接口时取消下面这行注释:
+# VITE_API_BASE_URL=https://www.quannengcha.com/api/v1
+
+# 想用本地接口时注释掉上面那行,取消下面这行注释:
VITE_API_BASE_URL=http://127.0.0.1:8888/api/v1
-# VITE_API_BASE_URL=https://www.tianyuancha.cn/api/v1
diff --git a/.env.development b/.env.development
new file mode 100644
index 0000000..069c9e9
--- /dev/null
+++ b/.env.development
@@ -0,0 +1,2 @@
+# 开发环境:一般留空,由 http.js 按平台默认连 qnc-server-v3(8888)
+# H5 默认 /api/v1 + Vite 代理;小程序默认 http://127.0.0.1:8888/api/v1
diff --git a/.env.production b/.env.production
new file mode 100644
index 0000000..4e3fbec
--- /dev/null
+++ b/.env.production
@@ -0,0 +1,2 @@
+# 生产构建:指向 qnc-server-v3 线上网关
+VITE_API_BASE_URL=https://www.quannengcha.com/api/v1
diff --git a/env.d.ts b/env.d.ts
new file mode 100644
index 0000000..411e28e
--- /dev/null
+++ b/env.d.ts
@@ -0,0 +1,12 @@
+///
+
+interface ImportMetaEnv {
+ /** 覆盖全部端的 API 根路径,如 /api/v1 或 http://127.0.0.1:8888/api/v1 */
+ readonly VITE_API_BASE_URL?: string
+ /** H5 开发代理目标,仅 vite 使用,默认 http://127.0.0.1:8888 */
+ readonly VITE_API_PROXY_TARGET?: string
+}
+
+interface ImportMeta {
+ readonly env: ImportMetaEnv
+}
diff --git a/src/App.vue b/src/App.vue
index c6b794a..37db0ae 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,19 +1,16 @@
-
-
+
全能查
@@ -185,15 +75,17 @@ onUnmounted(() => {
- {{ wxLoading ? '…' : '微信登录' }}
+ {{ wxLoading ? '登录中...' : '微信一键登录' }}
-
- 手机号登录
+
+
+ 一键登录
+
@@ -208,75 +100,6 @@ onUnmounted(() => {
《授权书》
-
-
-
-
-
- ‹
-
- 手机号登录
-
-
-
-
-
- 手机号
-
-
-
-
- 验证码
-
-
-
- {{ isCountingDown ? `${countdown}s` : '获取' }}
-
-
-
-
-
-
-
- 同意
-
- 《用户协议》
- 与
- 《隐私政策》
- 及
- 《授权书》
-
-
-
- 登录
-
-
@@ -333,7 +156,7 @@ onUnmounted(() => {
font-size: 26rpx;
color: #86909c;
margin-top: 12rpx;
- margin-bottom: 72rpx;
+ margin-bottom: 120rpx;
}
.btn-stack {
@@ -363,13 +186,6 @@ onUnmounted(() => {
pointer-events: none;
}
-.btn-phone {
- background: #fff;
- color: #1768ff;
- border: 2rpx solid rgba(23, 104, 255, 0.35);
- box-shadow: 0 8rpx 24rpx rgba(15, 35, 52, 0.06);
-}
-
.agree-row {
display: flex;
align-items: center;
@@ -412,117 +228,4 @@ onUnmounted(() => {
margin: 0 4rpx;
color: #86909c;
}
-
-.agree-form {
- margin-top: 0;
- margin-bottom: 24rpx;
-}
-
-.form-sheet {
- padding-top: 8rpx;
-}
-
-.form-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 36rpx;
-}
-
-.back {
- width: 72rpx;
- height: 72rpx;
- line-height: 72rpx;
- text-align: center;
- font-size: 48rpx;
- color: #1d2129;
- font-weight: 300;
-}
-
-.back-spacer {
- width: 72rpx;
-}
-
-.form-title {
- font-size: 34rpx;
- font-weight: 600;
- color: #1d2129;
-}
-
-.form-card {
- background: #fff;
- border-radius: 28rpx;
- padding: 8rpx 28rpx 8rpx;
- border: 1rpx solid rgba(23, 104, 255, 0.08);
- box-shadow: 0 20rpx 48rpx rgba(15, 35, 52, 0.06);
- margin-bottom: 36rpx;
-}
-
-.inp-wrap {
- padding: 22rpx 0;
- border-bottom: 1rpx solid #f0f1f5;
-}
-
-.inp-wrap:last-child {
- border-bottom: none;
-}
-
-.inp-row {
- display: flex;
- align-items: flex-end;
- gap: 20rpx;
-}
-
-.inp-flex {
- flex: 1;
- min-width: 0;
-}
-
-.inp-label {
- display: block;
- font-size: 22rpx;
- color: #86909c;
- margin-bottom: 10rpx;
-}
-
-.inp {
- width: 100%;
- height: 72rpx;
- font-size: 32rpx;
- color: #1d2129;
- box-sizing: border-box;
-}
-
-.inp-ph {
- color: #c9cdd4;
-}
-
-.sms {
- flex-shrink: 0;
- height: 68rpx;
- line-height: 68rpx;
- padding: 0 28rpx;
- font-size: 26rpx;
- font-weight: 500;
- color: #1768ff;
- background: #f0f5ff;
- border-radius: 34rpx;
-}
-
-.sms.disabled {
- color: #c9cdd4;
- background: #f7f8fa;
- pointer-events: none;
-}
-
-.btn-submit {
- background: linear-gradient(90deg, #1768ff 0%, #4d94ff 100%);
- color: #fff;
- box-shadow: 0 16rpx 40rpx rgba(23, 104, 255, 0.28);
-}
-
-.btn-submit.disabled {
- opacity: 0.45;
- pointer-events: none;
-}
diff --git a/src/pages/mine.vue b/src/pages/mine.vue
index d50dbea..c122074 100644
--- a/src/pages/mine.vue
+++ b/src/pages/mine.vue
@@ -1,8 +1,9 @@
@@ -349,7 +252,7 @@ onUnmounted(() => {
-
+
绑定手机号
@@ -406,20 +309,18 @@ onUnmounted(() => {
常用工具
-
-
-
-
+
+
+
+
- 实时油价查询
- ›
+ 实时油价查询
-
-
-
+
+
+
- 违章代码查询
- ›
+ 违章代码查询
@@ -427,57 +328,52 @@ onUnmounted(() => {
服务与支持
-
-