新手试炼页面完善

This commit is contained in:
kron
2025-05-15 12:43:40 +08:00
parent a949786226
commit 34c9dd00e2
7 changed files with 67 additions and 26 deletions

View File

@@ -52,8 +52,10 @@ const handleChange = (e) => {
.swiper-container {
width: calc(100% - 20px);
margin: 10px;
height: 440px;
height: 560px;
position: relative;
border-radius: 10px;
overflow: hidden;
}
.swiper-container > swiper {
@@ -67,7 +69,7 @@ const handleChange = (e) => {
.dots {
position: absolute;
bottom: 27%;
bottom: 12%;
left: 50%;
transform: translateX(-50%);
display: flex;

View File

@@ -59,29 +59,51 @@ const onClose = () => {
>这是我们人帅技高的高教练首先请按教练示范尝试自己去做这些动作和手势吧</text
>
<view v-if="step === 2">
<text :style="{ color: '#fed847' }">你知道5米射程有多远吗</text>
<text>
在我们的排位赛中射程小于5米的成绩无效建议平时练习距离至少5米现在来边射箭边调整你的站位点吧
</text>
<view :style="{ display: 'flex', flexDirection: 'column' }">
<text :style="{ color: '#fed847' }">你知道5米射程有多远吗</text>
<text>
在我们的排位赛中射程小于5米的成绩无效建议平时练习距离至少5米现在来边射箭边调整你的站位点吧
</text>
</view>
</view>
<view v-if="step === 3">
<text :style="{ color: '#fed847' }">一切准备就绪</text>
<text>试着完成一个真正的弓箭手任务吧</text>
<view :style="{ display: 'flex', flexDirection: 'column' }">
<text :style="{ color: '#fed847' }">一切准备就绪</text>
<text>试着完成一个真正的弓箭手任务吧</text>
</view>
</view>
<view v-if="step === 5">
<text :style="{ color: '#fed847' }">新手试炼场通关啦优秀</text>
<text
>反曲弓运动基本知识和射灵世界系统规则你已Get是不是挺容易呀</text
<view
:style="{ display: 'flex', flexDirection: 'column', marginTop: 20 }"
>
<text :style="{ color: '#fed847' }">新手试炼场通关啦优秀</text>
<text
>反曲弓运动基本知识和射灵世界系统规则你已Get是不是挺容易呀</text
>
<!-- 这行是占位用的 -->
<text :style="{ opacity: 0 }">新手试炼场通关啦优秀</text>
</view>
</view>
</Guide>
<image
src="../static/first-try-tip.png"
class="try-tip"
mode="widthFix"
v-if="step === 0 || step === 5"
v-if="step === 0"
/>
<view style="height: 450px" v-if="step === 1">
<image
src="../static/first-try-tip2.png"
class="try-tip"
mode="widthFix"
v-if="step === 3"
/>
<image
src="../static/first-try-tip3.png"
class="try-tip"
mode="widthFix"
v-if="step === 5"
/>
<view style="height: 570px" v-if="step === 1">
<Swiper
:data="[
'../static/first-try-tip.png',
@@ -106,12 +128,6 @@ const onClose = () => {
v-if="step === 4"
:onClose="onClose"
/>
<image
src="../static/first-try-tip.png"
class="try-tip"
mode="widthFix"
v-if="step === 3"
/>
<SButton v-if="step !== 4" :onClick="nextStep">{{
stepButtonTexts[step]
}}</SButton>

View File

@@ -21,25 +21,48 @@ const toPractiseTwo = () => {
<AppBackground />
<Header title="个人练习" />
<Guide>
<text :style="{ color: '#fed847' }">师傅领进门修行靠自身赶紧练起来吧</text
<text :style="{ color: '#fed847' }"
>师傅领进门修行靠自身赶紧练起来吧</text
>
<text :style="{ fontSize: '12px' }"
>坚持练习就能你快速升级早日加入全国排位赛</text
>
<text :style="{ fontSize: '12px' }">坚持练习就能你快速升级早日加入全国排位赛</text>
</Guide>
<view class="practise1" @click="toPractiseOne">
<image
src="../static/practise-bg.png"
class="practise-bg"
mode="widthFix"
:style="{ marginTop: 0 }"
/>
<view class="practise-btn" @click="toPractiseOne">
<image src="../static/practise1.png" class="practise1" mode="widthFix" />
</view>
<view class="practise2" @click="toPractiseTwo">
<image
src="../static/practise-bg.png"
class="practise-bg"
mode="widthFix"
/>
<view class="practise-btn" @click="toPractiseTwo">
<image src="../static/practise2.png" class="practise2" mode="widthFix" />
</view>
<image
src="../static/practise-bg.png"
class="practise-bg"
mode="widthFix"
/>
</view>
</template>
<style scoped>
.practise1 {
.practise-btn {
width: 100%;
margin: 20px 0;
margin-top: -6px;
}
.practise2 {
.practise-btn > image {
width: 100%;
}
.practise-bg {
width: 100%;
margin-top: -6px;
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 609 KiB

After

Width:  |  Height:  |  Size: 691 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 KiB

BIN
src/static/practise-bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB