update:修改中转页面移动端文字适配

This commit is contained in:
lihaoyuan 2025-12-27 11:08:09 +08:00
parent b1f4750abe
commit 64e9394234

View File

@ -8,8 +8,9 @@
style="width: 300px; height: 300px; margin-bottom: 20px;" style="width: 300px; height: 300px; margin-bottom: 20px;"
> >
</div> </div>
<div class="text-container">
<p style="font-size: 30px;">小发同城和您一起享受本地生活服务</p> <p class="desc-text">小发同城和您一起享受本地生活服务</p>
</div>
<button id="openBtn" class="btn" @click="go"> <button id="openBtn" class="btn" @click="go">
立即打开 立即打开
</button> </button>
@ -48,7 +49,7 @@ async function handleScheme() {
} }
} catch (err) { } catch (err) {
console.error('接口请求异常:', err) console.error('接口请求异常:', err)
ElMessage.error('网络异常,请重试!') // ElMessage.error('')
} }
} }
@ -94,4 +95,27 @@ onMounted(async () => {
.btn:hover { .btn:hover {
background: #06b058; background: #06b058;
} }
.text-container {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
margin-bottom: 20px;
}
/* 文本样式,适配移动端字体大小 */
.desc-text {
font-size: 30px;
font-size: clamp(20px, 5vw, 30px);
text-align: center;
margin: 0;
line-height: 1.5;
}
@media (max-width: 480px) {
.desc-text {
padding: 0 10px;
}
}
</style> </style>