This commit is contained in:
曹辉 2023-04-19 15:12:14 +08:00
parent 24147b2ec1
commit 32773f4e17

View File

@ -47,10 +47,6 @@
logincode: '',
phonecode: '',
phone: '',
studentList: [],
classList: [],
parentList: [],
msg: '',
openId: '',
}
},
@ -63,7 +59,6 @@
that.yonghuwx = res.data
that.top = false
that.getPreOrderById();
// that.mask = true
}
});
},
@ -134,7 +129,6 @@
},
info() {
const items = uni.getStorageSync("this.DATAList");
// const items = JSON.parse(this.DATAList);
loginLogging(items).then(res => {})
},
getInfoByPhoneinfo() {
@ -142,23 +136,15 @@
getInfoByPhone(this.phone).then(res => {
if (res.code == 200) {
this.DATAList = res.data
console.log(this.DATAList, '123456')
let items = JSON.stringify(this.DATAList);
uni.setStorageSync("this.DATAList", items)
this.info();
this.studentList = res.data.studentInfoList;
this.classList = res.data.classInfoList;
this.parentList = res.data;
var obj = []
res.data.studentInfoList.forEach(e => {
obj.push(e.studentId)
})
uni.setStorageSync("studentId", obj)
// that.top = false
// this.mask = true;
} else {
}
} else {}
})
}
},
@ -199,24 +185,7 @@
},
fail: function(err) {}
});
}
// this.yonghuwx = JSON.parse(options.userinfo)
// uni.request({
// url: '/kindergarten/applet/appletLogin', //
// method:'GET'
// data: {
// text: 'uni.request'
// },
// success: (res) => {
// this.text = 'request success';
// }
// });
},
}
</script>