From 8494210a5d953efb03e20d67442829727254a0b1 Mon Sep 17 00:00:00 2001 From: xiebing Date: Tue, 23 Dec 2025 09:51:14 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E5=A2=9E=E5=8A=A0=E9=83=A8=E5=88=86?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageA/pages/UnitDetails/UnitDetails.vue | 5 +++++ packageA/pages/exhibitors/exhibitors.vue | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packageA/pages/UnitDetails/UnitDetails.vue b/packageA/pages/UnitDetails/UnitDetails.vue index 9afccd1..04b4cff 100644 --- a/packageA/pages/UnitDetails/UnitDetails.vue +++ b/packageA/pages/UnitDetails/UnitDetails.vue @@ -80,6 +80,7 @@ import useUserStore from '@/stores/useUserStore'; import useLocationStore from '@/stores/useLocationStore'; const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore()); const { $api, navTo, vacanciesTo, navBack } = inject('globalFunction'); +import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one'; const isExpanded = ref(false); const pageState = reactive({ @@ -119,11 +120,13 @@ function companyCollection() { $api.createRequest(`/app/company/collection/${id}/2`, {}, 'DELETE').then((resData) => { getCompanyInfo(companyId, zphId); $api.msg('取消收藏成功'); + playTextDirectly('取消收藏成功'); }); } else { $api.createRequest(`/app/company/collection/${id}/2`, {}, 'POST').then((resData) => { getCompanyInfo(companyId, zphId); $api.msg('收藏成功'); + playTextDirectly('收藏成功'); }); } } else { @@ -133,11 +136,13 @@ function companyCollection() { $api.createRequest(`/app/company/collection/${companyId}/1`, {}, 'DELETE').then((resData) => { getCompanyInfo(companyId); $api.msg('取消收藏成功'); + playTextDirectly('取消收藏成功'); }); } else { $api.createRequest(`/app/company/collection/${companyId}/1`, {}, 'POST').then((resData) => { getCompanyInfo(companyId); $api.msg('收藏成功'); + playTextDirectly('收藏成功'); }); } } diff --git a/packageA/pages/exhibitors/exhibitors.vue b/packageA/pages/exhibitors/exhibitors.vue index c1c9514..ac2aa08 100644 --- a/packageA/pages/exhibitors/exhibitors.vue +++ b/packageA/pages/exhibitors/exhibitors.vue @@ -112,6 +112,7 @@ import { storeToRefs } from 'pinia'; const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore()); import useUserStore from '@/stores/useUserStore'; const { isMiniProgram } = storeToRefs(useUserStore()); +import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one'; const isExpanded = ref(false); const fairInfo = ref({}); @@ -201,19 +202,20 @@ function expand() { isExpanded.value = !isExpanded.value; } -// 取消/收藏岗位 +// 取消/预约招聘会 function applyExhibitors() { const fairId = fairInfo.value.zphID; if (fairInfo.value.isCollection) { $api.createRequest(`/app/fair/collection/${fairId}`, {}, 'DELETE').then((resData) => { getJobFairInfo(fairId); $api.msg('取消预约成功'); + playTextDirectly('取消预约成功') }); - $api.msg('已预约成功'); } else { $api.createRequest(`/app/fair/collection/${fairId}`, {}, 'POST').then((resData) => { getJobFairInfo(fairId); $api.msg('预约成功'); + playTextDirectly('预约成功') }); } }