细节调整
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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%;
|
||||||
|
|||||||
@@ -35,3 +35,16 @@ export const roundsName = {
|
|||||||
4: "四",
|
4: "四",
|
||||||
5: "五",
|
5: "五",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const meleeAvatarColors = [
|
||||||
|
"#364469",
|
||||||
|
"#692735",
|
||||||
|
"#934B4B",
|
||||||
|
"#A98B69",
|
||||||
|
"#8268A2",
|
||||||
|
"#9C538F",
|
||||||
|
"#6870BB",
|
||||||
|
"#4B8593",
|
||||||
|
"#9BA969",
|
||||||
|
"#DCCE6D",
|
||||||
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user