pull/176/head
sunmeng 2024-09-27 15:59:51 +08:00
parent 087cd181a8
commit 82b23d3247
1 changed files with 4 additions and 3 deletions

View File

@ -252,20 +252,22 @@ return num
var inputData = this.inputData
var list1 = this.padString(inputData['272'].toString(2), 6)
var listData = list1.split('')
if (Number(listData[listData.length - 1 - this.active])) {
if (Number(listData[listData.length - 1 - this.active])==1) {
listData[listData.length - 1 - this.active] = '0'
this.openList.splice(this.openList.indexOf(this.active), 1)
} else {
listData[listData.length - 1 - this.active] = '1'
this.openList.push(this.active)
}
var listNew = listData.join("");
var dataNum = {
target: {
value: parseInt(listNew, 2),
},
};
this.inputData['272']=parseInt(listNew, 2)
this.changeBtn('272', dataNum);
},
getData272() {
@ -275,7 +277,6 @@ return num
this.openList = []
for (var i = 0; i < number; i++) {
console.log(Number(list1[list1.length - 1 - i]));
if (Number(list1[list1.length - 1 - i])) {
this.openList.push(i)
}