diff --git a/src/components/AppBackground.vue b/src/components/AppBackground.vue
index b127cb4..91eea14 100644
--- a/src/components/AppBackground.vue
+++ b/src/components/AppBackground.vue
@@ -12,7 +12,7 @@
height: 100%;
left: 0;
top: 0;
- z-index: 0;
+ z-index: -1;
}
.bg-image {
diff --git a/src/pages.json b/src/pages.json
index d120f8e..601f984 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -3,8 +3,31 @@
{
"path": "pages/index",
"style": {
- "navigationBarTitleText": "首页",
- "navigationStyle": "custom"
+ "navigationBarTitleText": "首页"
+ }
+ },
+ {
+ "path": "pages/user",
+ "style": {
+ "navigationBarTitleText": "用户信息"
+ }
+ },
+ {
+ "path": "pages/ranking",
+ "style": {
+ "navigationBarTitleText": "排行榜"
+ }
+ },
+ {
+ "path": "pages/first-try",
+ "style": {
+ "navigationBarTitleText": "新手试炼"
+ }
+ },
+ {
+ "path": "pages/friend-battle",
+ "style": {
+ "navigationBarTitleText": "好友约战"
}
}
],
diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue
new file mode 100644
index 0000000..c215e2e
--- /dev/null
+++ b/src/pages/first-try.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+ 返回
+ 新手试炼
+
+
+
+
diff --git a/src/pages/friend-battle.vue b/src/pages/friend-battle.vue
new file mode 100644
index 0000000..e0d7eb1
--- /dev/null
+++ b/src/pages/friend-battle.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+ 返回
+ 好友约战
+
+
+
+
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 77faa75..ca98564 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -9,6 +9,27 @@ const userInfo = ref({
rank: 1928,
rankTotal: 1320,
});
+
+const toUserPage = () => {
+ uni.navigateTo({
+ url: "/pages/user",
+ });
+};
+const toFristTryPage = () => {
+ uni.navigateTo({
+ url: "/pages/first-try",
+ });
+};
+const toRankingPage = () => {
+ uni.navigateTo({
+ url: "/pages/ranking",
+ });
+};
+const toFriendBattlePage = () => {
+ uni.navigateTo({
+ url: "/pages/friend-battle",
+ });
+};
@@ -16,7 +37,7 @@ const userInfo = ref({
-
+
@@ -52,7 +73,11 @@ const userInfo = ref({
我的弓箭
-
+
@@ -61,13 +86,13 @@ const userInfo = ref({
-
+
-
+
@@ -145,14 +170,6 @@ const userInfo = ref({
position: relative;
}
-/* 确保其他内容在背景上层显示 */
-.user-info,
-.container,
-.AppFooter {
- position: relative;
- z-index: 1;
-}
-
/* 用户信息样式 */
.user-info {
display: flex;
diff --git a/src/pages/ranking.vue b/src/pages/ranking.vue
new file mode 100644
index 0000000..34d7cc4
--- /dev/null
+++ b/src/pages/ranking.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+ 返回
+ 排行榜
+
+
+
+
diff --git a/src/pages/user.vue b/src/pages/user.vue
index d1ad0da..0758e9a 100644
--- a/src/pages/user.vue
+++ b/src/pages/user.vue
@@ -1,10 +1,16 @@
- 返回
+
+ 返回