fix:问题修复

This commit is contained in:
huxuejian 2026-09-04 09:55:37 +08:00
parent 9b9c679283
commit d030c1dec9
2 changed files with 3 additions and 6 deletions

View File

@ -167,7 +167,7 @@ async function scanInsuranceCode() {
url: `/pages/member/detail?type=ybQrcode&feeType=${feeType.value}`, url: `/pages/member/detail?type=ybQrcode&feeType=${feeType.value}`,
}); });
} catch (error) { } catch (error) {
console.log('eeeee: ',error) console.log('eeeee: ', error)
} }
scanning.value = false; scanning.value = false;
} }
@ -184,10 +184,8 @@ async function nextStep() {
const psnToken = await ybPlugin.getArchiveToken(authCode); const psnToken = await ybPlugin.getArchiveToken(authCode);
if (psnToken) { if (psnToken) {
hisArchive = await bindInsurance(psnToken, currentProfile.value.certNo, currentProfile.value.name, currentProfile.value.mobile); hisArchive = await bindInsurance(psnToken, currentProfile.value.certNo, currentProfile.value.name, currentProfile.value.mobile);
} else {
toast('获取医保授权失败');
return;
} }
return;
} else { } else {
const { success, data, message } = await createSelfAuthRequest( const { success, data, message } = await createSelfAuthRequest(
currentProfile.value._id, currentProfile.value._id,

View File

@ -1,6 +1,5 @@
import { toast } from './widget'; import { toast } from './widget';
import userStore from '@/store/user'; import userStore from '@/store/user';
import dayjs from 'dayjs';
// #ifdef MP // #ifdef MP
const authPayPlugin = requirePlugin('auth-pay-plugin'); const authPayPlugin = requirePlugin('auth-pay-plugin');