分包问题处理
This commit is contained in:
@@ -63,7 +63,7 @@ const generateTabbarList = () => {
|
|||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
text: '',
|
text: '',
|
||||||
path: '/pages/chat/chat',
|
path: '/packageA/pages/chat/chat',
|
||||||
iconPath: '/static/tabbar/robot2.png',
|
iconPath: '/static/tabbar/robot2.png',
|
||||||
selectedIconPath: '/static/tabbar/robot2.png',
|
selectedIconPath: '/static/tabbar/robot2.png',
|
||||||
centerItem: true,
|
centerItem: true,
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const generateTabbarList = () => {
|
|||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
text: 'AI+',
|
text: 'AI+',
|
||||||
path: '/pages/chat/chat',
|
path: '/packageA/pages/chat/chat',
|
||||||
iconPath: '../../static/tabbar/logo3.png',
|
iconPath: '../../static/tabbar/logo3.png',
|
||||||
selectedIconPath: '../../static/tabbar/logo3.png',
|
selectedIconPath: '../../static/tabbar/logo3.png',
|
||||||
centerItem: true,
|
centerItem: true,
|
||||||
@@ -148,7 +148,7 @@ const changeItem = (item) => {
|
|||||||
const tabBarPages = [
|
const tabBarPages = [
|
||||||
'/pages/index/index',
|
'/pages/index/index',
|
||||||
'/pages/careerfair/careerfair',
|
'/pages/careerfair/careerfair',
|
||||||
'/pages/chat/chat',
|
'/packageA/pages/chat/chat',
|
||||||
'/pages/msglog/msglog',
|
'/pages/msglog/msglog',
|
||||||
'/pages/mine/mine'
|
'/pages/mine/mine'
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -878,7 +878,7 @@ function navToService(serviceType) {
|
|||||||
// 'skill-evaluation': '/pages/service/skill-evaluation',
|
// 'skill-evaluation': '/pages/service/skill-evaluation',
|
||||||
"question-bank": "/pages/service/question-bank",
|
"question-bank": "/pages/service/question-bank",
|
||||||
"quality-assessment": "/pages/service/quality-assessment",
|
"quality-assessment": "/pages/service/quality-assessment",
|
||||||
"ai-interview": "/pages/chat/chat",
|
"ai-interview": "/packageA/pages/chat/chat",
|
||||||
"job-search": "/pages/search/search",
|
"job-search": "/pages/search/search",
|
||||||
"career-planning": "/pages/service/career-planning",
|
"career-planning": "/pages/service/career-planning",
|
||||||
"salary-query": "/pages/service/salary-query",
|
"salary-query": "/pages/service/salary-query",
|
||||||
|
|||||||
18
pages.json
18
pages.json
@@ -36,15 +36,6 @@
|
|||||||
"navigationBarTitleText": "搜索职位"
|
"navigationBarTitleText": "搜索职位"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/chat/chat",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "智能客服",
|
|
||||||
"navigationBarBackgroundColor": "#4778EC",
|
|
||||||
"navigationBarTextStyle": "white",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/service/career-planning",
|
"path": "pages/service/career-planning",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -331,6 +322,15 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "隐私政策"
|
"navigationBarTitleText": "隐私政策"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/chat/chat",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "智能客服",
|
||||||
|
"navigationBarBackgroundColor": "#4778EC",
|
||||||
|
"navigationBarTextStyle": "white",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -305,7 +305,7 @@
|
|||||||
>
|
>
|
||||||
<view v-for="(job, index) in list" :key="index" :slot="`slot${index}`">
|
<view v-for="(job, index) in list" :key="index" :slot="`slot${index}`">
|
||||||
<view class="item btn-feel" v-if="!job.recommend">
|
<view class="item btn-feel" v-if="!job.recommend">
|
||||||
<view class="falls-card" :class="{ 'disabled-card': job.jobStatus === 1 }" @click="nextDetail(job)">
|
<view class="falls-card" :class="{ 'disabled-card': Number(job.jobStatus) === 1 }" @click="nextDetail(job)">
|
||||||
<view class="falls-card-pay">
|
<view class="falls-card-pay">
|
||||||
<view class="pay-text">
|
<view class="pay-text">
|
||||||
<Salary-Expectation
|
<Salary-Expectation
|
||||||
@@ -353,11 +353,11 @@
|
|||||||
<!-- 招聘者显示上下架开关 -->
|
<!-- 招聘者显示上下架开关 -->
|
||||||
<view class="falls-card-actions" v-if="isRecruiter">
|
<view class="falls-card-actions" v-if="isRecruiter">
|
||||||
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
||||||
<view class="switch-track" :class="{ 'active': job.jobStatus === 0 }">
|
<view class="switch-track" :class="{ 'active': Number(job.jobStatus) === 0 }">
|
||||||
<view class="switch-thumb" :class="{ 'active': job.jobStatus === 0 }"></view>
|
<view class="switch-thumb" :class="{ 'active': Number(job.jobStatus) === 0 }"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="switch-label">
|
<view class="switch-label">
|
||||||
{{ job.jobStatus === 0 ? '已上架' : '已下架' }}
|
{{ Number(job.jobStatus) === 0 ? '已上架' : '已下架' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -393,7 +393,7 @@
|
|||||||
>
|
>
|
||||||
<template v-slot:default="job">
|
<template v-slot:default="job">
|
||||||
<view class="item btn-feel" v-if="!job.recommend">
|
<view class="item btn-feel" v-if="!job.recommend">
|
||||||
<view class="falls-card" :class="{ 'disabled-card': job.jobStatus === 1 }" @click="nextDetail(job)">
|
<view class="falls-card" :class="{ 'disabled-card': Number(job.jobStatus) === 1 }" @click="nextDetail(job)">
|
||||||
<view class="falls-card-pay">
|
<view class="falls-card-pay">
|
||||||
<view class="pay-text">
|
<view class="pay-text">
|
||||||
<Salary-Expectation
|
<Salary-Expectation
|
||||||
@@ -441,11 +441,11 @@
|
|||||||
<!-- 招聘者显示上下架开关 -->
|
<!-- 招聘者显示上下架开关 -->
|
||||||
<view class="falls-card-actions" v-if="isRecruiter">
|
<view class="falls-card-actions" v-if="isRecruiter">
|
||||||
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
||||||
<view class="switch-track" :class="{ 'active': job.jobStatus === 0 }">
|
<view class="switch-track" :class="{ 'active': Number(job.jobStatus) === 0 }">
|
||||||
<view class="switch-thumb" :class="{ 'active': job.jobStatus === 0 }"></view>
|
<view class="switch-thumb" :class="{ 'active': Number(job.jobStatus) === 0 }"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="switch-label">
|
<view class="switch-label">
|
||||||
{{ job.jobStatus === 0 ? '已上架' : '已下架' }}
|
{{ Number(job.jobStatus) === 0 ? '已上架' : '已下架' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -1065,7 +1065,7 @@ function navToService(serviceType) {
|
|||||||
// 'skill-evaluation': '/pages/service/skill-evaluation',
|
// 'skill-evaluation': '/pages/service/skill-evaluation',
|
||||||
'question-bank': '/pages/service/question-bank',
|
'question-bank': '/pages/service/question-bank',
|
||||||
// 'quality-assessment': '/packageCa/search/search',
|
// 'quality-assessment': '/packageCa/search/search',
|
||||||
// 'ai-interview': '/pages/chat/chat',
|
// 'ai-interview': '/packageA/pages/chat/chat',
|
||||||
'job-search': '/pages/search/search',
|
'job-search': '/pages/search/search',
|
||||||
'career-planning': '/pages/service/career-planning',
|
'career-planning': '/pages/service/career-planning',
|
||||||
'salary-query': '/pages/service/salary-query',
|
'salary-query': '/pages/service/salary-query',
|
||||||
@@ -1357,7 +1357,7 @@ const toggleJobStatus = (job) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 根据当前状态决定调用哪个接口
|
// 根据当前状态决定调用哪个接口
|
||||||
const isCurrentlyUp = job.jobStatus === 0; // 0: 已上架, 1: 已下架
|
const isCurrentlyUp = Number(job.jobStatus) === 0; // 0: 已上架, 1: 已下架
|
||||||
const apiUrl = isCurrentlyUp ? `/app/job/jobDown/${job.jobId}` : `/app/job/jobUp/${job.jobId}`;
|
const apiUrl = isCurrentlyUp ? `/app/job/jobDown/${job.jobId}` : `/app/job/jobUp/${job.jobId}`;
|
||||||
|
|
||||||
$api.createRequest(apiUrl, {}, 'PUT', true).then((res) => {
|
$api.createRequest(apiUrl, {}, 'PUT', true).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user