From 81c86586217ffdce615b8bb40303968e5e3a55f9 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Tue, 5 Aug 2025 18:23:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 12 ++++++------ components/FormCard/styles/index.scss | 4 +++- components/SumCard/styles/index.scss | 2 +- pages.json | 4 ++-- pages/goods/components/GoodConfirm/index.vue | 7 +++++-- pages/goods/components/GoodConfirm/styles/index.scss | 6 +++--- 6 files changed, 20 insertions(+), 15 deletions(-) diff --git a/App.vue b/App.vue index 5cc77d3..239205e 100644 --- a/App.vue +++ b/App.vue @@ -9,13 +9,13 @@ onLaunch(async () => { const token = uni.getStorageSync("token"); // 检测是否绑定手机号和token - // if (token) { - // const res = await checkPhone(); + if (token) { + const res = await checkPhone(); - // if (res.data) { - // goHome(); - // } - // } + if (res.data) { + goHome(); + } + } }); onShow(() => { diff --git a/components/FormCard/styles/index.scss b/components/FormCard/styles/index.scss index 558edfb..cabf346 100644 --- a/components/FormCard/styles/index.scss +++ b/components/FormCard/styles/index.scss @@ -5,7 +5,7 @@ $form-text-color: #333; $form-label-color: #86909c; $form-border-color: #ddd; $form-input-border-color: #ddd; -$form-bg-color: #fff; +$form-bg-color: #f5f5f5; $form-header-bg-color: rgba(25, 144, 255, 0.06); $form-border-radius: 8px; $form-transition: all 0.2s ease; @@ -61,6 +61,8 @@ $form-transition: all 0.2s ease; background-color: $form-bg-color; border-radius: 0 0 $form-border-radius $form-border-radius; box-sizing: border-box; + border: 1px solid $form-border-color; + border-top: none; padding: 12px; } diff --git a/components/SumCard/styles/index.scss b/components/SumCard/styles/index.scss index 46bd46e..a41f8f6 100644 --- a/components/SumCard/styles/index.scss +++ b/components/SumCard/styles/index.scss @@ -1,6 +1,6 @@ .sum-wrapper { border-radius: 8px; - background-color: #fff; + background-color: #f5f5f5; padding: 0 12px; box-sizing: border-box; } diff --git a/pages.json b/pages.json index 80a9cf9..844011e 100644 --- a/pages.json +++ b/pages.json @@ -2,13 +2,13 @@ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { - "path": "pages/login/index", + "path": "pages/index/index", "style": { "navigationStyle": "custom" } }, { - "path": "pages/index/index", + "path": "pages/login/index", "style": { "navigationStyle": "custom" } diff --git a/pages/goods/components/GoodConfirm/index.vue b/pages/goods/components/GoodConfirm/index.vue index fbf569f..71480b3 100644 --- a/pages/goods/components/GoodConfirm/index.vue +++ b/pages/goods/components/GoodConfirm/index.vue @@ -2,7 +2,7 @@ - + diff --git a/pages/goods/components/GoodConfirm/styles/index.scss b/pages/goods/components/GoodConfirm/styles/index.scss index 53e478f..f763e31 100644 --- a/pages/goods/components/GoodConfirm/styles/index.scss +++ b/pages/goods/components/GoodConfirm/styles/index.scss @@ -34,7 +34,7 @@ } .good-content { - background: #e9f3f7; + background: #fff; box-sizing: border-box; max-height: 60vh; overflow: hidden; @@ -54,7 +54,7 @@ .goods-info { display: flex; box-sizing: border-box; - background-color: #fff; + background-color: #f5f5f5; padding: 12px; .goods-details { @@ -105,13 +105,13 @@ font-size: 14px; font-weight: 500; color: #333; - margin-bottom: 8px; } .goods-service-item { display: flex; align-items: center; justify-content: space-between; + margin-top: 8px; .service-label, .service-value {