From 54af0a0bd07dacceb2a1e4dbb1c4df53e73516e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 15 Nov 2023 10:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/homepage/homepage.vue | 108 ++++++++-------- pages/medicalservice/medicalservice.vue | 161 +++++++++++------------- pages/myinformation/myinformation.vue | 17 +-- store/index.js | 14 +-- 4 files changed, 143 insertions(+), 157 deletions(-) diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index 6c59c04..3fc3557 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -77,6 +77,9 @@ detail, checkSignApply } from '@/api/pages/homepage/homepage.js' + import { + mapActions + } from "vuex"; export default { data() { return { @@ -104,6 +107,7 @@ } else {} }, methods: { + ...mapActions(["openPopup"]), //跳转选择地址 city() { uni.navigateTo({ @@ -134,34 +138,37 @@ }, // 家医签约 goonline() { - if (!this.userinfo) { - this.gologin(); - } else if (this.userinfo) { - if (this.region == 3) { - this.family() - } else { - if (this.region == 1 || this.region == 2) { - if (this.checkSign == "0") { - this.$refs.uToast.show({ - title: '未签约,请先签约', - type: 'error', - url: "/pagesC/Onlinesigning/Onlinesigning" - }) - } else if (this.checkSign == "01") { - this.$refs.uToast.show({ - title: this.infotitle, - type: 'error', - }) - } else { - uni.navigateTo({ - url: "/pagesB/mysigning/mysigning" - }) - } - } else { + this.openPopup(); + setTimeout(e => { + if (!this.userinfo) { + this.gologin(); + } else if (this.userinfo) { + if (this.region == 3) { this.family() + } else { + if (this.region == 1 || this.region == 2) { + if (this.checkSign == "0") { + this.$refs.uToast.show({ + title: '未签约,请先签约', + type: 'error', + url: "/pagesC/Onlinesigning/Onlinesigning" + }) + } else if (this.checkSign == "01") { + this.$refs.uToast.show({ + title: this.infotitle, + type: 'error', + }) + } else { + uni.navigateTo({ + url: "/pagesB/mysigning/mysigning" + }) + } + } else { + this.family() + } } } - } + }, 50) }, // 积分兑换 count() { @@ -242,34 +249,37 @@ }, // 服务预约 goappoint() { - if (!this.userinfo) { - this.gologin(); - } else { - if (this.region == 3) { - this.family() + this.openPopup(); + setTimeout(e => { + if (!this.userinfo) { + this.gologin(); } else { - if (this.region == 1 || this.region == 2) { - if (this.checkSign == "0") { - this.$refs.uToast.show({ - title: '未签约,请先签约', - type: 'error', - url: "/pagesC/Onlinesigning/Onlinesigning" - }) - } else if (this.checkSign == "01") { - this.$refs.uToast.show({ - title: this.infotitle, - type: 'error', - }) - } else { - uni.navigateTo({ - url: "/pagesC/ServiceAppointment/ServiceAppointment" - }) - } - } else { + if (this.region == 3) { this.family() + } else { + if (this.region == 1 || this.region == 2) { + if (this.checkSign == "0") { + this.$refs.uToast.show({ + title: '未签约,请先签约', + type: 'error', + url: "/pagesC/Onlinesigning/Onlinesigning" + }) + } else if (this.checkSign == "01") { + this.$refs.uToast.show({ + title: this.infotitle, + type: 'error', + }) + } else { + uni.navigateTo({ + url: "/pagesC/ServiceAppointment/ServiceAppointment" + }) + } + } else { + this.family() + } } } - } + }, 50) }, // 服务记录 servicerecord() { diff --git a/pages/medicalservice/medicalservice.vue b/pages/medicalservice/medicalservice.vue index 6d0e74b..452fa02 100644 --- a/pages/medicalservice/medicalservice.vue +++ b/pages/medicalservice/medicalservice.vue @@ -43,7 +43,6 @@