|
@@ -4,7 +4,7 @@
|
|
|
<view class="title">
|
|
|
启航教培管家·家长端
|
|
|
</view>
|
|
|
- <view class="identity" @click="show = true">
|
|
|
+ <view class="identity" @click="showClick">
|
|
|
<view class="picture">
|
|
|
<u-avatar v-if="form.headPhoto != null" class="avatar"
|
|
|
:src="form.headPhoto+'?x-oss-process=image/resize,m_fill,w_256,h_256'" size="48">
|
|
@@ -28,7 +28,7 @@
|
|
|
</view>
|
|
|
<view class="my-app">
|
|
|
<view class="app-items">
|
|
|
- <view class="item" @click="gotoUrl('pages/parents/classSchedule/classSchedule')">
|
|
|
+ <view class="item" @click="toClassSchedule">
|
|
|
<view class="icon-box"
|
|
|
style="background: linear-gradient(180deg, rgba(89,222,232,1) 1%,rgba(13,186,199,1) 100%)">
|
|
|
<img src="../../../assets/img/riFill-calendar-2-fill@1x.png" alt="">
|
|
@@ -332,10 +332,39 @@
|
|
|
this.getStudentList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ showClick() {
|
|
|
+ if(this.studentId) {
|
|
|
+ this.show = true;
|
|
|
+ } else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "请先去'我的'中完善'我的子女'",
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ toClassSchedule() {
|
|
|
+ if(this.studentId) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/parents/classSchedule/classSchedule'
|
|
|
+ })
|
|
|
+ } else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "请先去'我的'中完善'我的子女'",
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
toPaymentRecord() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/parents/course/paymentRecords'
|
|
|
- })
|
|
|
+ if(this.studentId) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/parents/course/paymentRecords'
|
|
|
+ })
|
|
|
+ } else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "请先去'我的'中完善'我的子女'",
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
getFormatDate(date) {
|
|
|
let myyear = date.getFullYear();
|