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('预约成功') }); } }