From d932ce3deae435122847fa8740922ba379e0b785 Mon Sep 17 00:00:00 2001 From: zhangyibo95 <690096405@qq.com> Date: Wed, 27 May 2026 17:42:43 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=96=B0=E6=89=8B=E6=95=99=E7=A8=8B?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.vue | 10 +- src/components/Swiper.vue | 17 +- src/pages/first-try.vue | 185 ++++++++++++++++---- src/pages/my-device.vue | 40 +++-- src/pages/team-battle/components/Header.vue | 10 +- 5 files changed, 194 insertions(+), 68 deletions(-) diff --git a/src/components/Header.vue b/src/components/Header.vue index 8dadfcd..7296572 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -142,8 +142,8 @@ onBeforeUnmount(() => { {{ title }} @@ -151,12 +151,12 @@ onBeforeUnmount(() => { - 凹造型 + 箭前准备 - 感知距离 -import { ref } from "vue"; +import { ref, watch } from "vue"; const props = defineProps({ interval: { @@ -14,13 +14,24 @@ const props = defineProps({ type: Array, default: () => [], }, + current: { + type: Number, + default: 0, + }, onChange: { type: Function, default: (index) => {}, }, }); -const currentIndex = ref(0); +const currentIndex = ref(props.current); + +watch( + () => props.current, + (index) => { + currentIndex.value = index; + } +); const handleChange = (e) => { currentIndex.value = e.detail.current; @@ -75,7 +86,7 @@ const handleChange = (e) => { .dots { position: absolute; - bottom: 5%; + bottom: 2%; left: 50%; transform: translateX(-50%); display: flex; diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue index e33dc79..8201644 100644 --- a/src/pages/first-try.vue +++ b/src/pages/first-try.vue @@ -1,5 +1,5 @@ @@ -301,4 +375,43 @@ const onClose = async () => { width: calc(100% - 20px); margin: 0 10px; } +.calibration-container { + display: flex; + flex-direction: column; + align-items: center; +} +.calibration-guide { + display: flex; + flex-direction: column; + align-items: center; + font-size: 26rpx; + color: #ffffff; + margin-bottom: 15rpx; +} +.calibration-guide > view { + width: 100%; + margin: 25rpx 0; + display: flex; + align-items: center; +} +.calibration-guide > view > text:first-child { + font-size: 24rpx; + background: #e89024; + border-radius: 50%; + width: 32rpx; + height: 32rpx; + line-height: 32rpx; + display: block; + text-align: center; + margin-right: 15rpx; +} +.calibration-guide > image { + width: 630rpx; + height: 250rpx; +} +.calibration-container > text { + font-size: 24rpx; + color: #fff9; + margin: 30rpx; +} diff --git a/src/pages/my-device.vue b/src/pages/my-device.vue index f584210..b4edcd9 100644 --- a/src/pages/my-device.vue +++ b/src/pages/my-device.vue @@ -212,33 +212,35 @@ onShow(() => { {{ user.nickName }} - - 进入新手试炼 - - 返回首页 - - - + 恭喜,你的弓箭和账号已成功绑定! 已赠送6个月射灵世界会员 - + + + + 返回首页 + + + 进入新手试炼 + + + diff --git a/src/pages/team-battle/components/Header.vue b/src/pages/team-battle/components/Header.vue index 24a51e3..35df1ba 100644 --- a/src/pages/team-battle/components/Header.vue +++ b/src/pages/team-battle/components/Header.vue @@ -142,8 +142,8 @@ onBeforeUnmount(() => { {{ title }} @@ -151,12 +151,12 @@ onBeforeUnmount(() => { - 凹造型 + 箭前准备 - 感知距离