This commit is contained in:
曹辉 2023-04-20 11:04:08 +08:00
parent 89072c1ab7
commit b056c6288e

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="top"> <view class="top">
<view class="content" v-if="!studentId" @tap="goindex"> <view class="content" v-if="!parentList" @tap="goindex">
<view class="pictures"> <view class="pictures">
<image src="../../static/toux.png" mode=""></image> <image src="../../static/toux.png" mode=""></image>
</view> </view>
@ -22,7 +22,7 @@
<image src="../../static/tuichu.png" mode=""></image> <image src="../../static/tuichu.png" mode=""></image>
</view> </view>
</view> </view>
<view class="student" v-if="!studentId"> <view class="student" v-if="!parentList">
<view class="studentitem"> <view class="studentitem">
<image src="../../static/renshi.png" mode=""></image> <image src="../../static/renshi.png" mode=""></image>
<span>学生信息</span> <span>学生信息</span>
@ -57,7 +57,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="school" v-if="!studentId"> <view class="school" v-if="!parentList">
<view class="studentitem"> <view class="studentitem">
<image src="../../static/xuexiao.png" mode=""></image> <image src="../../static/xuexiao.png" mode=""></image>
<span>幼儿园信息</span> <span>幼儿园信息</span>
@ -119,18 +119,18 @@
export default { export default {
data() { data() {
return { return {
studentId: null,
mask: false, mask: false,
phone: '', phone: '',
studentInfoList: [], studentInfoList: [],
kindergartenInfoList: [], kindergartenInfoList: [],
parentList: {}, parentList: null,
} }
}, },
onShow() { onShow() {
let that = this; let that = this;
that.phone = uni.getStorageSync('phone'); that.phone = uni.getStorageSync('phone');
if (that.phone) { if (that.phone) {
console.log(1)
that.getInfoByPhoneinfo(); that.getInfoByPhoneinfo();
} else {} } else {}
}, },