This commit is contained in:
haomingming
2023-05-05 11:44:37 +08:00
parent e7be139b04
commit 97a504c6d2
55 changed files with 1961 additions and 249 deletions
+8 -6
View File
@@ -85,12 +85,7 @@ Page({
},
onChange({ detail }) {
console.log("onChange: ", detail);
if(detail){
this.setData({ note: this.data.open_note });
}else{
this.setData({ note: this.data.close_note });
}
this.setData({ "info.is_open": detail });
//修改开关
let params = {};
@@ -108,6 +103,13 @@ Page({
}
})
}
}).then(()=>{
if(detail){
this.setData({ note: this.data.open_note });
}else{
this.setData({ note: this.data.close_note });
}
this.setData({ "info.is_open": detail });
}).catch(errors => {console.error(errors);})
},