From d56f375217679963d49acaf49552fff857de47c7 Mon Sep 17 00:00:00 2001 From: dzl <786316265@qq.com> Date: Thu, 4 Sep 2025 16:52:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 27 +- src/views/About.vue | 453 --------------------------- src/views/Cart.vue | 2 +- src/views/Home.vue | 381 ----------------------- src/views/MainPage.vue | 16 +- src/views/MyLogin.vue | 2 +- src/views/TaskCenter.vue | 645 --------------------------------------- 7 files changed, 13 insertions(+), 1513 deletions(-) delete mode 100644 src/views/About.vue delete mode 100644 src/views/Home.vue delete mode 100644 src/views/TaskCenter.vue diff --git a/src/router/index.js b/src/router/index.js index d3bab5f..b8a4056 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,7 +7,7 @@ const routes = [ { path: '/', name: 'Home', - redirect: '/transfers', + redirect: '/mainpage', meta: { title: '首页' } @@ -80,14 +80,6 @@ const routes = [ requiresAuth: true } }, - { - path: '/home', - name: 'HomePage', - component: () => import('@/views/Home.vue'), - meta: { - title: '首页' - } - }, { path: '/shop', name: 'Shop', @@ -131,15 +123,6 @@ const routes = [ requiresAuth: true } }, - { - path: '/task-center', - name: 'TaskCenter', - component: () => import('@/views/TaskCenter.vue'), - meta: { - title: '任务中心', - requiresAuth: true - } - }, { path: '/transfers', name: 'Transfers', @@ -186,14 +169,6 @@ const routes = [ isAgent: true } }, - { - path: '/about', - name: 'About', - component: () => import('@/views/About.vue'), - meta: { - title: '关于我们' - } - }, { path: '/customerservice', name: 'CustomerService', diff --git a/src/views/About.vue b/src/views/About.vue deleted file mode 100644 index 1f443ba..0000000 --- a/src/views/About.vue +++ /dev/null @@ -1,453 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/Cart.vue b/src/views/Cart.vue index 7d49698..3dc9a55 100644 --- a/src/views/Cart.vue +++ b/src/views/Cart.vue @@ -320,7 +320,7 @@ onMounted(() => { } .navbar { - background: #ff6b35; + background: #72c9ff; padding: 12px 16px; display: flex; align-items: center; diff --git a/src/views/Home.vue b/src/views/Home.vue deleted file mode 100644 index 45eec0e..0000000 --- a/src/views/Home.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/MainPage.vue b/src/views/MainPage.vue index 9f2cd2d..0e92ca0 100644 --- a/src/views/MainPage.vue +++ b/src/views/MainPage.vue @@ -249,9 +249,9 @@ export default { flex-direction: column; padding: 16px; gap: 16px; - max-width: 375px; - margin: 0 auto; width: 100%; + max-width: 100%; + margin: 0 auto; } /* 欢迎文字 */ @@ -267,7 +267,8 @@ export default { /* 轮播图样式 */ .carousel { - width: 343px; + width: 100%; + max-width: 343px; height: 148px; border-radius: 12px; overflow: hidden; @@ -299,7 +300,8 @@ export default { .header { display: flex; justify-content: space-between; /* 保持元素均匀分布 */ - width: 343px; + width: 100%; + max-width: 343px; height: 50px; padding: 0; /* 移除内边距 */ background-color: transparent; @@ -339,7 +341,8 @@ export default { /* 操作区域样式 */ .action-area { - width: 343px; + width: 100%; + max-width: 343px; margin: 0 auto; } @@ -394,7 +397,8 @@ export default { /* 热门资讯 */ .hot-news { - width: 343px; + width: 100%; + max-width: 343px; padding: 16px; background-color: white; border-radius: 12px; diff --git a/src/views/MyLogin.vue b/src/views/MyLogin.vue index 16234ba..5b5c338 100644 --- a/src/views/MyLogin.vue +++ b/src/views/MyLogin.vue @@ -207,7 +207,7 @@ const handleLogin = async () => { if (result.success) { // 登录成功,跳转到目标页面或转账管理 - const redirectPath = route.query.redirect || '/transfers' + const redirectPath = route.query.redirect || '/mainpage' router.push(redirectPath) } else if (result.needPayment) { // 用户需要支付激活,直接跳转到支付页面 diff --git a/src/views/TaskCenter.vue b/src/views/TaskCenter.vue deleted file mode 100644 index 6ddb478..0000000 --- a/src/views/TaskCenter.vue +++ /dev/null @@ -1,645 +0,0 @@ - - - - - \ No newline at end of file