添加部分语音提示
This commit is contained in:
@@ -76,6 +76,9 @@ import { storeToRefs } from 'pinia';
|
|||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
const { getUserResume } = useUserStore();
|
const { getUserResume } = useUserStore();
|
||||||
const { userInfo, isMiniProgram ,hasLogin,isMachineEnv} = storeToRefs(useUserStore());
|
const { userInfo, isMiniProgram ,hasLogin,isMachineEnv} = storeToRefs(useUserStore());
|
||||||
|
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
|
||||||
|
|
||||||
|
|
||||||
const popup = ref(null);
|
const popup = ref(null);
|
||||||
const selectJobsModel = ref(null);
|
const selectJobsModel = ref(null);
|
||||||
|
|
||||||
@@ -122,6 +125,7 @@ function confirm() {
|
|||||||
if (result.hasDuplicate) {
|
if (result.hasDuplicate) {
|
||||||
popup.value.close();
|
popup.value.close();
|
||||||
$api.msg('期望岗位已重复');
|
$api.msg('期望岗位已重复');
|
||||||
|
playTextDirectly('期望岗位已重复')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
complete({ jobTitleId: result.deduplicated });
|
complete({ jobTitleId: result.deduplicated });
|
||||||
@@ -175,14 +179,17 @@ function handelChangeInpute(e) {
|
|||||||
function handelClickItem(item) {
|
function handelClickItem(item) {
|
||||||
dataItem.value = item;
|
dataItem.value = item;
|
||||||
popup.value.open();
|
popup.value.open();
|
||||||
|
playTextDirectly('确添加该期望岗位吗?')
|
||||||
}
|
}
|
||||||
|
|
||||||
function complete(values) {
|
function complete(values) {
|
||||||
if (!values.jobTitleId.length) {
|
if (!values.jobTitleId.length) {
|
||||||
|
playTextDirectly('至少添加一份期望岗位?')
|
||||||
return $api.msg('至少添加一份期望岗位');
|
return $api.msg('至少添加一份期望岗位');
|
||||||
}
|
}
|
||||||
$api.createRequest('/app/user/resume', values, 'post').then((resData) => {
|
$api.createRequest('/app/user/resume', values, 'post').then((resData) => {
|
||||||
$api.msg('完成');
|
$api.msg('操作成功');
|
||||||
|
playTextDirectly('操作成功')
|
||||||
getUserResume();
|
getUserResume();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ import useLocationStore from '@/stores/useLocationStore';
|
|||||||
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
const { isMiniProgram } = storeToRefs(useUserStore());
|
const { isMiniProgram } = storeToRefs(useUserStore());
|
||||||
|
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
|
||||||
|
|
||||||
|
|
||||||
// state
|
// state
|
||||||
const title = ref('事业单位');
|
const title = ref('事业单位');
|
||||||
const cardInfo = ref({});
|
const cardInfo = ref({});
|
||||||
@@ -66,6 +69,7 @@ onLoad(() => {
|
|||||||
|
|
||||||
// search
|
// search
|
||||||
function searchCollection(e) {
|
function searchCollection(e) {
|
||||||
|
playTextDirectly('正在为您查找…')
|
||||||
const value = e.detail.value;
|
const value = e.detail.value;
|
||||||
pageState.search.companyName = value;
|
pageState.search.companyName = value;
|
||||||
getDataList('refresh');
|
getDataList('refresh');
|
||||||
|
|||||||
@@ -98,6 +98,9 @@ import img from '@/static/icon/filter.png';
|
|||||||
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
const { isMiniProgram } = storeToRefs(useUserStore());
|
const { isMiniProgram } = storeToRefs(useUserStore());
|
||||||
|
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
|
||||||
|
|
||||||
|
|
||||||
const searchValue = ref('');
|
const searchValue = ref('');
|
||||||
const historyList = ref([]);
|
const historyList = ref([]);
|
||||||
const listCom = ref([]);
|
const listCom = ref([]);
|
||||||
@@ -188,6 +191,7 @@ function searchBtn() {
|
|||||||
if (!searchValue.value) {
|
if (!searchValue.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
playTextDirectly('正在为您查找岗位')
|
||||||
historyList.value.unshift(searchValue.value);
|
historyList.value.unshift(searchValue.value);
|
||||||
historyList.value = unique(historyList.value);
|
historyList.value = unique(historyList.value);
|
||||||
uni.setStorageSync('searchList', historyList.value);
|
uni.setStorageSync('searchList', historyList.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user