diff --git a/pages/consult/index.vue b/pages/consult/index.vue index f907270..c346359 100644 --- a/pages/consult/index.vue +++ b/pages/consult/index.vue @@ -166,8 +166,8 @@ async function scanInsuranceCode() { uni.navigateTo({ url: `/pages/member/detail?type=ybQrcode&feeType=${feeType.value}`, }); - } catch (error) { - console.log('eeeee: ',error) + } catch (error) { + console.log('eeeee: ', error) } scanning.value = false; } @@ -184,10 +184,8 @@ async function nextStep() { const psnToken = await ybPlugin.getArchiveToken(authCode); if (psnToken) { hisArchive = await bindInsurance(psnToken, currentProfile.value.certNo, currentProfile.value.name, currentProfile.value.mobile); - } else { - toast('获取医保授权失败'); - return; } + return; } else { const { success, data, message } = await createSelfAuthRequest( currentProfile.value._id, diff --git a/utils/insurance-plugin.js b/utils/insurance-plugin.js index ee4975a..4fe6415 100644 --- a/utils/insurance-plugin.js +++ b/utils/insurance-plugin.js @@ -1,6 +1,5 @@ import { toast } from './widget'; import userStore from '@/store/user'; -import dayjs from 'dayjs'; // #ifdef MP const authPayPlugin = requirePlugin('auth-pay-plugin');