Compare commits

...

6 Commits

6 changed files with 984 additions and 800 deletions

View File

@@ -9,6 +9,7 @@ import request from '@/utilsRc/request'
export function appUserInfo() { export function appUserInfo() {
return request({ return request({
url: '/app/user/appUserInfo', url: '/app/user/appUserInfo',
method: 'get' method: 'get',
baseUrlType: 'user' // 使用用户接口专用baseUrl
}) })
} }

View File

@@ -58,25 +58,53 @@
<view class="input-titile">手机号码</view> <view class="input-titile">手机号码</view>
<input class="input-con" v-model="fromValue.phone" placeholder="请输入您的手机号码" /> <input class="input-con" v-model="fromValue.phone" placeholder="请输入您的手机号码" />
</view> </view>
<view class="content-input" @click="changeSkillLevel"> <view class="content-skills">
<view class="input-titile">技能等级</view> <view class="skills-header">
<view class="input-titile">技能信息</view>
<view
class="add-skill-btn"
@click="addSkill"
:class="{ 'disabled': state.skills.length >= 3 }"
>
+ 添加技能
</view>
</view>
<view class="skills-list">
<view class="skill-item" v-for="(skill, index) in state.skills" :key="index">
<view class="skill-header">
<view class="skill-number">技能 {{ index + 1 }}</view>
<view class="skill-actions" v-if="state.skills.length > 1">
<view class="action-btn delete-btn" @click="removeSkill(index)">删除</view>
</view>
</view>
<view class="skill-fields">
<view class="skill-field" @click="changeSkillName(index)">
<view class="field-label">技能名称</view>
<input <input
class="input-con triangle" class="field-input triangle"
disabled disabled
v-model="state.skillLevelText" :value="skill.name"
placeholder="请选择您的技能等级" placeholder="请选择技能名称"
/> />
</view> </view>
<view class="content-input" @click="changeSkills">
<view class="input-titile">技能名称</view> <view class="skill-field" @click="changeSkillLevel(index)">
<view class="field-label">技能等级</view>
<input <input
class="input-con triangle" class="field-input triangle"
disabled disabled
v-if="!state.skillsText.length" :value="getSkillLevelText(skill.level)"
placeholder="请选择您的技能名称" placeholder="请选择技能等级"
/> />
<view class="input-nx" @click="changeSkills" v-else> </view>
<view class="nx-item" v-for="(item, index) in state.skillsText" :key="index">{{ item }}</view> </view>
</view>
<view class="empty-skills" v-if="state.skills.length === 0">
<text class="empty-text">暂无技能信息点击上方按钮添加</text>
</view>
</view> </view>
</view> </view>
</view> </view>
@@ -125,8 +153,8 @@ const percent = ref('0%');
const state = reactive({ const state = reactive({
educationText: '', educationText: '',
politicalAffiliationText: '', politicalAffiliationText: '',
skillsText: [], skills: [], // 新的技能数据结构
skillLevelText: '' currentEditingSkillIndex: -1 // 当前正在编辑的技能索引
}); });
const fromValue = reactive({ const fromValue = reactive({
name: '', name: '',
@@ -135,8 +163,7 @@ const fromValue = reactive({
education: '', education: '',
politicalAffiliation: '', politicalAffiliation: '',
idCard: '', idCard: '',
skills: '', phone: ''
skillLevel: ''
}); });
// 移除重复的onLoad定义已在上方实现 // 移除重复的onLoad定义已在上方实现
@@ -144,127 +171,12 @@ const fromValue = reactive({
onLoad(() => { onLoad(() => {
// 初始化页面数据 // 初始化页面数据
initLoad(); initLoad();
// initLoad执行完毕后尝试从appSkillsList获取和设置技能信息
// 使用setTimeout确保initLoad完全执行
setTimeout(() => {
try {
// 方式1直接从缓存获取appSkillsList
let appSkillsList = uni.getStorageSync('appSkillsList');
// 方式2如果缓存中没有尝试从用户信息中获取
if (!appSkillsList || !Array.isArray(appSkillsList) || appSkillsList.length === 0) {
const userInfo = uni.getStorageSync('userInfo');
if (userInfo && userInfo.appSkillsList) {
appSkillsList = userInfo.appSkillsList;
}
}
// 打印调试信息
console.log('获取到的appSkillsList:', appSkillsList);
// 处理技能信息回显
if (appSkillsList && Array.isArray(appSkillsList) && appSkillsList.length > 0) {
// 过滤掉name为空的技能项
const validSkills = appSkillsList.filter(item => item.name && item.name.trim() !== '');
console.log('过滤后的有效技能:', validSkills);
if (validSkills.length > 0) {
// 提取有效的技能名称数组
const skillNames = validSkills.map(item => item.name);
console.log('提取的技能名称数组:', skillNames);
// 确保fromValue.skills和state.skillsText的格式正确
fromValue.skills = skillNames.join(','); // 转换为逗号分隔的字符串
state.skillsText = skillNames; // 转换为数组格式
console.log('设置的fromValue.skills:', fromValue.skills);
console.log('设置的state.skillsText:', state.skillsText);
// 提取最后一个技能的等级
const lastSkill = validSkills[validSkills.length - 1];
const lastSkillLevel = lastSkill.levels;
console.log('最后一个技能等级:', lastSkillLevel);
if (lastSkillLevel) {
// 定义等级映射,用于兼容不同格式的等级值
const levelMap = {
'1': { value: '1', label: '初级' },
'2': { value: '2', label: '中级' },
'3': { value: '3', label: '高级' },
'初级': { value: '1', label: '初级' },
'中级': { value: '2', label: '中级' },
'高级': { value: '3', label: '高级' }
};
// 获取对应的等级信息
const levelInfo = levelMap[lastSkillLevel] || { value: '1', label: '初级' };
fromValue.skillLevel = levelInfo.value;
state.skillLevelText = levelInfo.label;
console.log('设置的技能等级:', levelInfo);
}
}
// 更新完成度百分比
const result = getFormCompletionPercent(fromValue);
percent.value = result;
console.log('更新完成度:', percent.value);
}
} catch (error) {
console.error('获取技能信息失败:', error);
}
}, 100); // 短暂延迟确保初始化完成
}); });
// 监听页面显示,接收从技能查询页面返回的数据 // 监听页面显示,接收从技能查询页面返回的数据
onShow(() => { onShow(() => {
// 通过事件总线接收技能选择结果 // 通过事件总线接收技能选择结果
uni.$on('skillSelected', handleSkillSelected); uni.$on('skillSelected', handleSkillSelected);
// 在页面显示时也再次尝试获取技能信息,确保数据最新
try {
// 优先尝试从用户信息中获取
const userInfo = uni.getStorageSync('userInfo');
let appSkillsList = userInfo && userInfo.appSkillsList ? userInfo.appSkillsList : uni.getStorageSync('appSkillsList');
// 只有在之前未设置或数据有更新时才重新设置
if (appSkillsList && Array.isArray(appSkillsList) && appSkillsList.length > 0) {
const validSkills = appSkillsList.filter(item => item.name && item.name.trim() !== '');
if (validSkills.length > 0) {
// 检查是否需要更新
const currentSkillsText = state.skillsText || '';
const newSkillNames = validSkills.map(item => item.name);
const newSkillsText = newSkillNames.join(', ');
// 如果技能名称或等级有变化,才更新
if (currentSkillsText !== newSkillsText || !fromValue.skillLevel) {
fromValue.skills = newSkillNames;
state.skillsText = newSkillsText;
const lastSkill = validSkills[validSkills.length - 1];
if (lastSkill.levels) {
const levelMap = {
'1': { value: '1', label: '初级' },
'2': { value: '2', label: '中级' },
'3': { value: '3', label: '高级' },
'初级': { value: '1', label: '初级' },
'中级': { value: '2', label: '中级' },
'高级': { value: '3', label: '高级' }
};
const levelInfo = levelMap[lastSkill.levels] || { value: '1', label: '初级' };
fromValue.skillLevel = levelInfo.value;
state.skillLevelText = levelInfo.label;
}
// 更新完成度
const result = getFormCompletionPercent(fromValue);
percent.value = result;
}
}
}
} catch (error) {
console.error('页面显示时获取技能信息失败:', error);
}
}); });
// 页面卸载时移除事件监听 // 页面卸载时移除事件监听
@@ -332,36 +244,21 @@ function initLoad() {
fromValue.politicalAffiliation = currentUserInfo.politicalAffiliation || ''; fromValue.politicalAffiliation = currentUserInfo.politicalAffiliation || '';
fromValue.idCard = currentUserInfo.idCard || ''; fromValue.idCard = currentUserInfo.idCard || '';
// 初始化技能数据 // 初始化技能数据 - 从appSkillsList获取
if (currentUserInfo.skills) { if (currentUserInfo.appSkillsList && Array.isArray(currentUserInfo.appSkillsList)) {
fromValue.skills = currentUserInfo.skills; // 过滤掉name为空的技能项
// 将技能字符串分割成数组用于显示 const validSkills = currentUserInfo.appSkillsList.filter(item => item.name && item.name.trim() !== '');
state.skillsText = currentUserInfo.skills.split(','); if (validSkills.length > 0) {
// 将appSkillsList转换为新的技能数据结构
state.skills = validSkills.map(skill => ({
name: skill.name,
level: skill.levels || ''
}));
} else { } else {
fromValue.skills = ''; state.skills = [];
state.skillsText = [];
}
// 初始化技能等级数据
if (currentUserInfo.skillLevel) {
fromValue.skillLevel = currentUserInfo.skillLevel;
// 根据skillLevel值设置对应的文本
switch(currentUserInfo.skillLevel) {
case '1':
state.skillLevelText = '初级';
break;
case '2':
state.skillLevelText = '中级';
break;
case '3':
state.skillLevelText = '高级';
break;
default:
state.skillLevelText = '';
} }
} else { } else {
fromValue.skillLevel = ''; state.skills = [];
state.skillLevelText = '';
} }
// 初始化学历显示文本(需要等待字典数据加载完成) // 初始化学历显示文本(需要等待字典数据加载完成)
@@ -452,17 +349,14 @@ const confirm = () => {
if (!checkingPhoneRegExp(fromValue.phone)) { if (!checkingPhoneRegExp(fromValue.phone)) {
return $api.msg('请输入正确手机号'); return $api.msg('请输入正确手机号');
} }
// 构建appSkillsList数据结构
let appSkillsList = []; // 构建appSkillsList数据结构 - 使用新的技能数据结构
if (state.skillsText && state.skillsText.length > 0) { const appSkillsList = state.skills
// 获取当前技能等级文本 .filter(skill => skill.name && skill.name.trim() !== '')
const currentLevelText = state.skillLevelText || ''; .map(skill => ({
// 为每个技能名称创建一个包含等级信息的对象 name: skill.name,
appSkillsList = state.skillsText.map(skillName => ({ levels: skill.level || ''
name: skillName,
levels: currentLevelText
})); }));
}
const params = { const params = {
...fromValue, ...fromValue,
@@ -478,31 +372,101 @@ const confirm = () => {
}); });
}; };
// 技能选择回调函数 // 添加技能
const handleSkillSelected = (skills) => { function addSkill() {
if (Array.isArray(skills) && skills.length > 0) { if (state.skills.length >= 3) {
// 更新技能显示和值技能字段值传name $api.msg('最多只能添加3个技能');
state.skillsText = skills; return;
fromValue.skills = skills.join(','); }
// 添加新的技能对象
state.skills.push({
name: '',
level: ''
});
// 更新完成度 // 更新完成度
const result = getFormCompletionPercent(fromValue); const result = getFormCompletionPercent(fromValue);
percent.value = result; percent.value = result;
} else { }
// 如果返回空数组,清空选择
state.skillsText = []; // 删除技能
fromValue.skills = ''; function removeSkill(index) {
} state.skills.splice(index, 1);
};
// 更新完成度
const result = getFormCompletionPercent(fromValue);
percent.value = result;
}
// 获取技能等级文本
function getSkillLevelText(level) {
const levelMap = {
'1': '初级',
'2': '中级',
'3': '高级'
};
return levelMap[level] || '';
}
// 选择技能名称
function changeSkillName(index) {
state.currentEditingSkillIndex = index;
// 技能名称选择 - 跳转到模糊查询页面
function changeSkills() {
// 将当前已选中的技能名称传递给查询页面 // 将当前已选中的技能名称传递给查询页面
const selectedSkills = state.skillsText || []; const selectedSkills = state.skills.map(skill => skill.name).filter(name => name);
uni.navigateTo({ uni.navigateTo({
url: `/pages/complete-info/skill-search?selected=${encodeURIComponent(JSON.stringify(selectedSkills))}` url: `/pages/complete-info/skill-search?selected=${encodeURIComponent(JSON.stringify(selectedSkills))}`
}); });
} }
// 选择技能等级
function changeSkillLevel(index) {
const skillLevels = [
{ label: '初级', value: '1' },
{ label: '中级', value: '2' },
{ label: '高级', value: '3' }
];
// 查找当前技能等级在数据中的索引
let defaultIndex = [0];
const currentSkill = state.skills[index];
if (currentSkill && currentSkill.level) {
const index = skillLevels.findIndex(item => item.value === currentSkill.level);
if (index >= 0) {
defaultIndex = [index];
}
}
openSelectPopup({
title: '技能等级',
maskClick: true,
data: [skillLevels],
defaultIndex: defaultIndex,
success: (_, [value]) => {
state.skills[index].level = value.value;
// 更新完成度
const result = getFormCompletionPercent(fromValue);
percent.value = result;
},
});
}
// 技能选择回调函数
const handleSkillSelected = (skillName) => {
if (skillName && state.currentEditingSkillIndex >= 0) {
// 更新当前编辑的技能名称
state.skills[state.currentEditingSkillIndex].name = skillName;
// 重置当前编辑索引
state.currentEditingSkillIndex = -1;
// 更新完成度
const result = getFormCompletionPercent(fromValue);
percent.value = result;
}
};
const changeDateBirt = () => { const changeDateBirt = () => {
const datearray = generateDatePickerArrays(); const datearray = generateDatePickerArrays();
const defaultIndex = getDatePickerIndexes(fromValue.birthDate); const defaultIndex = getDatePickerIndexes(fromValue.birthDate);
@@ -629,36 +593,6 @@ const changePoliticalAffiliation = () => {
}); });
}; };
// 技能等级选择
function changeSkillLevel() {
const skillLevels = [
{ label: '初级', value: '1' },
{ label: '中级', value: '2' },
{ label: '高级', value: '3' }
];
// 查找当前技能等级在数据中的索引
let defaultIndex = [0];
if (fromValue.skillLevel) {
const index = skillLevels.findIndex(item => item.value === fromValue.skillLevel);
if (index >= 0) {
defaultIndex = [index];
}
}
openSelectPopup({
title: '技能等级',
maskClick: true,
data: [skillLevels],
defaultIndex: defaultIndex,
success: (_, [value]) => {
fromValue.skillLevel = value.value;
state.skillLevelText = value.label;
const result = getFormCompletionPercent(fromValue);
percent.value = result;
},
});
}
function generateDatePickerArrays(startYear = 1975, endYear = new Date().getFullYear()) { function generateDatePickerArrays(startYear = 1975, endYear = new Date().getFullYear()) {
const years = []; const years = [];
@@ -755,7 +689,7 @@ function getDatePickerIndexes(dateStr) {
dateStr = `${year}-${month}-${day}`; dateStr = `${year}-${month}-${day}`;
} }
const dateParts = dateStr.split('-'); let dateParts = dateStr.split('-');
if (dateParts.length !== 3) { if (dateParts.length !== 3) {
// 如果分割后不是3部分使用当前日期作为默认值 // 如果分割后不是3部分使用当前日期作为默认值
const today = new Date(); const today = new Date();
@@ -882,4 +816,130 @@ function getDatePickerIndexes(dateStr) {
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
line-height: 90rpx line-height: 90rpx
// 技能信息样式
.content-skills
margin-bottom: 52rpx
.skills-header
display: flex
justify-content: space-between
align-items: center
margin-bottom: 32rpx
.input-titile
font-weight: 400
font-size: 28rpx
color: #6A6A6A
.add-skill-btn
padding: 16rpx 32rpx
background: #256BFA
color: #FFFFFF
border-radius: 8rpx
font-size: 26rpx
font-weight: 500
transition: all 0.3s ease
&:active
background: #1a5cd9
transform: scale(0.98)
&.disabled
background: #CCCCCC
color: #999999
cursor: not-allowed
&:active
background: #CCCCCC
transform: none
.skills-list
.skill-item
background: #FFFFFF
border: 2rpx solid #E8EAEE
border-radius: 12rpx
padding: 24rpx
margin-bottom: 24rpx
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05)
transition: all 0.3s ease
&:hover
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1)
border-color: #256BFA
.skill-header
display: flex
justify-content: space-between
align-items: center
margin-bottom: 20rpx
.skill-number
font-weight: 500
font-size: 28rpx
color: #333333
.skill-actions
.action-btn
padding: 8rpx 16rpx
border-radius: 6rpx
font-size: 24rpx
font-weight: 400
transition: all 0.2s ease
&.delete-btn
background: #FF4D4F
color: #FFFFFF
&:active
background: #D9363E
transform: scale(0.95)
.skill-fields
display: flex
flex-direction: column
gap: 20rpx
.skill-field
.field-label
font-weight: 400
font-size: 26rpx
color: #6A6A6A
margin-bottom: 8rpx
.field-input
font-weight: 400
font-size: 28rpx
color: #333333
line-height: 72rpx
height: 72rpx
border: 2rpx solid #E8EAEE
border-radius: 8rpx
padding: 0 20rpx
background: #F8F9FA
transition: all 0.3s ease
&:focus
border-color: #256BFA
background: #FFFFFF
&.triangle::before
right: 30rpx
top: calc(50% - 2rpx)
&.triangle::after
right: 30rpx
top: 50%
.empty-skills
text-align: center
padding: 60rpx 0
background: #F8F9FA
border-radius: 12rpx
border: 2rpx dashed #E8EAEE
.empty-text
font-size: 28rpx
color: #999999
font-weight: 400
</style> </style>

View File

@@ -1,68 +1,51 @@
{ {
"pages": [ //pages数组中第一项表示应用启动页参考https://uniapp.dcloud.io/collocation/pages "pages": [
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "喀什智慧就业平台", "navigationBarTitleText": "喀什智慧就业平台"
"navigationBarTitleTextSize": "30rpx",
// #ifdef H5
"navigationStyle": "custom"
// #endif
} }
}, },
{ {
"path": "pages/mine/mine", "path": "pages/mine/mine",
"style": { "style": {
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的"
"navigationBarTitleTextSize": "30rpx",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/msglog/msglog", "path": "pages/msglog/msglog",
"style": { "style": {
"navigationBarTitleText": "消息", "navigationBarTitleText": "消息"
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom",
// "enablePullDownRefresh": false
} }
}, },
{ {
"path": "pages/careerfair/careerfair", "path": "pages/careerfair/careerfair",
"style": { "style": {
"navigationBarTitleText": "招聘会", "navigationBarTitleText": "招聘会"
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/complete-info/complete-info", "path": "pages/complete-info/complete-info",
"style": { "style": {
"navigationBarTitleText": "补全信息", "navigationBarTitleText": "补全信息"
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/complete-info/company-info", "path": "pages/complete-info/company-info",
"style": { "style": {
"navigationBarTitleText": "企业信息", "navigationBarTitleText": "企业信息"
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/complete-info/components/map-location-picker", "path": "pages/complete-info/components/map-location-picker",
"style": { "style": {
"navigationBarTitleText": "选择地址", "navigationBarTitleText": "选择地址"
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/complete-info/skill-search", "path": "pages/complete-info/skill-search",
"style": { "style": {
"navigationBarTitleText": "技能查询", "navigationBarTitleText": "技能查询"
"navigationBarTitleTextSize": "30rpx"
} }
}, },
{ {
@@ -70,68 +53,19 @@
"style": { "style": {
"navigationBarTitleText": "附近", "navigationBarTitleText": "附近",
"navigationBarBackgroundColor": "#4778EC", "navigationBarBackgroundColor": "#4778EC",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white"
"navigationStyle": "custom"
}
},
{
"path": "pages/test/userTypeTest",
"style": {
"navigationBarTitleText": "用户类型测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/test/tabbar-test",
"style": {
"navigationBarTitleText": "TabBar测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/test/homepage-test",
"style": {
"navigationBarTitleText": "首页内容测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/test/tabbar-user-type-test",
"style": {
"navigationBarTitleText": "TabBar用户类型测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/test/company-search-test",
"style": {
"navigationBarTitleText": "企业搜索功能测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/test/company-mine-test",
"style": {
"navigationBarTitleText": "企业我的页面测试",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/job/publishJob", "path": "pages/job/publishJob",
"style": { "style": {
"navigationBarTitleText": "发布岗位" "navigationBarTitleText": "发布岗位"
// "navigationStyle": "custom",
// "disableScroll": false,
// "enablePullDownRefresh": false,
// "onReachBottomDistance": 50,
// "backgroundColor": "#f5f5f5"
} }
}, },
{ {
"path": "pages/job/companySearch", "path": "pages/job/companySearch",
"style": { "style": {
"navigationBarTitleText": "选择企业", "navigationBarTitleText": "选择企业",
"navigationStyle": "custom",
"disableScroll": false, "disableScroll": false,
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"backgroundColor": "#f5f5f5" "backgroundColor": "#f5f5f5"
@@ -141,20 +75,15 @@
"path": "pages/chat/chat", "path": "pages/chat/chat",
"style": { "style": {
"navigationBarTitleText": "AI+", "navigationBarTitleText": "AI+",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#4778EC", "navigationBarBackgroundColor": "#4778EC",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false "enablePullDownRefresh": false
// #ifdef H5
// "navigationStyle": "custom"
//#endif
} }
}, },
{ {
"path": "pages/search/search", "path": "pages/search/search",
"style": { "style": {
"navigationBarTitleText": "" "navigationBarTitleText": ""
// "navigationStyle": "custom"
} }
}, },
{ {
@@ -165,154 +94,121 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/service/serviceDetail",
"style": {
"navigationBarTitleText": "服务",
"navigationBarTitleTextSize": "30rpx"
}
},
{
"path": "pages/service/serviceTraceability",
"style": {
"navigationBarTitleText": "服务追溯",
"navigationBarTitleTextSize": "30rpx"
}
},
{ {
"path": "pages/mine/company-mine", "path": "pages/mine/company-mine",
"style": { "style": {
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的"
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/mine/company-info", "path": "pages/mine/company-info",
"style": { "style": {
"navigationBarTitleText": "企业信息", "navigationBarTitleText": "企业信息"
"navigationBarTitleTextSize": "30rpx"
} }
}, },
{ {
"path": "pages/mine/edit-company-contacts", "path": "pages/mine/edit-company-contacts",
"style": { "style": {
"navigationBarTitleText": "编辑联系人", "navigationBarTitleText": "编辑联系人"
"navigationBarTitleTextSize": "30rpx"
} }
} }
], ],
"subpackages": [{ "subpackages": [
{
"root": "packageA", "root": "packageA",
"pages": [ "pages": [
{ {
"path" : "pages/addWorkExperience/addWorkExperience", "path": "pages/addWorkExperience/addWorkExperience",
"style" : "style": {
{ "navigationBarTitleText": "添加工作经历"
"navigationBarTitleText" : "添加工作经历",
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
},{ },
{
"path": "pages/choiceness/choiceness", "path": "pages/choiceness/choiceness",
"style": { "style": {
"navigationBarTitleText": "精选", "navigationBarTitleText": "精选",
"navigationBarBackgroundColor": "#4778EC", "navigationBarBackgroundColor": "#4778EC",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white"
"navigationStyle": "custom"
} }
}, { },
{
"path": "pages/post/post", "path": "pages/post/post",
"style": { "style": {
"navigationBarTitleText": "职位详情", "navigationBarTitleText": "职位详情",
"navigationBarBackgroundColor": "#4778EC", "navigationBarBackgroundColor": "#4778EC",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { },
{
"path": "pages/UnitDetails/UnitDetails", "path": "pages/UnitDetails/UnitDetails",
"style": { "style": {
"navigationBarTitleText": "单位详情" "navigationBarTitleText": "单位详情"
// "navigationBarBackgroundColor": "#4778EC",
// "navigationBarTextStyle": "white"
// "navigationStyle": "custom"
} }
}, { },
{
"path": "pages/exhibitors/exhibitors", "path": "pages/exhibitors/exhibitors",
"style": { "style": {
"navigationBarTitleText": "参展单位", "navigationBarTitleText": "参展单位",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
// "navigationStyle": "custom"
} }
}, { },
{
"path": "pages/myResume/myResume", "path": "pages/myResume/myResume",
"style": { "style": {
"navigationBarTitleText": "我的简历", "navigationBarTitleText": "我的简历",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
}, { },
{
"path": "pages/Intendedposition/Intendedposition", "path": "pages/Intendedposition/Intendedposition",
"style": { "style": {
"navigationBarTitleText": "投递记录", "navigationBarTitleText": "投递记录",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
}, { },
{
"path": "pages/collection/collection", "path": "pages/collection/collection",
"style": { "style": {
"navigationBarTitleText": "我的收藏", "navigationBarTitleText": "我的收藏",
"navigationBarTitleTextSize": "30rpx", "navigationBarBackgroundColor": "#FFFFFF"
"navigationBarBackgroundColor": "#FFFFFF",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/browseJob/browseJob", "path": "pages/browseJob/browseJob",
"style": { "style": {
"navigationBarTitleText": "我的浏览", "navigationBarTitleText": "我的浏览",
"navigationBarTitleTextSize": "30rpx", "navigationBarBackgroundColor": "#FFFFFF"
"navigationBarBackgroundColor": "#FFFFFF",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/addPosition/addPosition", "path": "pages/addPosition/addPosition",
"style": { "style": {
"navigationBarTitleText": "添加岗位", "navigationBarTitleText": "添加岗位"
"navigationBarTitleTextSize": "30rpx",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/selectDate/selectDate", "path": "pages/selectDate/selectDate",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": ""
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/personalInfo/personalInfo", "path": "pages/personalInfo/personalInfo",
"style": { "style": {
"navigationBarTitleText": "个人信息", "navigationBarTitleText": "个人信息"
"navigationBarTitleTextSize": "30rpx",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/jobExpect/jobExpect", "path": "pages/jobExpect/jobExpect",
"style": { "style": {
"navigationBarTitleText": "求职期望", "navigationBarTitleText": "求职期望"
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/reservation/reservation", "path": "pages/selectDate/reservation/reservation",
"style": { "style": {
"navigationBarTitleText": "我的预约", "navigationBarTitleText": "我的预约",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
}, },
@@ -320,16 +216,13 @@
"path": "pages/choicenessList/choicenessList", "path": "pages/choicenessList/choicenessList",
"style": { "style": {
"navigationBarTitleText": "精选企业", "navigationBarTitleText": "精选企业",
"navigationBarTitleTextSize": "30rpx", "navigationBarBackgroundColor": "#FFFFFF"
"navigationBarBackgroundColor": "#FFFFFF",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/newJobPosition/newJobPosition", "path": "pages/newJobPosition/newJobPosition",
"style": { "style": {
"navigationBarTitleText": "新职位推荐", "navigationBarTitleText": "新职位推荐",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
}, },
@@ -337,7 +230,6 @@
"path": "pages/systemNotification/systemNotification", "path": "pages/systemNotification/systemNotification",
"style": { "style": {
"navigationBarTitleText": "系统通知", "navigationBarTitleText": "系统通知",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
}, },
@@ -345,15 +237,13 @@
"path": "pages/tiktok/tiktok", "path": "pages/tiktok/tiktok",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/moreJobs/moreJobs", "path": "pages/moreJobs/moreJobs",
"style": { "style": {
"navigationBarTitleText": "更多岗位", "navigationBarTitleText": "更多岗位",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
}, },
@@ -361,7 +251,6 @@
"path": "pages/collection/compare", "path": "pages/collection/compare",
"style": { "style": {
"navigationBarTitleText": " 岗位对比", "navigationBarTitleText": " 岗位对比",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
}, },
@@ -369,7 +258,6 @@
"path": "pages/myResume/corporateInformation", "path": "pages/myResume/corporateInformation",
"style": { "style": {
"navigationBarTitleText": " 企业详情", "navigationBarTitleText": " 企业详情",
"navigationBarTitleTextSize": "30rpx",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
} }
@@ -379,66 +267,99 @@
"root": "packageB", "root": "packageB",
"pages": [ "pages": [
{ {
"path" : "jobFair/detail", "path": "jobFair/detailCom",
"style" : "style": {
{ "navigationBarTitleText": "招聘会详情"
"navigationBarTitleText" : "招聘会详情",
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path" : "login", "path": "jobFair/detailPerson",
"style" : "style": {
{ "navigationBarTitleText": "招聘会详情"
"navigationBarTitleText" : "登录",
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path" : "train/index", "path": "login",
"style" : "style": {
{ "navigationBarTitleText": "登录"
"navigationBarTitleText" : "技能评价",
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path" : "train/practice/startPracticing", "path": "train/index",
"style" : "style": {
{ "navigationBarTitleText": "技能评价"
"navigationBarTitleText" : "专项训练",
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path" : "train/video/videoList", "path": "train/practice/startPracticing",
"style" : "style": {
{ "navigationBarTitleText": "专项训练"
"navigationBarTitleText" : "视频学习",
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path" : "train/video/videoDetail", "path": "train/video/videoList",
"style" : "style": {
{ "navigationBarTitleText": "视频学习"
"navigationBarTitleText" : "视频详情",
"navigationBarTitleTextSize": "30rpx"
// "navigationStyle": "custom"
} }
}, },
{ {
"path" : "train/mockExam/examList", "path": "train/video/videoDetail",
"style" : "style": {
"navigationBarTitleText": "视频详情"
}
},
{ {
"navigationBarTitleText" : "模拟考试", "path": "train/mockExam/examList",
"navigationBarTitleTextSize": "30rpx" "style": {
// "navigationStyle": "custom" "navigationBarTitleText": "考试列表"
}
},
{
"path": "train/mockExam/startExam",
"style": {
"navigationBarTitleText": "模拟考试"
}
},
{
"path": "train/mockExam/viewGrades",
"style": {
"navigationBarTitleText": "查看成绩"
}
},
{
"path": "train/mockExam/paperDetails",
"style": {
"navigationBarTitleText": "考试详情"
}
},
{
"path": "priority/helpFilter",
"style": {
"navigationBarTitleText": "筛选和帮扶"
}
},
{
"path": "priority/helpFollow",
"style": {
"navigationBarTitleText": "跟进"
}
},
{
"path": "train/wrongAnswer/mistakeNotebook",
"style": {
"navigationBarTitleText": "错题本"
}
},
{
"path": "train/wrongAnswer/questionPractice",
"style": {
"navigationBarTitleText": "错题练习"
}
},
{
"path": "train/wrongAnswer/wrongDetail",
"style": {
"navigationBarTitleText": "错题详情"
} }
} }
] ]
@@ -447,106 +368,310 @@
"root": "packageRc", "root": "packageRc",
"pages": [ "pages": [
{ {
"path" : "pages/index/index", "path": "pages/index/index",
"style" : "style": {
{ "navigationBarTitleText": "高校毕业生智慧就业"
"navigationBarTitleText" : "高校毕业生智慧就业"
} }
} , { },
{
"path": "pages/personalList/personalList", "path": "pages/personalList/personalList",
"style": { "style": {
"navigationBarTitleText": "添加帮扶" "navigationBarTitleText": "毕业生追踪"
} }
},{ },
{
"path": "pages/jobList/jobList",
"style": {
"navigationBarTitleText": "岗位列表"
}
},
{
"path": "pages/daiban/daiban", "path": "pages/daiban/daiban",
"style": { "style": {
"navigationBarTitleText": "待办任务" "navigationBarTitleText": "待办任务"
// "navigationBarBackgroundColor": "#4778EC",
// "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/daiban/daibandetail", "path": "pages/daiban/daibandetail",
"style": { "style": {
"navigationBarTitleText": "待办详情", "navigationBarTitleText": "待办详情"
"navigationBarBackgroundColor": "#4778EC",
"navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/demand/demandail", "path": "pages/demand/demandail",
"style": { "style": {
"navigationBarTitleText": "新增需求", "navigationBarTitleText": "新增需求"
"navigationBarBackgroundColor": "#4778EC",
"navigationBarTextStyle": "white"
} }
} , { },
{
"path": "pages/daiban/addbangfu", "path": "pages/daiban/addbangfu",
"style": { "style": {
"navigationBarTitleText": "添加帮扶", "navigationBarTitleText": "添加帮扶"
"navigationBarBackgroundColor": "#4778EC", }
"navigationBarTextStyle": "white" },
{
"path": "pages/service/serviceDetail",
"style": {
"navigationBarTitleText": "服务"
}
},
{
"path": "pages/service/serviceTraceability",
"style": {
"navigationBarTitleText": "服务追溯"
}
},
{
"path": "pages/needs/needDetail",
"style": {
"navigationBarTitleText": "需求信息"
}
},
{
"path": "pages/daiban/bangfuList",
"style": {
"navigationBarTitleText": "服务记录"
}
},
{
"path": "pages/needs/personNeeds",
"style": {
"navigationBarTitleText": "需求上报"
}
},
{
"path": "pages/needs/needsList",
"style": {
"navigationBarTitleText": "需求"
}
},
{
"path": "pages/policy/policyList",
"style": {
"navigationBarTitleText": "政策专区"
}
},
{
"path": "pages/policy/policyDetail",
"style": {
"navigationBarTitleText": "政策详解"
} }
} }
] ]
}], },
// "tabBar": { {
// "custom": true, "root": "packageCa",
// "color": "#5E5F60", "pages": [
// "selectedColor": "#256BFA", {
// "borderStyle": "black", "path": "search/search",
// "backgroundColor": "#ffffff", "style": {
// "list": [{ "navigationBarTitleText": "生涯规划",
// "pagePath": "pages/index/index", "navigationStyle": "custom"
// "iconPath": "static/tabbar/calendar.png", }
// "selectedIconPath": "static/tabbar/calendared.png", },
// "text": "职1" {
// }, "path": "search/AIAudition",
// { "style": {
// "pagePath": "pages/careerfair/careerfair", "navigationBarTitleText": "AI智能面试"
// "iconPath": "static/tabbar/post.png", }
// "selectedIconPath": "static/tabbar/posted.png", },
// "text": "招聘会" {
// }, "path": "job/index",
// { "style": {
// "pagePath": "pages/chat/chat", "navigationBarTitleText": "职业库"
// "iconPath": "static/tabbar/logo3.png", }
// "selectedIconPath": "static/tabbar/logo3.png", },
// "text": "AI+" {
// }, "path": "job/midList",
// { "style": {
// "pagePath": "pages/msglog/msglog", "navigationBarTitleText": "职业库-中类"
// "iconPath": "static/tabbar/chat4.png", }
// "selectedIconPath": "static/tabbar/chat4ed.png", },
// "text": "消息" {
// }, "path": "job/smallList",
// { "style": {
// "pagePath": "pages/mine/mine", "navigationBarTitleText": "职业库-小类"
// "iconPath": "static/tabbar/mine.png", }
// "selectedIconPath": "static/tabbar/mined.png", },
// "text": "我的" {
// } "path": "job/details",
// ] "style": {
// }, "navigationBarTitleText": "职业详情"
}
},
{
"path": "userCenter/professionPath",
"style": {
"navigationBarTitleText": "职业路径",
"navigationStyle": "custom"
}
},
{
"path": "userCenter/personDocument",
"style": {
"navigationBarTitleText": "生涯档案",
"navigationStyle": "custom"
}
},
{
"path": "userCenter/careerCompass",
"style": {
"navigationBarTitleText": "生涯罗盘",
"navigationStyle": "custom"
}
},
{
"path": "userCenter/learningPlan",
"style": {
"navigationBarTitleText": "学业规划",
"navigationStyle": "custom"
}
},
{
"path": "userCenter/smartTarget",
"style": {
"navigationBarTitleText": "学业规划",
"navigationStyle": "custom"
}
},
{
"path": "userCenter/fillInInformation",
"style": {
"navigationBarTitleText": "完善个人信息"
}
},
{
"path": "pagesTest/testList",
"style": {
"navigationBarTitleText": "生涯测评",
"navigationStyle": "custom"
}
},
{
"path": "pagesTest/customTestTitle",
"style": {
"navigationBarTitleText": "自定义测评",
"navigationStyle": "custom"
}
},
{
"path": "pagesTest/interestTestTitle",
"style": {
"navigationBarTitleText": "职业兴趣测评",
"navigationStyle": "custom"
}
},
{
"path": "pagesTest/workValuesTestTitle",
"style": {
"navigationBarTitleText": "工作价值观测评",
"navigationStyle": "custom"
}
},
{
"path": "pagesTest/personalTestTitle",
"style": {
"navigationBarTitleText": "人格测评",
"navigationStyle": "custom"
}
},
{
"path": "testReport/workValuesTestReport",
"style": {
"navigationBarTitleText": "工作价值观测评报告",
"navigationStyle": "custom"
}
},
{
"path": "testReport/multipleAbilityTestReport",
"style": {
"navigationBarTitleText": "多元能力测评报告",
"navigationStyle": "custom"
}
},
{
"path": "testReport/generalCareerTestReport",
"style": {
"navigationBarTitleText": "通用职业能力测评报告",
"navigationStyle": "custom"
}
},
{
"path": "testReport/personalTestReport",
"style": {
"navigationBarTitleText": "人格测评报告",
"navigationStyle": "custom"
}
},
{
"path": "testReport/interestTestReport",
"style": {
"navigationBarTitleText": "职业兴趣测评报告",
"navigationStyle": "custom"
}
}
]
}
],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app", "navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8"
"navigationBarTitleTextSize": "18px"
// "enablePullDownRefresh": false,
// "navigationStyle": "custom"
}, },
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue", "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
"^time-picker$": "@dcloudio/uni-ui/lib/uni-datetime-picker/time-picker.vue",
"^TimePicker$": "@dcloudio/uni-ui/lib/uni-datetime-picker/time-picker.vue",
"^Calendar$": "@dcloudio/uni-ui/lib/uni-datetime-picker/calendar.vue",
"^calendar-item$": "@dcloudio/uni-ui/lib/uni-datetime-picker/calendar-item.vue",
"^CalendarItem$": "@dcloudio/uni-ui/lib/uni-datetime-picker/calendar-item.vue",
"^table-checkbox$": "@dcloudio/uni-ui/lib/uni-tr/table-checkbox.vue",
"^TableCheckbox$": "@dcloudio/uni-ui/lib/uni-tr/table-checkbox.vue",
"^filter-dropdown$": "@dcloudio/uni-ui/lib/uni-th/filter-dropdown.vue",
"^FilterDropdown$": "@dcloudio/uni-ui/lib/uni-th/filter-dropdown.vue",
"^uni-status-bar$": "@dcloudio/uni-ui/lib/uni-nav-bar/uni-status-bar.vue",
"^upload-image$": "@dcloudio/uni-ui/lib/uni-file-picker/upload-image.vue",
"^UploadImage$": "@dcloudio/uni-ui/lib/uni-file-picker/upload-image.vue",
"^upload-file$": "@dcloudio/uni-ui/lib/uni-file-picker/upload-file.vue",
"^UploadFile$": "@dcloudio/uni-ui/lib/uni-file-picker/upload-file.vue",
"^IconfontIcon$": "@/components/IconfontIcon/IconfontIcon.vue", "^IconfontIcon$": "@/components/IconfontIcon/IconfontIcon.vue",
"^WxAuthLogin$": "@/components/WxAuthLogin/WxAuthLogin.vue", "^WxAuthLogin$": "@/components/wxAuthLogin/WxAuthLogin.vue",
"^AppLayout$": "@/components/AppLayout/AppLayout.vue", "^AppLayout$": "@/components/AppLayout/AppLayout.vue",
"^CustomTabBar$": "@/components/CustomTabBar/CustomTabBar.vue" "^CustomTabBar$": "@/components/CustomTabBar/CustomTabBar.vue",
"^UserTypeSwitcher$": "@/components/UserTypeSwitcher/UserTypeSwitcher.vue",
"^CollapseTransition$": "@/components/CollapseTransition/CollapseTransition.vue",
"^NoBouncePage$": "@/components/NoBouncePage/NoBouncePage.vue",
"^TikTok$": "@/components/TikTok/TikTok.vue",
"^MsgTips$": "@/components/MsgTips/MsgTips.vue",
"^exitPopup$": "@/packageRc/components/exitPopup.vue",
"^ImageUpload$": "@/packageRc/components/ImageUpload.vue",
"^placePicker$": "@/packageRc/components/placePicker.vue",
"^PlacePicker$": "@/packageRc/components/placePicker.vue",
"^PopupLists$": "@/packageRc/components/PopupLists.vue",
"^PopupList$": "@/packageRc/components/PopupLists.vue",
"^popupList$": "@/packageRc/components/PopupLists.vue",
"^DealDone$": "@/packageRc/pages/needs/dealDone.vue",
"^ChoosePerson$": "@/packageRc/pages/needs/components/choosePerson.vue",
"^choosePerson$": "@/packageRc/pages/needs/components/choosePerson.vue",
"^choose-person$": "@/packageRc/pages/needs/components/choosePerson.vue",
"^contrastBox$": "@/packageCa/testReport/components/contrastBox.vue",
"^testHead$": "@/packageCa/testReport/components/testHead.vue",
"^jobService$": "@/packageRc/pages/needs/components/jobService.vue",
"^entrepreneurshipService$": "@/packageRc/pages/needs/components/entrepreneurshipService.vue",
"^trainService$": "@/packageRc/pages/needs/components/trainService.vue",
"^otherService$": "@/packageRc/pages/needs/components/otherService.vue",
"^investigate$": "@/packageRc/pages/service/components/investigate.vue",
"^policyConsultation$": "@/packageRc/pages/service/components/policyConsultation.vue",
"^jobRecommend$": "@/packageRc/pages/service/components/jobRecommend.vue",
"^skillTrain$": "@/packageRc/pages/service/components/skillTrain.vue",
"^jobTrack$": "@/packageRc/pages/service/components/jobTrack.vue",
"^positionChooser$": "@/packageRc/pages/service/components/positionChooser.vue",
"^(?!u-|uni-|el-|req-comp|template|transition|enterprise-list-pop|handler-data|time-picker|TimePicker|Calendar|calendar-item|CalendarItem|table-checkbox|TableCheckbox|filter-dropdown|FilterDropdown|uni-status-bar|upload-image|UploadImage|upload-file|UploadFile|view|text|image|button|input|textarea|picker|scroll-view|swiper|map|canvas|video|audio|cover-view|cover-image|navigator|rich-text|progress|checkbox|radio|switch|slider|form|label|picker-view|movable-view|movable-area|web-view|ad|official-account|open-data|editor|live-player|live-pusher|functional-page-navigator|match-media|page-meta|navigation-bar|keyboard-accessory|page-container|uni-app|block|component|slot|keep-alive|router-view|router-link)([a-zA-Z][a-zA-Z0-9-]*)$": "@/components/$1/$1.vue"
} }
}, },
"uniIdRouter": {} "uniIdRouter": {}
} }

View File

@@ -16,8 +16,8 @@
</view> </view>
<!-- 已选技能提示 --> <!-- 已选技能提示 -->
<view class="selected-tip" v-if="selectedSkills.length > 0"> <view class="selected-tip" v-if="selectedSkill">
已选择 {{ selectedSkills.length }}/3 个技能 已选择技能{{ selectedSkill }}
</view> </view>
</view> </view>
@@ -58,23 +58,19 @@
<!-- 固定底部操作栏 --> <!-- 固定底部操作栏 -->
<view class="bottom-bar"> <view class="bottom-bar">
<view class="selected-skills" v-if="selectedSkills.length > 0"> <view class="selected-skills" v-if="selectedSkill">
<view <view class="skill-tag">
class="skill-tag" <text class="tag-text">{{ selectedSkill }}</text>
v-for="(skill, index) in selectedSkills" <text class="tag-close" @click.stop="removeSkill">×</text>
:key="index"
>
<text class="tag-text">{{ skill }}</text>
<text class="tag-close" @click.stop="removeSkill(index)">×</text>
</view> </view>
</view> </view>
<view class="action-buttons"> <view class="action-buttons">
<button class="btn-cancel" @click="handleCancel">取消</button> <button class="btn-cancel" @click="handleCancel">取消</button>
<button <button
class="btn-confirm" class="btn-confirm"
:class="{ 'disabled': selectedSkills.length === 0 }" :class="{ 'disabled': !selectedSkill }"
@click="handleConfirm" @click="handleConfirm"
:disabled="selectedSkills.length === 0" :disabled="!selectedSkill"
> >
确定 确定
</button> </button>
@@ -93,17 +89,17 @@ const { $api } = inject('globalFunction');
const searchKeyword = ref(''); const searchKeyword = ref('');
const searchResults = ref([]); const searchResults = ref([]);
const selectedSkills = ref([]); const selectedSkill = ref(''); // 改为单选,存储单个技能名称
const isSearching = ref(false); const isSearching = ref(false);
let searchTimer = null; let searchTimer = null;
onLoad((options) => { onLoad((options) => {
// 接收已选中的技能 // 接收已选中的技能(单选模式,只接收单个技能)
if (options.selected) { if (options.selected) {
try { try {
const skills = JSON.parse(decodeURIComponent(options.selected)); const skills = JSON.parse(decodeURIComponent(options.selected));
if (Array.isArray(skills)) { if (Array.isArray(skills) && skills.length > 0) {
selectedSkills.value = skills; selectedSkill.value = skills[0]; // 只取第一个技能
} }
} catch (e) { } catch (e) {
console.error('解析已选技能失败:', e); console.error('解析已选技能失败:', e);
@@ -176,31 +172,25 @@ async function performSearch(keyword) {
// 判断技能是否已选中 // 判断技能是否已选中
function isSelected(item) { function isSelected(item) {
return selectedSkills.value.includes(item.name); return selectedSkill.value === item.name;
} }
// 切换技能选择状态 // 切换技能选择状态(单选模式)
function toggleSelect(item) { function toggleSelect(item) {
const skillName = item.name; const skillName = item.name;
const index = selectedSkills.value.indexOf(skillName);
if (index > -1) { if (selectedSkill.value === skillName) {
// 已选中,取消选择 // 已选中,取消选择
selectedSkills.value.splice(index, 1); selectedSkill.value = '';
} else { } else {
// 未选中,检查是否已达到最大数量 // 选择新的技能
if (selectedSkills.value.length >= 3) { selectedSkill.value = skillName;
$api.msg('最多只能选择3个技能');
return;
}
// 添加选择
selectedSkills.value.push(skillName);
} }
} }
// 移除技能 // 移除技能(单选模式,直接清空)
function removeSkill(index) { function removeSkill() {
selectedSkills.value.splice(index, 1); selectedSkill.value = '';
} }
// 取消操作 // 取消操作
@@ -210,13 +200,13 @@ function handleCancel() {
// 确定操作 // 确定操作
function handleConfirm() { function handleConfirm() {
if (selectedSkills.value.length === 0) { if (!selectedSkill.value) {
$api.msg('请至少选择一个技能'); $api.msg('请选择一个技能');
return; return;
} }
// 通过事件总线传递选中的技能(技能字段值传name // 通过事件总线传递选中的技能(单选模式,传递单个技能名称
uni.$emit('skillSelected', selectedSkills.value); uni.$emit('skillSelected', selectedSkill.value);
// 返回上一页 // 返回上一页
uni.navigateBack(); uni.navigateBack();
@@ -385,4 +375,3 @@ onUnmounted(() => {
background-color: #ccc background-color: #ccc
color: #999 color: #999
</style> </style>

View File

@@ -28,6 +28,9 @@ let exports = {
// ========== 职业图谱专用baseUrl ========== // ========== 职业图谱专用baseUrl ==========
zytpBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks_zytp/admin-api/zytp', zytpBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks_zytp/admin-api/zytp',
// ========== 用户接口专用baseUrlappUserInfo等接口使用 ==========
userBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 用户相关接口使用根目录config.js的baseUrl
// 应用信息 // 应用信息

View File

@@ -13,6 +13,7 @@ import { toast, showConfirm, tansParams } from '@/utilsRc/common'
let timeout = 10000 let timeout = 10000
const baseUrl = configRc.baseUrl const baseUrl = configRc.baseUrl
const zytpBaseUrl = configRc.zytpBaseUrl || '' const zytpBaseUrl = configRc.zytpBaseUrl || ''
const userBaseUrl = configRc.userBaseUrl || ''
const request = config => { const request = config => {
// 是否需要设置 token // 是否需要设置 token
@@ -25,7 +26,12 @@ const request = config => {
} }
// get请求映射params参数 // get请求映射params参数
const baseType = config.baseUrlType const baseType = config.baseUrlType
const requestBaseUrl = baseType === 'zytp' && zytpBaseUrl ? zytpBaseUrl : baseUrl let requestBaseUrl = baseUrl
if (baseType === 'zytp' && zytpBaseUrl) {
requestBaseUrl = zytpBaseUrl
} else if (baseType === 'user' && userBaseUrl) {
requestBaseUrl = userBaseUrl
}
let requestUrl = config.fullUrl ? config.fullUrl : (requestBaseUrl + (config.url || '')) let requestUrl = config.fullUrl ? config.fullUrl : (requestBaseUrl + (config.url || ''))
if (config.params) { if (config.params) {