diff --git a/project.config.json b/project.config.json
index 8358dab..d9cfe28 100644
--- a/project.config.json
+++ b/project.config.json
@@ -23,6 +23,7 @@
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
- "tabSize": 2
+ "tabSize": 2,
+ "printWidth": 120
}
-}
\ No newline at end of file
+}
diff --git a/src/components/BattleFooter.vue b/src/components/BattleFooter.vue
new file mode 100644
index 0000000..74b6fbc
--- /dev/null
+++ b/src/components/BattleFooter.vue
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+ Round {{ index + 1 }}
+
+ {{ score }}
+ 环
+
+
+
+
+
+ Round {{ index + 1 }}
+
+ {{ score }}
+ 环
+
+
+
+
+
+ 第三轮射击结束
+
+
+
+
+
diff --git a/src/components/BattleHeader.vue b/src/components/BattleHeader.vue
new file mode 100644
index 0000000..03c9b9c
--- /dev/null
+++ b/src/components/BattleHeader.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选手1
+
+
+
+
+
+
+ 选手2
+
+
+
+
+
+
diff --git a/src/components/BowPower.vue b/src/components/BowPower.vue
new file mode 100644
index 0000000..d43ce57
--- /dev/null
+++ b/src/components/BowPower.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+ 电量{{ power }}%
+
+
+
+
diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue
index 74cf163..791e239 100644
--- a/src/components/BowTarget.vue
+++ b/src/components/BowTarget.vue
@@ -1,4 +1,5 @@
+
+
+
+
+ (battleMode = 1)"
+ >
+ 对抗模式(1V1)
+
+ (battleMode = 2)"
+ >
+ 乱斗模式(3-10人)
+
+
+ 对抗模式(2V2)
+ 敬请期待
+
+
+ 对抗模式(3V3)
+ 敬请期待
+
+
+ 下一步
+
+
+ 房间号:
+ 3245
+
+ 进入房间
+ 30分钟无人进入则房间无效
+ 复制房间信息邀请朋友进入
+
+
+
+
+
diff --git a/src/components/Guide.vue b/src/components/Guide.vue
index cd1da1c..819d2e4 100644
--- a/src/components/Guide.vue
+++ b/src/components/Guide.vue
@@ -4,6 +4,10 @@ defineProps({
type: Boolean,
default: false,
},
+ noBg: {
+ type: Boolean,
+ default: false,
+ },
});
@@ -12,6 +16,7 @@ defineProps({
+defineProps({
+ avatar: {
+ type: String,
+ default: "",
+ },
+ name: {
+ type: String,
+ default: "",
+ },
+ scores: {
+ type: Array,
+ default: () => [],
+ },
+});
+const rowCount = new Array(6).fill(0);
+
+
+
+
+
+ {{ name }}
+
+
+
+ {{ scores[index + 6] ? `${scores[index + 6]}环` : "-" }}
+
+
+
+
+ {{ scores[index + 6] ? `${scores[index + 6]}环` : "-" }}
+
+
+
+ {{ scores.reduce((last, next) => last + next) }}环
+
+
+
+
diff --git a/src/components/PlayersRow.vue b/src/components/PlayersRow.vue
new file mode 100644
index 0000000..55044d0
--- /dev/null
+++ b/src/components/PlayersRow.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
diff --git a/src/components/SModal.vue b/src/components/SModal.vue
new file mode 100644
index 0000000..41fe01b
--- /dev/null
+++ b/src/components/SModal.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/ShootProgress.vue b/src/components/ShootProgress.vue
index 0e25dd4..68ea817 100644
--- a/src/components/ShootProgress.vue
+++ b/src/components/ShootProgress.vue
@@ -7,9 +7,12 @@ const props = defineProps({
},
total: {
type: Number,
- default: 0,
+ default: 90,
},
});
+let barColor = "#fed847";
+if (props.tips.includes("红队")) barColor = "#FF6060";
+if (props.tips.includes("蓝队")) barColor = "#5FADFF";
const remain = ref(0);
onMounted(() => {
remain.value = props.total;
@@ -31,7 +34,13 @@ onMounted(() => {
-
+
剩余{{ remain }}秒
@@ -73,7 +82,6 @@ onMounted(() => {
.container > view:last-child > view {
position: absolute;
height: 20px;
- background-color: #fed847;
border-radius: 20px;
z-index: -1;
}
diff --git a/src/pages.json b/src/pages.json
index adc4779..f3233e5 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -42,12 +42,24 @@
"navigationBarTitleText": "好友约战"
}
},
+ {
+ "path": "pages/battle-room",
+ "style": {
+ "navigationBarTitleText": "对战房间"
+ }
+ },
{
"path": "pages/ranking",
"style": {
"navigationBarTitleText": "排行榜"
}
},
+ {
+ "path": "pages/match-room",
+ "style": {
+ "navigationBarTitleText": "排位赛"
+ }
+ },
{
"path": "pages/equipment-debug",
"style": {
diff --git a/src/pages/battle-room.vue b/src/pages/battle-room.vue
new file mode 100644
index 0000000..6f27578
--- /dev/null
+++ b/src/pages/battle-room.vue
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
+ 人都到齐了吗?
+ 天赋异禀的弓箭手们,比赛即将开始!
+
+
+
+
+
+
+
+
+
+ 选手{{ index + 1 }}
+ 虚位以待
+ 创建者
+
+
+
+ 进入大乱斗
+ 创建者点击下一步,所有人即可进入游戏。
+
+
+
+
+
+
+ 请预先射几箭测试
+ 请确保射击距离只有5米
+
+
+
+
+
+ 开始
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/friend-battle.vue b/src/pages/friend-battle.vue
index 3c511a5..aa6e10a 100644
--- a/src/pages/friend-battle.vue
+++ b/src/pages/friend-battle.vue
@@ -1,8 +1,29 @@
@@ -18,8 +39,8 @@ import SButton from "@/components/SButton.vue";
-
-
+
+ 进入房间
@@ -32,9 +53,17 @@ import SButton from "@/components/SButton.vue";
- 创建约战房
+
+ 创建约战房
+
+
+
+ {{ warnning }}
+
+
+
@@ -69,7 +98,7 @@ import SButton from "@/components/SButton.vue";
font-size: 14px;
height: 40px;
}
-.founded-room > view > button {
+.founded-room > view > view {
background-color: #fed847;
width: 30%;
line-height: 40px;
@@ -78,6 +107,7 @@ import SButton from "@/components/SButton.vue";
padding: 3px 0;
font-weight: bold;
color: #000;
+ text-align: center;
}
.create-room {
position: relative;
@@ -118,4 +148,12 @@ import SButton from "@/components/SButton.vue";
.create-room > view:last-child {
transform: translateY(-110%);
}
+.warnning {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: #fff9;
+}
diff --git a/src/pages/match-room.vue b/src/pages/match-room.vue
new file mode 100644
index 0000000..a8b757a
--- /dev/null
+++ b/src/pages/match-room.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/practise-one.vue b/src/pages/practise-one.vue
index 533e35e..e97f9ba 100644
--- a/src/pages/practise-one.vue
+++ b/src/pages/practise-one.vue
@@ -5,6 +5,7 @@ import Header from "@/components/Header.vue";
import ShootProgress from "@/components/ShootProgress.vue";
import BowTarget from "@/components/BowTarget.vue";
import ScorePanel2 from "@/components/ScorePanel2.vue";
+import ScoreResult from "@/components/ScoreResult.vue";
const showScore = ref(false);
setTimeout(() => {
@@ -16,7 +17,7 @@ setTimeout(() => {
-
+
{
power="45"
/>
+
diff --git a/src/pages/ranking.vue b/src/pages/ranking.vue
index 3b2d408..63770f6 100644
--- a/src/pages/ranking.vue
+++ b/src/pages/ranking.vue
@@ -1,13 +1,19 @@
@@ -43,9 +49,21 @@ const handleSelect = (index) => {
-
-
-
+
+
+
【1 V 1】 163 场 胜率 51%
@@ -74,9 +92,10 @@ const handleSelect = (index) => {
:key="index"
:style="{
color: index === selectedIndex ? '#000' : '#fff',
- backgroundColor: index === selectedIndex ? '#FFD947' : 'transparent',
+ backgroundColor:
+ index === selectedIndex ? '#FFD947' : 'transparent',
}"
- @tap="handleSelect(index)"
+ @tap="handleSelect(index)"
>
{{ rankType }}
diff --git a/src/static/battle-header-melee.png b/src/static/battle-header-melee.png
new file mode 100644
index 0000000..3f7fb93
Binary files /dev/null and b/src/static/battle-header-melee.png differ
diff --git a/src/static/battle-header.png b/src/static/battle-header.png
new file mode 100644
index 0000000..87a748a
Binary files /dev/null and b/src/static/battle-header.png differ
diff --git a/src/static/choose-battle-mode.png b/src/static/choose-battle-mode.png
new file mode 100644
index 0000000..b21e1db
Binary files /dev/null and b/src/static/choose-battle-mode.png differ
diff --git a/src/static/close-yellow.png b/src/static/close-yellow.png
new file mode 100644
index 0000000..0610e92
Binary files /dev/null and b/src/static/close-yellow.png differ
diff --git a/src/static/modal-content-bg.png b/src/static/modal-content-bg.png
new file mode 100644
index 0000000..445d862
Binary files /dev/null and b/src/static/modal-content-bg.png differ
diff --git a/src/static/player-1.png b/src/static/player-1.png
new file mode 100644
index 0000000..d2c739e
Binary files /dev/null and b/src/static/player-1.png differ
diff --git a/src/static/player-10.png b/src/static/player-10.png
new file mode 100644
index 0000000..e371c28
Binary files /dev/null and b/src/static/player-10.png differ
diff --git a/src/static/player-2.png b/src/static/player-2.png
new file mode 100644
index 0000000..828dceb
Binary files /dev/null and b/src/static/player-2.png differ
diff --git a/src/static/player-3.png b/src/static/player-3.png
new file mode 100644
index 0000000..3662a45
Binary files /dev/null and b/src/static/player-3.png differ
diff --git a/src/static/player-4.png b/src/static/player-4.png
new file mode 100644
index 0000000..c8df27a
Binary files /dev/null and b/src/static/player-4.png differ
diff --git a/src/static/player-5.png b/src/static/player-5.png
new file mode 100644
index 0000000..bf17e02
Binary files /dev/null and b/src/static/player-5.png differ
diff --git a/src/static/player-6.png b/src/static/player-6.png
new file mode 100644
index 0000000..134470e
Binary files /dev/null and b/src/static/player-6.png differ
diff --git a/src/static/player-7.png b/src/static/player-7.png
new file mode 100644
index 0000000..8a1f7ff
Binary files /dev/null and b/src/static/player-7.png differ
diff --git a/src/static/player-8.png b/src/static/player-8.png
new file mode 100644
index 0000000..82b0bea
Binary files /dev/null and b/src/static/player-8.png differ
diff --git a/src/static/player-9.png b/src/static/player-9.png
new file mode 100644
index 0000000..0f89274
Binary files /dev/null and b/src/static/player-9.png differ
diff --git a/src/static/player-bg.png b/src/static/player-bg.png
new file mode 100644
index 0000000..2e7a646
Binary files /dev/null and b/src/static/player-bg.png differ
diff --git a/src/static/row-bg.png b/src/static/row-bg.png
new file mode 100644
index 0000000..90cb3b6
Binary files /dev/null and b/src/static/row-bg.png differ