首页-人工只能专区,招聘会-VR,我的-AI面试, 一体机模式下提示暂未开放
This commit is contained in:
@@ -113,6 +113,8 @@ import useLocationStore from '@/stores/useLocationStore';
|
|||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
||||||
|
import useUserStore from '@/stores/useUserStore';
|
||||||
|
const { isMachineEnv } = storeToRefs(useUserStore());
|
||||||
const { $api, navTo, cloneDeep, debounce } = inject('globalFunction');
|
const { $api, navTo, cloneDeep, debounce } = inject('globalFunction');
|
||||||
import useScreenStore from '@/stores/useScreenStore'
|
import useScreenStore from '@/stores/useScreenStore'
|
||||||
|
|
||||||
@@ -194,8 +196,8 @@ function changeSwiperMsgType(e) {
|
|||||||
|
|
||||||
function seemsg(index) {
|
function seemsg(index) {
|
||||||
if (index === 1) {
|
if (index === 1) {
|
||||||
|
if(isMachineEnv.value) return $api.msg('暂未开放');
|
||||||
handleItemClick();
|
handleItemClick();
|
||||||
// $api.msg('功能确定中');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state.current = index;
|
state.current = index;
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ const { $api, navTo, vacanciesTo, formatTotal, throttle } = inject('globalFuncti
|
|||||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
const { userInfo, hasLogin } = storeToRefs(useUserStore());
|
const { userInfo, hasLogin ,isMachineEnv} = storeToRefs(useUserStore());
|
||||||
import useDictStore from '@/stores/useDictStore';
|
import useDictStore from '@/stores/useDictStore';
|
||||||
const { getTransformChildren, oneDictData } = useDictStore();
|
const { getTransformChildren, oneDictData } = useDictStore();
|
||||||
import useLocationStore from '@/stores/useLocationStore';
|
import useLocationStore from '@/stores/useLocationStore';
|
||||||
@@ -272,6 +272,7 @@ const recommedIndexDb = useRecommedIndexedDBStore();
|
|||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import AIMatch from './AIMatch.vue';
|
import AIMatch from './AIMatch.vue';
|
||||||
|
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
const maskFirstEntry = ref(true);
|
const maskFirstEntry = ref(true);
|
||||||
@@ -424,6 +425,7 @@ const handleTagClick = (tagInfo) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleItemClick = (item) => {
|
const handleItemClick = (item) => {
|
||||||
|
if(isMachineEnv.value) return $api.msg('暂未开放');
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case '素质测评':
|
case '素质测评':
|
||||||
lightAppJssdk.navigation.hide({
|
lightAppJssdk.navigation.hide({
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ const handleItemClick = (item) => {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case '模拟面试':
|
case '模拟面试':
|
||||||
|
if(isMachineEnv.value) return $api.msg('暂未开放');
|
||||||
lightAppJssdk.navigation.hide({
|
lightAppJssdk.navigation.hide({
|
||||||
url: config.mock_interview,
|
url: config.mock_interview,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user