删除部分代码
This commit is contained in:
@@ -61,42 +61,6 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 企业用户内容 -->
|
||||
<!-- <view class="company-content" v-if="shouldShowCompanyContent">
|
||||
<view class="company-header">
|
||||
<text class="company-title">企业服务</text>
|
||||
<text class="company-subtitle">为您提供专业的企业招聘服务</text>
|
||||
</view>
|
||||
|
||||
<view class="company-grid">
|
||||
<view class="company-item press-button" @click="navTo('/pages/job/publishJob')">
|
||||
<view class="company-icon company-icon-1">
|
||||
<uni-icons type="plus-filled" size="32" color="#FFFFFF"></uni-icons>
|
||||
</view>
|
||||
<view class="company-title">发布岗位</view>
|
||||
</view>
|
||||
<view class="company-item press-button" @click="handleServiceClick('company-management')">
|
||||
<view class="company-icon company-icon-2">
|
||||
<uni-icons type="settings-filled" size="32" color="#FFFFFF"></uni-icons>
|
||||
</view>
|
||||
<view class="company-title">企业管理</view>
|
||||
</view>
|
||||
<view class="company-item press-button" @click="handleServiceClick('recruitment-data')">
|
||||
<view class="company-icon company-icon-3">
|
||||
<uni-icons type="bar-chart-filled" size="32" color="#FFFFFF"></uni-icons>
|
||||
</view>
|
||||
<view class="company-title">招聘数据</view>
|
||||
</view>
|
||||
<view class="company-item press-button" @click="handleServiceClick('talent-pool')">
|
||||
<view class="company-icon company-icon-4">
|
||||
<uni-icons type="person-filled" size="32" color="#FFFFFF"></uni-icons>
|
||||
</view>
|
||||
<view class="company-title">人才库</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 吸顶筛选区域占位 -->
|
||||
<view
|
||||
class="filter-placeholder"
|
||||
@@ -259,10 +223,6 @@
|
||||
{{ job.companyName }}
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="falls-card-matchingrate">
|
||||
<view class=""><matchingDegree :job="job"></matchingDegree></view>
|
||||
<uni-icons type="star" size="30"></uni-icons>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" :class="{ isBut: job.isBut }" v-else>
|
||||
@@ -529,10 +489,8 @@ import {
|
||||
useRecommedIndexedDBStore,
|
||||
jobRecommender,
|
||||
} from "@/stores/useRecommedIndexedDBStore.js";
|
||||
import { useScrollDirection } from "@/hook/useScrollDirection";
|
||||
import { useColumnCount } from "@/hook/useColumnCount";
|
||||
import WxAuthLogin from "@/components/WxAuthLogin/WxAuthLogin.vue";
|
||||
import IconfontIcon from "@/components/IconfontIcon/IconfontIcon.vue";
|
||||
// 企业卡片组件已内联到模板中
|
||||
// 滚动状态管理
|
||||
const shouldHideTop = ref(false);
|
||||
@@ -728,58 +686,6 @@ const handleLoginSuccess = () => {
|
||||
getCompanyInfo();
|
||||
};
|
||||
|
||||
// 处理附近工作点击
|
||||
const handleNearbyClick = () => {
|
||||
if (checkLogin()) {
|
||||
navTo("/pages/nearby/nearby");
|
||||
}
|
||||
};
|
||||
|
||||
// 处理服务功能点击
|
||||
const handleServiceClick = (serviceType) => {
|
||||
if (checkLogin()) {
|
||||
navToService(serviceType);
|
||||
}
|
||||
};
|
||||
|
||||
// 处理直播按钮点击 - 跳转微信视频号
|
||||
const handleLiveClick = () => {
|
||||
// #ifdef MP-WEIXIN
|
||||
const feedId = "sphKH1AEeLfTJJE";
|
||||
|
||||
// 使用微信原生 API 打开视频号直播
|
||||
if (typeof wx !== "undefined" && wx.openChannelsUserProfile) {
|
||||
wx.openChannelsUserProfile({
|
||||
// feedId: feedId,
|
||||
finderUserName: feedId, // 视频号 finderUserName,如果feedId足够可以留空
|
||||
success: (res) => {
|
||||
console.log("打开视频号成功", res);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error("打开视频号失败", err);
|
||||
$api.msg(err.errMsg || "无法打开直播,请稍后重试");
|
||||
},
|
||||
});
|
||||
} else {
|
||||
// 如果 API 不存在,尝试使用 uni API
|
||||
uni.openChannelsLive({
|
||||
feedId: feedId,
|
||||
success: (res) => {
|
||||
console.log("打开视频号成功", res);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error("打开视频号失败", err);
|
||||
$api.msg("无法打开直播,请检查微信版本或稍后重试");
|
||||
},
|
||||
});
|
||||
}
|
||||
// #endif
|
||||
|
||||
// #ifndef MP-WEIXIN
|
||||
// 非微信小程序环境提示
|
||||
$api.msg("该功能仅在微信小程序中可用");
|
||||
// #endif
|
||||
};
|
||||
|
||||
|
||||
async function loadData() {
|
||||
@@ -867,36 +773,6 @@ function nextDetail(job) {
|
||||
}
|
||||
}
|
||||
|
||||
function navToService(serviceType) {
|
||||
// 根据服务类型跳转到不同页面
|
||||
const serviceRoutes = {
|
||||
"service-guidance": "/pages/service/guidance",
|
||||
"public-recruitment": "/pages/service/public-recruitment",
|
||||
"resume-creation": "/packageA/pages/myResume/myResume",
|
||||
"labor-policy": "/pages/service/labor-policy",
|
||||
"skill-training": "/pages/service/skill-training",
|
||||
// 'skill-evaluation': '/pages/service/skill-evaluation',
|
||||
"question-bank": "/pages/service/question-bank",
|
||||
"quality-assessment": "/pages/service/quality-assessment",
|
||||
"ai-interview": "/pages/chat/chat",
|
||||
"job-search": "/pages/search/search",
|
||||
"career-planning": "/pages/service/career-planning",
|
||||
"salary-query": "/pages/service/salary-query",
|
||||
"company-info": "/pages/service/company-info",
|
||||
"interview-tips": "/pages/service/interview-tips",
|
||||
"employment-news": "/pages/service/employment-news",
|
||||
"more-services": "/pages/service/more-services",
|
||||
"skill-evaluation": "/packageB/train/index",
|
||||
};
|
||||
|
||||
const route = serviceRoutes[serviceType];
|
||||
if (route) {
|
||||
navTo(route);
|
||||
} else {
|
||||
$api.msg("功能开发中,敬请期待");
|
||||
}
|
||||
}
|
||||
|
||||
function openFilter() {
|
||||
isInteractingWithFilter.value = true;
|
||||
showFilter.value = true;
|
||||
@@ -1118,15 +994,6 @@ function goRc() {
|
||||
}
|
||||
}
|
||||
}
|
||||
// 跳转素质测评页面(在线测评,职业库,职业生涯规划)
|
||||
function goCa() {
|
||||
if (checkLogin()) {
|
||||
const userInfo = uni.getStorageSync("userInfo");
|
||||
navTo(
|
||||
`/packageCa/search/search?userId=${userInfo.userId}&name=${userInfo.name}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
defineExpose({ loadData });
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user