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

View File

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