This commit is contained in:
2023-10-10 15:37:25 +08:00
parent 21cf4c9e5d
commit c53dcdb373
2 changed files with 37 additions and 97 deletions

View File

@ -119,54 +119,32 @@
url: '/pages/login/login' url: '/pages/login/login'
}) })
}, },
//
parentinfo() {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
// url: '/pages/login/login'
})
},
// //
// detailinfo(){ detailinfo(url1, url2) {
// 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'
})
if (!this.userinfo && !this.identity) {
// this.gologin();
} else {
detail(this.identity, this.region).then(res => { detail(this.identity, this.region).then(res => {
if (res.code == 500) { if (res.code == 500) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '未签约,请先签约', title: '未签约,请先签约',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
url: '/pagesC/Signingagency/Signingagency' url: url1
}) })
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/mysigning/mysigning' url: url2
}) })
} }
}) })
},
//
goonline() {
uni.navigateTo({
url: '/pagesC/Onlinesigning/Onlinesigning'
})
if (!this.userinfo && !this.identity) {
// this.gologin();
} else {
this.detailinfo('/pagesC/Onlinesigning/Onlinesignin', '/pagesB/mysigning/mysigning')
} }
}, },
// //
@ -174,22 +152,7 @@
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
detail(this.identity, this.region).then(res => { this.detailinfo('', '')
this.Code = res.code
if (this.Code == 500) {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
})
} else {
uni.navigateTo({
url: ''
})
}
})
} }
}, },
// //
@ -197,6 +160,7 @@
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
// this.detailinfo('', '')
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/Healthrecords/Healthrecords' url: '/pagesC/Healthrecords/Healthrecords'
}) })
@ -207,6 +171,7 @@
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
// this.detailinfo('', '')
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/Screeningrecords/Screeningrecords' url: '/pagesC/Screeningrecords/Screeningrecords'
}) })
@ -217,6 +182,7 @@
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
// this.detailinfo('', '')
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/healthtest/healthtest' url: '/pagesC/healthtest/healthtest'
}) })
@ -227,6 +193,7 @@
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
// this.detailinfo('', '')
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/Physicalexamination/Physicalexamination' url: '/pagesC/Physicalexamination/Physicalexamination'
}) })
@ -237,20 +204,7 @@
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
detail(this.identity, this.region).then(res => { this.detailinfo('', '/pagesC/ServiceAppointment/ServiceAppointment')
this.Code = res.code
if (this.Code == 500) {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
})
} else {
uni.navigateTo({
url: '/pagesC/ServiceAppointment/ServiceAppointment'
})
}
})
} }
}, },
// //
@ -258,38 +212,23 @@
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
// this.detailinfo('', '')
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/servicerecord/servicerecord' url: '/pagesC/servicerecord/servicerecord'
}) })
} }
}, },
// //
myappointment() { myappointment() {
if (!this.userinfo && !this.identity) { if (!this.userinfo && !this.identity) {
this.gologin(); this.gologin();
} else { } else {
// this.detailinfo('', '')
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/Myappointment/Myappointment' 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')
// }
// })
// }
// })
// },
} }
} }
</script> </script>

View File

@ -1,7 +1,8 @@
<template> <template>
<view class="app"> <view class="app">
<view class="content"> <view class="content">
<view class="numberone">1 <view class="numberone">
1
<view class="information"> <view class="information">
填写个人信息 填写个人信息
</view> </view>