From ab169af87f66c6ab4c97da6bf76aa2fcb7ff0b7d Mon Sep 17 00:00:00 2001 From: kron Date: Wed, 7 May 2025 23:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=AA=E4=BA=BA=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 26 ++++++++++++++++--- src/components/InputEntry.vue | 47 ---------------------------------- src/components/UserItem.vue | 12 --------- src/pages.json | 18 ++++++++----- src/pages/first-try.vue | 3 ++- src/pages/friend-battle.vue | 5 +++- src/pages/index.vue | 8 +++++- src/pages/practise.vue | 31 ++++++++++++++++++++++ src/pages/user.vue | 11 -------- src/static/practise1.png | Bin 0 -> 199853 bytes src/static/practise2.png | Bin 0 -> 211982 bytes 11 files changed, 79 insertions(+), 82 deletions(-) delete mode 100644 src/components/InputEntry.vue create mode 100644 src/pages/practise.vue create mode 100644 src/static/practise1.png create mode 100644 src/static/practise2.png diff --git a/src/App.vue b/src/App.vue index 3e7849f..3ff262e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,27 @@ - + diff --git a/src/components/InputEntry.vue b/src/components/InputEntry.vue deleted file mode 100644 index 285b8f2..0000000 --- a/src/components/InputEntry.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - - - diff --git a/src/components/UserItem.vue b/src/components/UserItem.vue index c9828d1..c3b00d9 100644 --- a/src/components/UserItem.vue +++ b/src/components/UserItem.vue @@ -47,18 +47,6 @@ defineProps({ color: #999; margin-right: 10px; } -.user-item > view button { - margin: 0; - padding: 0; - border: none; - background: none; - line-height: 1; - outline: none; - box-sizing: border-box; -} -.user-item > view button::after { - border: none; -} .user-item > view image { width: 24px; diff --git a/src/pages.json b/src/pages.json index 601f984..79a2e2e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -12,23 +12,29 @@ "navigationBarTitleText": "用户信息" } }, - { - "path": "pages/ranking", - "style": { - "navigationBarTitleText": "排行榜" - } - }, { "path": "pages/first-try", "style": { "navigationBarTitleText": "新手试炼" } }, + { + "path": "pages/practise", + "style": { + "navigationBarTitleText": "个人练习" + } + }, { "path": "pages/friend-battle", "style": { "navigationBarTitleText": "好友约战" } + }, + { + "path": "pages/ranking", + "style": { + "navigationBarTitleText": "排行榜" + } } ], "globalStyle": { diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue index b3edbbe..feaaa6e 100644 --- a/src/pages/first-try.vue +++ b/src/pages/first-try.vue @@ -23,10 +23,11 @@ import Guide from "@/components/Guide.vue"; } .start-btn { margin: 0 10px; + padding: 15px 0; + font-weight: bold; width: calc(100% - 20px); background-color: #fed847; font-size: 15px; - padding: 3px; border-radius: 10px; } diff --git a/src/pages/friend-battle.vue b/src/pages/friend-battle.vue index 12c32d2..c160742 100644 --- a/src/pages/friend-battle.vue +++ b/src/pages/friend-battle.vue @@ -61,10 +61,12 @@ import Guide from "@/components/Guide.vue"; width: 70%; text-align: center; font-size: 14px; + height: 40px; } .founded-room > view > button { background-color: #fed847; width: 30%; + line-height: 40px; border-radius: 30px; font-size: 14px; padding: 3px 0; @@ -84,7 +86,6 @@ import Guide from "@/components/Guide.vue"; position: relative; display: flex; flex-direction: column; - justify-content: center; } .create-room > view > image:first-child { width: 18vw; @@ -110,8 +111,10 @@ import Guide from "@/components/Guide.vue"; .create-room > button { background-color: #fed847; border-radius: 30px; + margin: 0 auto; width: 70%; font-size: 15px; transform: translateY(-110%); + padding: 15px 0; } diff --git a/src/pages/index.vue b/src/pages/index.vue index 579d37b..b9eb055 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -26,6 +26,12 @@ const toFriendBattlePage = () => { url: "/pages/friend-battle", }); }; + +const toPractisePage = () => { + uni.navigateTo({ + url: "/pages/practise", + }); +};