This commit is contained in:
曹辉 2023-04-19 15:32:39 +08:00
parent 5fdd773a97
commit b65a2b030d
8 changed files with 36 additions and 38 deletions

View File

@ -126,7 +126,7 @@
if (this.checked == false) {
this.$refs.uToast.show({
type: 'error',
title: "请先阅读《隐私保护协议》!",
message: "请先阅读《隐私保护协议》!",
})
setTimeout(() => {
this.maskshow = true
@ -143,7 +143,7 @@
data: res.msg
});
this.$refs.uToast.show({
title: "添加成功",
message: "添加成功",
type: 'success'
})
// uni.showToast({
@ -158,7 +158,7 @@
} else if (res.code == 500) {
this.$refs.uToast.show({
title: res.msg,
message: res.msg,
type: 'error'
})
// uni.showToast({

View File

@ -1,10 +1,10 @@
<template>
<view class="top">
<view class="content" v-if="!studentId">
<view class="content" v-if="!studentId" @tap="goindex">
<view class="pictures">
<image src="../../static/toux.png" mode=""></image>
</view>
<view class="name" @tap="goindex">
<view class="name">
点击登录
</view>
</view>
@ -22,7 +22,6 @@
<image src="../../static/tuichu.png" mode=""></image>
</view>
</view>
<view class="student" v-if="!studentId">
<view class="studentitem">
<image src="../../static/renshi.png" mode=""></image>
@ -34,7 +33,6 @@
</view>
</view>
</view>
<view class="student" v-for="item in studentInfoList" v-else>
<view class="studentitem">
<image src="../../static/renshi.png" mode=""></image>
@ -58,20 +56,18 @@
<span>{{item.kindergartenName}}</span>
</view>
</view>
</view>
<view class="school" v-if="!studentId">
<view class="studentitem">
<image src="../../static/xuexiao.png" mode=""></image>
<span>幼儿园信息</span>
</view>
<view class="schoolitem">
<view class="studentitem">
<image src="../../static/xuexiao.png" mode=""></image>
<span>幼儿园信息</span>
</view>
<view class="picitem">
<image src="../../static/zanwu.png" mode=""></image>
</view>
</view>
</view>
<view class="school" v-for="item in kindergartenInfoList" v-else>
<view class="gongli" v-if="kindergartenInfoList.kindergartenType=='public_handle'">
<image src="../../static/gongli.png" mode=""></image>
@ -93,8 +89,6 @@
<span>{{item.principalName}} {{item.kindergartenPhone}}</span>
</view>
</view>
</view>
<view class="masks" style="" v-if="mask">
<view class="mask">
@ -115,8 +109,6 @@
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
@ -127,7 +119,7 @@
export default {
data() {
return {
studentId:null,
studentId: null,
mask: false,
phone: '',
studentInfoList: [],
@ -135,10 +127,10 @@
parentList: {},
}
},
onShow() {
let that = this;
this.studentId = uni.getStorageSync('studentId');
this.studentId = uni.getStorageSync('studentId');
if (this.studentId) {
uni.getStorage({
key: 'phone',
@ -162,13 +154,13 @@
},
fail: function(err) {}
});
}
},
methods: {
goindex() {

View File

@ -144,7 +144,7 @@
},
showToast() {
this.$refs.uToast.show({
title: "暂无报告",
message: "暂无报告",
type: 'error',
duration: 1000
})
@ -152,7 +152,7 @@
lookbook(item) {
if (item.existFlag == false) {
this.$refs.uToast.show({
title: "暂无报告",
message: "暂无报告",
type: 'error',
duration: 1000
})
@ -180,7 +180,7 @@
fail: function(err) {
uni.hideLoading();
that.$refs.uToast.show({
title: '请求报告失败',
message: '请求报告失败',
type: 'error'
})
}

View File

@ -101,7 +101,7 @@
fail: function(err) {
uni.hideLoading();
that.$refs.uToast.show({
title: '请求报告失败',
message: '请求报告失败',
type: 'error'
})
}

View File

@ -54,7 +54,7 @@
methods: {
showToast() {
this.$refs.uToast.show({
title: '暂无报告',
message: '暂无报告',
type: 'error'
})
},
@ -82,7 +82,7 @@
fail: function(err) {
uni.hideLoading();
that.$refs.uToast.show({
title: '请求报告失败',
message: '请求报告失败',
type: 'error'
})
}

View File

@ -85,7 +85,7 @@
this.getInfoByPhoneinfo()
}
this.$refs.uToast.show({
title: "登录成功",
message: "登录成功",
type: 'success',
duration: '5000'
})
@ -96,6 +96,12 @@
}, 500)
this.top = false
}
} else {
this.$refs.uToast.show({
message: "登录失败",
type: 'error',
duration: '5000'
})
}
})
},

View File

@ -111,7 +111,7 @@
bindParent() {
if (this.checked == false) {
this.$refs.uToast.show({
title: '请先阅读《隐私保护协议》',
message: '请先阅读《隐私保护协议》',
type: 'error'
})
setTimeout(() => {
@ -132,12 +132,12 @@
url: '/pages/index/index'
})
this.$refs.uToast.show({
title: '添加成功',
message: '添加成功',
type: 'success'
})
} else if (res.code == 500) {
this.$refs.uToast.show({
title: res.msg,
message: res.msg,
type: 'error'
})
// uni.showToast({

View File

@ -202,7 +202,7 @@
lookbook(item) {
if (item.existFlag == false) {
this.$refs.uToast.show({
title: "暂无报告",
message: "暂无报告",
type: 'error',
duration: 1000
})
@ -230,7 +230,7 @@
fail: function(err) {
uni.hideLoading();
that.$refs.uToast.show({
title: '请求报告失败',
message: '请求报告失败',
type: 'error'
})
}