添加兼容性处理

This commit is contained in:
kron
2025-11-14 09:46:14 +08:00
parent c11a108f5d
commit daee337e59
5 changed files with 17 additions and 17 deletions

View File

@@ -26,7 +26,7 @@ const props = defineProps({
background-size: contain;
background-repeat: no-repeat;
background-position: center;
font-size: 13px;
font-size: 24rpx;
}
.normal {
background-image: url("../static/bubble-tip.png");

View File

@@ -225,11 +225,12 @@ onMounted(() => {
text-align: center;
line-height: 27px;
color: #333333;
font-size: 28rpx;
}
.container-content > view:nth-child(2) > view > text {
font-size: 12px;
font-size: 20rpx;
color: #666666;
margin-left: 3px;
margin-left: 5rpx;
}
.container-content > view:nth-child(3) {
width: 100%;

View File

@@ -113,8 +113,8 @@ onBeforeUnmount(() => {
font-size: 18rpx;
color: #fff;
position: absolute;
top: -0.5rpx;
top: 50%;
left: 50%;
transform: translateX(-50%);
transform: translate(-50%, -50%);
}
</style>

View File

@@ -153,10 +153,7 @@ onShareTimeline(() => {
mode="widthFix"
@click="() => toPage('/pages/first-try')"
/>
<BubbleTip
v-if="showGuide"
:location="{ top: '60%', left: '40%', fontSize: '14px' }"
>
<BubbleTip v-if="showGuide" :location="{ top: '60%', left: '40%' }">
<text>新人必刷</text>
<text>快来报到吧~</text>
</BubbleTip>

View File

@@ -80,14 +80,16 @@ async function onReceiveMessage(messages = []) {
wait.value = msg.wait;
uni.$emit("update-ramain", count);
if (scores.value.length === 6) audioManager.play("第三轮", false);
setInterval(() => {
count -= 1;
if (count === 30) {
audioManager.play("最后30秒");
clearInterval(timer.value);
timer.value = null;
}
}, 1000);
if (!timer.value) {
timer.value = setInterval(() => {
count -= 1;
if (count === 30) {
audioManager.play("最后30秒");
clearInterval(timer.value);
timer.value = null;
}
}, 1000);
}
}
}
});