feat : 增加部分语音提示

This commit is contained in:
2025-12-23 09:51:14 +08:00
parent ffcf34fb10
commit 8494210a5d
2 changed files with 9 additions and 2 deletions

View File

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