From c53dcdb373f306ca15cbf24c7fae4646a494668b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 10 Oct 2023 15:37:25 +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 | 111 ++++++------------------- pagesC/Signingagency/Signingagency.vue | 23 ++--- 2 files changed, 37 insertions(+), 97 deletions(-) diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index e0e40df..272914d 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -119,54 +119,32 @@ url: '/pages/login/login' }) }, - // 是否签约 - parentinfo() { - this.$refs.uToast.show({ - title: '未签约,请先签约', - type: 'error', - duration: '1000', - // url: '/pages/login/login' + // 签约信息 + detailinfo(url1, url2) { + detail(this.identity, this.region).then(res => { + if (res.code == 500) { + this.$refs.uToast.show({ + title: '未签约,请先签约', + type: 'error', + duration: '1000', + url: url1 + }) + } else { + uni.navigateTo({ + url: url2 + }) + } }) }, - // 签约信息 - // detailinfo(){ - // detail(this.identity,this.region).then(res => { - // this.Code=res.code - // if(this.Code==500){ - // this.$refs.uToast.show({ - // title: res.msg, - // type: 'error', - // duration: '1000', - // // url: '/pages/login/login' - // }) - - // } - - // }) - - // }, // 家医签约 goonline() { uni.navigateTo({ - url: '/pagesC/Signingagency/Signingagency' + url: '/pagesC/Onlinesigning/Onlinesigning' }) if (!this.userinfo && !this.identity) { // this.gologin(); } else { - detail(this.identity, this.region).then(res => { - if (res.code == 500) { - this.$refs.uToast.show({ - title: '未签约,请先签约', - type: 'error', - duration: '1000', - url: '/pagesC/Signingagency/Signingagency' - }) - } else { - uni.navigateTo({ - url: '/pagesB/mysigning/mysigning' - }) - } - }) + this.detailinfo('/pagesC/Onlinesigning/Onlinesignin', '/pagesB/mysigning/mysigning') } }, // 积分兑换 @@ -174,22 +152,7 @@ if (!this.userinfo && !this.identity) { this.gologin(); } else { - detail(this.identity, this.region).then(res => { - this.Code = res.code - if (this.Code == 500) { - this.$refs.uToast.show({ - title: '未签约,请先签约', - type: 'error', - duration: '1000', - - }) - - } else { - uni.navigateTo({ - url: '' - }) - } - }) + this.detailinfo('', '') } }, // 健康档案 @@ -197,6 +160,7 @@ if (!this.userinfo && !this.identity) { this.gologin(); } else { + // this.detailinfo('', '') uni.navigateTo({ url: '/pagesC/Healthrecords/Healthrecords' }) @@ -207,6 +171,7 @@ if (!this.userinfo && !this.identity) { this.gologin(); } else { + // this.detailinfo('', '') uni.navigateTo({ url: '/pagesC/Screeningrecords/Screeningrecords' }) @@ -217,6 +182,7 @@ if (!this.userinfo && !this.identity) { this.gologin(); } else { + // this.detailinfo('', '') uni.navigateTo({ url: '/pagesC/healthtest/healthtest' }) @@ -227,6 +193,7 @@ if (!this.userinfo && !this.identity) { this.gologin(); } else { + // this.detailinfo('', '') uni.navigateTo({ url: '/pagesC/Physicalexamination/Physicalexamination' }) @@ -237,20 +204,7 @@ if (!this.userinfo && !this.identity) { this.gologin(); } else { - detail(this.identity, this.region).then(res => { - this.Code = res.code - if (this.Code == 500) { - this.$refs.uToast.show({ - title: '未签约,请先签约', - type: 'error', - duration: '1000', - }) - } else { - uni.navigateTo({ - url: '/pagesC/ServiceAppointment/ServiceAppointment' - }) - } - }) + this.detailinfo('', '/pagesC/ServiceAppointment/ServiceAppointment') } }, // 服务记录 @@ -258,38 +212,23 @@ if (!this.userinfo && !this.identity) { this.gologin(); } else { + // this.detailinfo('', '') uni.navigateTo({ url: '/pagesC/servicerecord/servicerecord' }) - } - }, // 我的预约 myappointment() { if (!this.userinfo && !this.identity) { this.gologin(); } else { + // this.detailinfo('', '') uni.navigateTo({ url: '/pagesC/Myappointment/Myappointment' }) - } - }, - // login() { - // const _this = this - // uni.login({ - // success(res) { - // getOpenId(res.code).then(Res => { - // if (Res.code == 200) { - // _this.isWxBing(Res.msg, '1') - // } - // }) - // } - // }) - // }, - } } diff --git a/pagesC/Signingagency/Signingagency.vue b/pagesC/Signingagency/Signingagency.vue index 5a94750..fb0b037 100644 --- a/pagesC/Signingagency/Signingagency.vue +++ b/pagesC/Signingagency/Signingagency.vue @@ -1,7 +1,8 @@