修改
This commit is contained in:
parent
b4dc4ba81b
commit
3416fec76c
@ -127,7 +127,6 @@
|
|||||||
parentList: {},
|
parentList: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.studentId = uni.getStorageSync('studentId');
|
this.studentId = uni.getStorageSync('studentId');
|
||||||
@ -154,13 +153,7 @@
|
|||||||
},
|
},
|
||||||
fail: function(err) {}
|
fail: function(err) {}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goindex() {
|
goindex() {
|
||||||
@ -175,20 +168,7 @@
|
|||||||
this.studentInfoList = res.data.studentInfoList;
|
this.studentInfoList = res.data.studentInfoList;
|
||||||
this.kindergartenInfoList = res.data.kindergartenInfoList;
|
this.kindergartenInfoList = res.data.kindergartenInfoList;
|
||||||
this.parentList = res.data;
|
this.parentList = res.data;
|
||||||
// var obj = []
|
} else {}
|
||||||
// res.data.studentInfoList.forEach(e => {
|
|
||||||
// obj.push(e.studentId)
|
|
||||||
// })
|
|
||||||
// uni.setStorageSync("studentId", obj)
|
|
||||||
// that.login = true
|
|
||||||
// that.stuinfos = true
|
|
||||||
// that.tip = false
|
|
||||||
// that.top2 = true
|
|
||||||
// that.top = false
|
|
||||||
// this.mask = true;
|
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -197,11 +177,6 @@
|
|||||||
const value = uni.getStorageSync('phone');
|
const value = uni.getStorageSync('phone');
|
||||||
const value2 = uni.getStorageSync('studentId');
|
const value2 = uni.getStorageSync('studentId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
// uni.showModal({
|
|
||||||
// title: '提示',
|
|
||||||
// content: '确认要退出此账号吗',
|
|
||||||
// success: function(res) {
|
|
||||||
// if (res.confirm) {
|
|
||||||
uni.removeStorageSync('phone');
|
uni.removeStorageSync('phone');
|
||||||
uni.removeStorageSync('openid');
|
uni.removeStorageSync('openid');
|
||||||
uni.removeStorageSync('studentId');
|
uni.removeStorageSync('studentId');
|
||||||
@ -219,14 +194,8 @@
|
|||||||
url: '/pages/homepage/homepage'
|
url: '/pages/homepage/homepage'
|
||||||
})
|
})
|
||||||
}, 1000)
|
}, 1000)
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user