细节优化

This commit is contained in:
kron
2026-01-07 15:12:18 +08:00
parent 494f83392e
commit 1f75045db4
6 changed files with 13 additions and 6 deletions

View File

@@ -108,5 +108,6 @@ const rowCount = new Array(6).fill(0);
.container > text:nth-child(5) {
width: 40px;
text-align: right;
word-break: keep-all;
}
</style>

View File

@@ -23,7 +23,7 @@ const onClick = () => {
>
<view
@click="onClick"
:style="{ transform: 'translateX(' + (mode ? '-58' : '2') + 'rpx)' }"
:style="{ transform: 'translateX(' + (mode ? '-58' : '4') + 'rpx)' }"
>
<text>放大</text>
<view :style="{ background: mode ? '#D8D8D8' : '#53EF56' }"></view>
@@ -52,6 +52,7 @@ const onClick = () => {
word-break: keep-all;
padding: 0 12rpx;
transition: all 0.3s ease;
transform: translateX(-58rpx);
}
.point-switcher > view > text:first-child {
color: #53ef56;

View File

@@ -81,7 +81,7 @@ watch(
align-items: center;
opacity: 0;
transition: all 0.3s ease;
z-index: 99;
z-index: 999;
}
.modal-content {
width: 100%;

View File

@@ -181,7 +181,7 @@ const getRing = (arrow) => {
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.8);
z-index: 5;
z-index: 999;
}
.container-header {
margin-top: 20vh;

View File

@@ -10,10 +10,13 @@ import {
loginAPI,
getHomeData,
getPhoneNumberAPI,
getDeviceBatteryAPI,
} from "@/apis";
import useStore from "@/store";
const store = useStore();
const { updateUser, updateDevice } = store;
const { updateUser, updateDevice, updateOnline } = store;
const props = defineProps({
noBg: {
type: Boolean,
@@ -94,6 +97,8 @@ const handleLogin = async () => {
const devices = await getMyDevicesAPI();
if (devices.bindings && devices.bindings.length) {
updateDevice(devices.bindings[0].deviceId, devices.bindings[0].deviceName);
const data = await getDeviceBatteryAPI();
updateOnline(data.online);
}
loading.value = false;
props.onClose();

View File

@@ -108,12 +108,12 @@ onShow(async () => {
}
const devices = await getMyDevicesAPI();
if (devices.bindings && devices.bindings.length) {
const data = await getDeviceBatteryAPI();
updateOnline(data.online);
updateDevice(
devices.bindings[0].deviceId,
devices.bindings[0].deviceName
);
const data = await getDeviceBatteryAPI();
updateOnline(data.online);
}
}
}