气泡调整

This commit is contained in:
kron
2025-07-13 11:38:54 +08:00
parent 6b3fc6d059
commit 12a24464c2
6 changed files with 24 additions and 16 deletions

View File

@@ -35,9 +35,27 @@ const props = defineProps({
padding-top: 5px; padding-top: 5px;
padding-left: 49rpx; padding-left: 49rpx;
} }
.normal2 {
background-image: url("../static/bubble-tip4.png");
width: 190rpx;
height: 105rpx;
padding-top: 10px;
padding-left: 20rpx;
top: 25%;
left: 15%;
}
.long { .long {
background-image: url("../static/bubble-tip2.png"); background-image: url("../static/bubble-tip2.png");
width: 370rpx; width: 370rpx;
height: 70rpx; height: 70rpx;
top: -50%;
left: 49%;
}
.short {
background-image: url("../static/bubble-tip3.png");
width: 300rpx;
height: 70rpx;
top: -50%;
right: -1%;
} }
</style> </style>

View File

@@ -260,11 +260,7 @@ const onClose = () => {
</view> </view>
<view :style="{ marginBottom: '20px' }"> <view :style="{ marginBottom: '20px' }">
<SButton v-if="step !== 4" :onClick="nextStep" :disabled="btnDisabled"> <SButton v-if="step !== 4" :onClick="nextStep" :disabled="btnDisabled">
<BubbleTip <BubbleTip v-if="showGuide" :type="step === 1 ? 'long' : 'short'">
v-if="showGuide"
type="long"
:location="{ top: '-50%', left: '50%' }"
>
<text :style="{ transform: 'translateY(-18rpx)' }">{{ <text :style="{ transform: 'translateY(-18rpx)' }">{{
step === 1 ? "学会了,我摆得比教练还帅" : "我找到合适的点位了" step === 1 ? "学会了,我摆得比教练还帅" : "我找到合适的点位了"
}}</text> }}</text>

View File

@@ -18,7 +18,7 @@ import { storeToRefs } from "pinia";
const store = useStore(); const store = useStore();
const { user } = storeToRefs(store); const { user } = storeToRefs(store);
const { updateUser } = store; const { updateUser } = store;
const start = ref(true); const start = ref(false);
const scores = ref([]); const scores = ref([]);
const total = 12; const total = 12;
const currentRound = ref(0); const currentRound = ref(0);
@@ -113,14 +113,11 @@ onUnmounted(() => {
/> />
<view class="user-row"> <view class="user-row">
<Avatar :src="user.avatar" :size="35" /> <Avatar :src="user.avatar" :size="35" />
<BowPower :power="power" /> <BubbleTip v-if="showGuide" type="normal2">
<BubbleTip
v-if="showGuide"
:location="{ top: '40%', left: '5%', paddingLeft: '16rpx' }"
>
<text>还有两场坚持</text> <text>还有两场坚持</text>
<text>就是胜利💪</text> <text>就是胜利💪</text>
</BubbleTip> </BubbleTip>
<BowPower :power="power" />
</view> </view>
<BowTarget <BowTarget
:start="start" :start="start"

View File

@@ -107,14 +107,11 @@ onUnmounted(() => {
/> />
<view class="user-row"> <view class="user-row">
<Avatar :src="user.avatar" :size="35" /> <Avatar :src="user.avatar" :size="35" />
<BowPower :power="power" /> <BubbleTip v-if="showGuide" type="normal2">
<BubbleTip
v-if="showGuide"
:location="{ top: '40%', left: '5%', paddingLeft: '16rpx' }"
>
<text>完成过半胜利</text> <text>完成过半胜利</text>
<text>在望💪</text> <text>在望💪</text>
</BubbleTip> </BubbleTip>
<BowPower :power="power" />
</view> </view>
<BowTarget <BowTarget
:start="start" :start="start"

BIN
src/static/bubble-tip3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src/static/bubble-tip4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB