diff --git a/src/components/Header.vue b/src/components/Header.vue
new file mode 100644
index 0000000..545ebd3
--- /dev/null
+++ b/src/components/Header.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
diff --git a/src/components/UserHeader.vue b/src/components/UserHeader.vue
new file mode 100644
index 0000000..823f67e
--- /dev/null
+++ b/src/components/UserHeader.vue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
+ {{ containerWidth }}
+
+
+
+ 钻石1级
+ {{ userInfo.level }}
+
+
+ 158/1928
+
+
+
+
+
+ 本赛季全国
+ 第{{ userInfo.rank }}/{{ userInfo.rankTotal }}名
+
+
+
+
+
diff --git a/src/components/UserItem.vue b/src/components/UserItem.vue
new file mode 100644
index 0000000..c9828d1
--- /dev/null
+++ b/src/components/UserItem.vue
@@ -0,0 +1,67 @@
+
+
+
+
+ {{ title }}
+
+ {{ value }}
+
+
+
+
+
+
diff --git a/src/pages/index.vue b/src/pages/index.vue
index ca98564..579d37b 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -2,6 +2,7 @@
import { ref } from "vue";
import AppFooter from "@/components/AppFooter.vue";
import AppBackground from "@/components/AppBackground.vue";
+import UserHeader from "@/components/UserHeader.vue";
const userInfo = ref({
name: "打酱油·路过",
@@ -10,11 +11,6 @@ const userInfo = ref({
rankTotal: 1320,
});
-const toUserPage = () => {
- uni.navigateTo({
- url: "/pages/user",
- });
-};
const toFristTryPage = () => {
uni.navigateTo({
url: "/pages/first-try",
@@ -35,36 +31,7 @@ const toFriendBattlePage = () => {
-
-
-
-
-
-
-
-
- {{ userInfo.name }}
-
-
-
- 钻石1级
- {{ userInfo.level }}
-
-
- 158/1928
-
-
-
-
-
- 本赛季全国
- 第{{ userInfo.rank }}/{{ userInfo.rankTotal }}名
-
-
+
@@ -165,119 +132,13 @@ const toFriendBattlePage = () => {
diff --git a/src/static/back.png b/src/static/back.png
new file mode 100644
index 0000000..b981981
Binary files /dev/null and b/src/static/back.png differ
diff --git a/src/static/enter.png b/src/static/enter.png
new file mode 100644
index 0000000..0c952a3
Binary files /dev/null and b/src/static/enter.png differ
diff --git a/src/static/my-grow.png b/src/static/my-grow.png
new file mode 100644
index 0000000..fdef091
Binary files /dev/null and b/src/static/my-grow.png differ