一些小优化
This commit is contained in:
@ -715,7 +715,7 @@
|
||||
return new Promise((resolve, reject) => {
|
||||
// 创建RGB565格式的像素数据
|
||||
// console.log("pixels=",pixels);
|
||||
const arr = ble.convertToRGB565(pixels, 'bgr');
|
||||
const arr = Common.convertToRGB565(pixels, 'bgr');
|
||||
|
||||
var list = [];
|
||||
let index = 0; // 用于追踪arr的当前位置
|
||||
|
||||
@ -1029,7 +1029,7 @@ import request, { baseURL } from '@/utils/request.js';
|
||||
});
|
||||
|
||||
these.Status.BottomMenu.show = false;
|
||||
these.rgb565Data = ble.convertToRGB565(data.piexls);
|
||||
these.rgb565Data = Common.convertToRGB565(data.piexls);
|
||||
setTimeout(function() {
|
||||
sendImagePackets().catch(() => {
|
||||
|
||||
|
||||
@ -1848,7 +1848,7 @@
|
||||
|
||||
these.Status.BottomMenu.show = false;
|
||||
these.picPath = data.picPath;
|
||||
these.rgb565Data = ble.convertToRGB565(data.piexls);
|
||||
these.rgb565Data = Common.convertToRGB565(data.piexls);
|
||||
setTimeout(function() {
|
||||
|
||||
sendImagePackets().catch(() => {
|
||||
|
||||
@ -910,7 +910,7 @@
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
background-color: #bbe60033;
|
||||
|
||||
|
||||
display: inline-block;
|
||||
transform: translate(-50%, -50%);
|
||||
border: 1rpx solid #bbe6003d;
|
||||
@ -927,18 +927,22 @@
|
||||
|
||||
@keyframes expand {
|
||||
0% {
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
|
||||
|
||||
100% {
|
||||
width: 18rem;
|
||||
height: 18rem;
|
||||
opacity: 0;
|
||||
}
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
90% {
|
||||
width: 18rem;
|
||||
height: 18rem;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
width: 0rem;
|
||||
height: 0rem;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mainContent {
|
||||
|
||||
Reference in New Issue
Block a user