From f55d6b4c2f6b6d0bc67da786daf9a726a675e546 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Tue, 4 Feb 2025 18:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/firstBill/index.js | 54 +++++- pages/firstBill/index.wxml | 459 +++++++++++++++++++++++---------------------- pages/firstBill/index.wxss | 15 +- 3 files changed, 294 insertions(+), 234 deletions(-) diff --git a/pages/firstBill/index.js b/pages/firstBill/index.js index 9a91968..98ded58 100644 --- a/pages/firstBill/index.js +++ b/pages/firstBill/index.js @@ -13,6 +13,39 @@ Page({ toped: "1", jobNum: 0, // 48小时更新职位数 currCode: '', + anchorList: [ + { + id: 'age', + name: '年龄' + }, + { + id: 'gender', + name: '性别' + }, + { + id: 'class', + name: '分类' + }, + { + id: 'xzfl', + name: '薪资福利' + }, + { + id: 'ssbz', + name: '宿舍保障' + }, + { + id: 'bzxx', + name: '班制休息' + }, + { + id: 'msts', + name: '面试特色' + }, { + id: 'qtts', + name: '其他特色' + } + ], colorList: [{ color: '#1890ff', background: '#ccc' @@ -151,6 +184,7 @@ Page({ halfHide: true, // 智能匹配显示一半控制 topNum: 0, scrollTo: "", // 列表滚动的控制 + filterTo: 'age',// 筛选锚点控制 navList: [], bannerList: [], /** @@ -669,7 +703,7 @@ Page({ data: { type: 90, industry: 2, - hasJob:1 + hasJob: 1 } }).then((res) => { wx.setStorageSync("FILTER_LIST", res.data.data); @@ -2638,7 +2672,7 @@ Page({ data.recordList ); that.data.recordList = that.data.recordList.concat(jobListTemp); - + that.setData({ recordList: that.data.recordList, hasMoreData: true, @@ -4767,5 +4801,19 @@ Page({ }).catch(() => { }) - } + }, + goAnchor (e) { + console.log(e.currentTarget.dataset.item.id); + let id + if (e.currentTarget.dataset.item) { + id = e.currentTarget.dataset.item.id + } + this.setData({ + filterTo: id + }) + }, + catchScrollInfo (e) { + console.log(e); + }, + }); \ No newline at end of file diff --git a/pages/firstBill/index.wxml b/pages/firstBill/index.wxml index ce39145..e677cdc 100644 --- a/pages/firstBill/index.wxml +++ b/pages/firstBill/index.wxml @@ -109,64 +109,69 @@ {{selectJobList.length + selectBrandList.length }} - - - - 年龄(岁) - - - - {{minAge + '-'}} - {{maxAge == 60 ? maxAge + '+' : maxAge }} + + + + {{item.name}} + + + + 年龄(岁) + + + + {{minAge + '-'}} + {{maxAge == 60 ? maxAge + '+' : maxAge }} + + - - - - 性别 - - - {{item.name}} + + 性别 + + + {{item.name}} + - - - 分类 - - {{item.name}} + + 分类 + + {{item.name}} + - - - 薪资福利 - - {{item.name}} + + 薪资福利 + + {{item.name}} + - - - 宿舍保障 - - {{item.name}} + + 宿舍保障 + + {{item.name}} + - - - 班制休息 - - {{item.name}} + + 班制休息 + + {{item.name}} + - - - 面试特色 - - {{item.name}} + + 面试特色 + + {{item.name}} + - - - 其他特色 - - {{item.name}} + + 其他特色 + + {{item.name}} + - - + + @@ -208,7 +213,7 @@ - + @@ -791,191 +796,92 @@ - - - - - - - - {{currentJobDrawer.jobName}} - - - 分享 + + + + + + + {{currentJobDrawer.jobName}} + + + 分享 + - - - 服务费:{{!isLogin ? '登录查看服务费' : (agencyStatus == 1 ? (currentJobDrawer.fuWuFei ? currentJobDrawer.fuWuFei : '-') : '服务费仅代理可见')}} - - - 项目方: {{currentJobDrawer.agencyName}} - - - - - - - - -

已收藏

-
- -

收藏

-
+ + 服务费:{{!isLogin ? '登录查看服务费' : (agencyStatus == 1 ? (currentJobDrawer.fuWuFei ? currentJobDrawer.fuWuFei : '-') : '服务费仅代理可见')}} - 报名 - - - - 复制 + + 项目方: {{currentJobDrawer.agencyName}}
- - - - - {{userInfo.agencyStatus == 1 ? (userInfo.noticeEndStr ? userInfo.noticeEndStr : ('详情咨询:' + userInfo.tel)) : ('详情咨询:' + (serviceInfo.userName || '') + (serviceInfo.workPhone || '-'))}} - - 以上联系人,可以 - {{userInfo.noticeEndStr ? '修改' : '改成我的'}} - - - -
-
- - - - - 直接复制 - 编辑后复制 - - - 取消 - - - - - - 以下文本可编辑 - - - - - - - - - - - - - - - - - - - 智能匹配 - - - - 性别 - - - - - {{item.name}} + + + + + +

已收藏

+
+ +

收藏

+
-
-
- - + + + 复制 -
--> -
- - - 年龄(岁) - - - {{minAge + '-'}} - {{maxAge == 60 ? maxAge + '+' : maxAge }} - - - - - - 籍贯 - - - - - - - - 期望薪资 - - - {{minSalary * 100 + '-'}} - {{maxSalary * 100}} + + + + + {{userInfo.agencyStatus == 1 ? (userInfo.noticeEndStr ? userInfo.noticeEndStr : ('详情咨询:' + userInfo.tel)) : ('详情咨询:' + (serviceInfo.userName || '') + (serviceInfo.workPhone || '-'))}} + + 以上联系人,可以 + {{userInfo.noticeEndStr ? '修改' : '改成我的'}} - - - - - 纹身烟疤 - - {{item.name}} - +
- - 有无案底 - - {{item.name}} +
+ + + + + 直接复制 + 编辑后复制 - - - 是否黑户 - - {{item.name}} + + 取消 - - 身份证 - - {{item.name}} - + + + + 以下文本可编辑 + + + + + + + + + + - - - - - - - - - - - - 智能匹配 - + + + + + + + 智能匹配 @@ -1066,16 +972,115 @@ + + + + + + 智能匹配 + + + + + + 性别 + + + + + {{item.name}} + + + + + + + + + 年龄(岁) + + + {{minAge + '-'}} + {{maxAge == 60 ? maxAge + '+' : maxAge }} + + + + + + + + 籍贯 + + + + + + + + 期望薪资 + + + {{minSalary * 100 + '-'}} + {{maxSalary * 100}} + + + + + + + 纹身烟疤 + + {{item.name}} + + + + 有无案底 + + {{item.name}} + + + + 是否黑户 + + {{item.name}} + + + + 身份证 + + {{item.name}} + + + + + + + + + - - - - - - - - 长按识别二维码 关注公众号 - 实时了解工单状态变化 + + + + + + + 长按识别二维码 关注公众号 + 实时了解工单状态变化 + diff --git a/pages/firstBill/index.wxss b/pages/firstBill/index.wxss index c481345..d4e49ed 100644 --- a/pages/firstBill/index.wxss +++ b/pages/firstBill/index.wxss @@ -1353,14 +1353,21 @@ button.collect icon::before { } .filterContainer { - padding: 0 10px; - height: calc(40vh - 64px); + display: flex; + justify-content: space-between; + overflow: hidden; + height: 60vh; + /* padding: 0 10px; */ + /* height: calc(40vh - 64px); */ + /* height: 100%; */ /* width: calc(100%); */ box-sizing: border-box; background-color: #fff; - padding-bottom: 10px; + padding-bottom: 4px; +} +.filterActive{ + background-color: #eee; } - .left_drawer_container { padding: 0 16px; /* width: calc(100%); */