细节调整

This commit is contained in:
kron
2025-06-26 13:41:40 +08:00
parent 159207a99d
commit 7ec435ce45
4 changed files with 24 additions and 5 deletions

View File

@@ -16,6 +16,10 @@ function request(method, url, data = {}) {
if (res.data.message.indexOf("登录身份已失效") !== -1) { if (res.data.message.indexOf("登录身份已失效") !== -1) {
uni.removeStorageSync("token"); uni.removeStorageSync("token");
} }
if (url.indexOf("/user/room") !== -1 && method === "GET") {
resolve({});
return;
}
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
icon: "none", icon: "none",

View File

@@ -22,7 +22,7 @@ defineProps({
default: 2, default: 2,
}, },
}); });
const bgColors = ["#364469", "#692735", "#934B4B", "#A98B69", "#8268A2 "]; const bgColors = ["#364469", "#692735", "#934B4B", "#A98B69", "#8268A2"];
</script> </script>
<template> <template>

View File

@@ -89,10 +89,10 @@ onMounted(() => {
if (totalTop.value === 100) { if (totalTop.value === 100) {
totalTop.value = 0; totalTop.value = 0;
} else { } else {
totalTop.value += 0.5; totalTop.value += 2;
} }
textStyles.value = getTextStyle(totalTop.value); textStyles.value = getTextStyle(totalTop.value);
}, 10); }, 40);
}); });
onUnmounted(() => { onUnmounted(() => {
if (timer.value) clearInterval(timer.value); if (timer.value) clearInterval(timer.value);
@@ -155,7 +155,8 @@ onUnmounted(() => {
width: 70vw; width: 70vw;
height: 95vw; height: 95vw;
overflow: hidden; overflow: hidden;
position: relative; position: absolute;
top: 30.5vw;
} }
.matching-bg { .matching-bg {
position: absolute; position: absolute;
@@ -165,12 +166,13 @@ onUnmounted(() => {
} }
.matching > button { .matching > button {
width: 55%; width: 55%;
margin-top: 15vw;
padding: 18px; padding: 18px;
color: #000; color: #000;
background-color: #fed847; background-color: #fed847;
font-size: 18px; font-size: 18px;
border-radius: 30px; border-radius: 30px;
position: absolute;
top: 142vw;
} }
.player-names { .player-names {
width: 100%; width: 100%;

View File

@@ -35,3 +35,16 @@ export const roundsName = {
4: "四", 4: "四",
5: "五", 5: "五",
}; };
export const meleeAvatarColors = [
"#364469",
"#692735",
"#934B4B",
"#A98B69",
"#8268A2",
"#9C538F",
"#6870BB",
"#4B8593",
"#9BA969",
"#DCCE6D",
];