From b0feaf322f9aa1da10408e02d9181b93e44d2eb9 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 30 Sep 2024 10:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mybook/index.vue | 23 +++++++++++++---------- pages/me/index.vue | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/packages/mybook/index.vue b/packages/mybook/index.vue index 92a2990..6f816b2 100644 --- a/packages/mybook/index.vue +++ b/packages/mybook/index.vue @@ -158,17 +158,20 @@ }) }, async goBook(){ - await this.$u.api.user().then(res => { - if (res.user.appointment_total - res.user.pass_appointments > 0) { - this.can_appointment = true - uni.navigateTo({ - url: '/packages/booksubmit/appointment' - }) - } else { - this.can_appointment = false - this.base.toast("您当前没有可预约次数") - } + uni.navigateTo({ + url: '/packages/booksubmit/appointment' }) + // await this.$u.api.user().then(res => { + // if (res.user.appointment_total - res.user.pass_appointments > 0) { + // this.can_appointment = true + // uni.navigateTo({ + // url: '/packages/booksubmit/appointment' + // }) + // } else { + // this.can_appointment = false + // this.base.toast("您当前没有可预约次数") + // } + // }) } } diff --git a/pages/me/index.vue b/pages/me/index.vue index e55a281..2842fbb 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -277,7 +277,7 @@ this.$u.vuex('vuex_user', res.user) this.userInfo = res.user this.course_signs = res.user.course_signs ? res.user.course_signs : [], - this.myQrcode = res.course_signs ? res.course_signs.qrcode : 'STBC' + this.myQrcode = res.course_signs ? res.course_signs.qrcode : 'STBC' if (this.base.isNull(res.user.mobile)) { this.showRegister = true this.hasMobile = false