diff --git a/components/wxAuthLogin/WxAuthLogin.vue b/components/wxAuthLogin/WxAuthLogin.vue
index ae055af..0664095 100644
--- a/components/wxAuthLogin/WxAuthLogin.vue
+++ b/components/wxAuthLogin/WxAuthLogin.vue
@@ -25,7 +25,7 @@
- 我是求职者
+ 个人
- 我是招聘者
+ 单位
diff --git a/pages/index/components/index-one.vue b/pages/index/components/index-one.vue
index 65b1709..7c71594 100644
--- a/pages/index/components/index-one.vue
+++ b/pages/index/components/index-one.vue
@@ -636,6 +636,7 @@ const rangeOptions = ref([
{ value: 1, text: '最热' },
{ value: 2, text: '最新发布' },
{ value: 3, text: '疆外' },
+ { value: 4, text: '零工市场' }
]);
const isLoaded = ref(false);
const isInitialized = ref(false); // 添加初始化标志
@@ -1039,6 +1040,12 @@ function handelHostestSearch(val) {
isShowJw.value = val.value;
pageState.search.order = val.value;
pageState.search.jobType = val.value === 3 ? 1 : 0;
+ if(val.value === 4) {
+ pageState.search.type = 4;
+ } else {
+ delete pageState.search.type;
+ }
+
if (state.tabIndex === 'all') {
getJobRecommend('refresh');
} else {
@@ -1059,6 +1066,10 @@ function getJobRecommend(type = 'add') {
...conditionSearch.value,
isPublish: 1,
};
+ // 当选中零工市场(4)或疆外(3)时,order参数传递0
+ if (pageState.search.order === 3 || pageState.search.order === 4) {
+ params.order = 0;
+ }
// 优先从store获取,如果为空则从缓存获取
const storeIsCompanyUser = userInfo.value?.isCompanyUser;
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
@@ -1137,6 +1148,10 @@ function getJobList(type = 'add') {
...pageState.search,
// ...conditionSearch.value,
};
+ // 当选中零工市场(4)或疆外(3)时,order参数传递0
+ if (pageState.search.order === 3 || pageState.search.order === 4) {
+ params.order = 0;
+ }
$api.createRequest('/app/job/list', params).then((resData) => {
const { rows, total } = resData;
@@ -1724,8 +1739,8 @@ defineExpose({ loadData });
font-weight: 400;
font-size: 32rpx;
color: #666D7F;
- margin-right: 24rpx
- padding: 0rpx 16rpx
+ margin-right: 8rpx
+ padding: 0rpx 6rpx
.active
font-weight: 500;
font-size: 32rpx;