首页列表

master
zsk 2 years ago
parent 7603209327
commit 83dd2d381c

@ -33,6 +33,7 @@ Page({
recordList: [],
jobSpecialLabelNames: [],
storeJobListSearchForm: {
recruitment:1,
pageNum: 1,
pageSize: 20,
classify: 1,
@ -117,181 +118,9 @@ Page({
halfHide: true, // 智能匹配显示一半控制
topNum: 0,
scrollTo: "", // 列表滚动的控制
navList: [
{
img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/ztrt.png",
url: "/pages/hotList/index",
title: "主推/热推",
},
// { img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/dtld.png",url:'/pages/hotList/index', title: "职位云亮点" },
// { img: "http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/zjzp.png",url:'/pages/hotList/index', title: "职教职培" },
{
img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/cwdl.png",
url: "/pages/tobeAgency/index",
title: "成为代理",
},
// { img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/dzkf.png",url:'/pages/hotList/index', title: "定制开发" },
{
img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/xmhz.png",
url: "/pages/xiangmuhezuo/index",
title: "项目合作",
},
{
img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/xtxx.png",
url: "/pages/message/index",
title: "消息中心",
},
{
img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/lxwm.png",
url: "/pages/connectUs/index",
title: "联系我们",
},
// { img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/jqqd.png",url:'/pages/hotList/index', title: "敬请期待" },
],
bannerList: [],
/**
* 筛选的相关变量
*
*
*/
filterData: {
yanba: [
{
name: "无",
id: 1,
active: 0,
},
{
name: "小面积",
id: 2,
active: 0,
},
{
name: "大面积",
id: 3,
active: 0,
},
],
area: [
{
name: "江浙沪",
id: 1,
active: 0,
},
{
name: "鄂豫皖",
id: 2,
active: 0,
},
{
name: "京津冀",
id: 3,
active: 0,
},
{
name: "晋西北",
id: 4,
active: 0,
},
{
name: "粤桂闽",
id: 5,
active: 0,
},
{
name: "鲁东南",
id: 6,
active: 0,
},
{
name: "黑吉辽",
id: 7,
active: 0,
},
{
name: "疆藏青",
id: 8,
active: 0,
},
{
name: "渝湘赣",
id: 9,
active: 0,
},
{
name: "陕甘宁",
id: 10,
active: 0,
},
{
name: "云贵川",
id: 11,
active: 0,
},
{
name: "港澳台",
id: 12,
active: 0,
},
],
price: [
{
name: "3000-4000",
id: 1,
active: 0,
},
{
name: "4000-5000",
id: 2,
active: 0,
},
{
name: "5000-6000",
id: 3,
active: 0,
},
{
name: "6000-7000",
id: 4,
active: 0,
},
{
name: "7000-8000",
id: 5,
active: 0,
},
{
name: "8000以上",
id: 6,
active: 0,
},
],
sex: [
{
name: "男",
id: 1,
active: 0,
},
{
name: "女",
id: 2,
active: 0,
},
{
name: "男女不限",
id: -1,
active: -1,
},
],
jobFilter: {
tagArray0: [],
tagArray1: [],
tagArray2: [],
tagArray3: [],
tagArray4: [],
},
classifyList: [],
},
copyList: {},
innerFilter: false,
// 年龄筛选参数
@ -636,7 +465,58 @@ Page({
console.log("清除成功");
},
inputBlur () { },
getListByTypeAndIndustry: function () {},
getListByTypeAndIndustry: function () {
var that = this;
wx.request({
url: app.globalData.ip + "/labels/getListByTypeAndIndustry",
data: {
type: 90,
industry: 2,
},
header: app.globalData.header,
method: "GET",
success: function (res) {
console.log(res.data.data);
wx.setStorageSync("FILTER_LIST", res.data.data);
res.data.data.forEach((item) => {
if (item.typeClassify == "0") {
that.data.tagArray0.push(item);
} else if (item.typeClassify == "1") {
that.data.tagArray1.push(item);
} else if (item.typeClassify == "2") {
that.data.tagArray2.push(item);
} else if (item.typeClassify == "3") {
that.data.tagArray3.push(item);
} else if (item.typeClassify == "4") {
that.data.tagArray4.push(item);
}
});
that.setData({
tagArray0: that.data.tagArray0,
tagArray1: that.data.tagArray1,
tagArray2: that.data.tagArray2,
tagArray3: that.data.tagArray3,
tagArray4: that.data.tagArray4,
});
var jobSpecialLabelIdArray =
that.data.storeJobListSearchForm.jobSpecialLabelIds.split(",");
res.data.data.forEach((item) => {
item["checked"] = false;
jobSpecialLabelIdArray.forEach((item1) => {
if (item.id == item1) {
item["checked"] = true;
}
});
});
that.setData({
jobSpecialLabelList: res.data.data,
});
},
});
},
golistSharePage () {
if (this.data.isLogin) {
if (app.globalData.loginUserInfo.agencyStatus == 1) {
@ -956,7 +836,7 @@ Page({
}
app.getLoginUserTokenInfo();
this.getJobList();
// this.getJobList();
if (wx.getStorageSync("FILTER_LIST")) {
let list = wx.getStorageSync("FILTER_LIST");
list.forEach((item) => {
@ -1185,7 +1065,7 @@ Page({
leftShow: false,
recordList: [],
whichOneShow: "",
// scrollTo: "sticky",
scrollTo: "sticky",
});
if (this.data.choiceCollect == 0) {
this.data.storeJobListSearchForm.ucj = 0;
@ -2893,7 +2773,102 @@ Page({
)
.exec();
},
deleteMark (e) {
// console.log(e);
console.log(e);
let data = e.currentTarget.dataset.item;
let filter = this.data.filterData;
// if(e.currentTarget.dataset.item){
// 判断是否是标签筛选项
this.data.storeJobListSearchForm.pageNum = 1;
if (data.hasOwnProperty("typeClassify")) {
console.log(e);
this.data.selectJobList.forEach((item, index) => {
if (item.id == data.id) {
this.data.selectJobList.splice(index, 1);
let ind =
filter.jobFilter["tagArray" + data.typeClassify].indexOf(item);
console.log(filter.jobFilter["tagArray" + data.typeClassify][ind]);
filter.jobFilter["tagArray" + data.typeClassify][ind].active = 0;
// let ind = filter.classifyList.indexOf(item);
// console.log(filter.classifyList[ind]);
// filter.classifyList[ind].active = false;
this.toList();
}
});
this.setData({
selectJobList: this.data.selectJobList,
filterData: this.data.filterData,
});
} else {
this.data.selectBrandList.forEach((item, index) => {
if (item.id == data.id) {
this.data.selectBrandList.splice(index, 1);
// let ind = filter.jobFilter["tagArray" + data.typeClassify].indexOf(item);
// console.log(filter.jobFilter["tagArray" + data.typeClassify][ind]);
// filter.jobFilter["tagArray" + data.typeClassify][ind].active = 0;
let ind = filter.classifyList.indexOf(item);
console.log(filter.classifyList[ind]);
filter.classifyList[ind].active = 0;
this.toList();
}
});
this.setData({
selectBrandList: this.data.selectBrandList,
filterData: this.data.filterData,
});
}
// }
},
deleteAge (e) {
console.log(e);
let that = this;
that.data.storeJobListSearchForm.ageRangeStr = "16-60";
that.data.storeJobListSearchForm.pageNum = 1;
this.setData({
minAge: 16,
maxAge: 60,
rangeValues: [16, 60],
});
this.toList();
},
deletePaixu (e) {
console.log(e);
let that = this;
// let data = e.currentTarget.dataset.item;
this.data.storeJobListSearchForm.sortTag = 0;
that.data.storeJobListSearchForm.pageNum = 1;
this.setData({
firstMenu: "工价",
activez: "zuigao",
});
this.toList();
},
deleteSex () {
let filter = this.data.filterData;
this.data.storeJobListSearchForm.pageNum = 1;
this.data.filterData.sex.forEach((item, index) => {
item.active = 0;
if (index == 2) {
item.active = -1;
}
});
this.data.smartObj.sex.forEach((item, index) => {
item.active = 0;
if (index == 2) {
item.active = -1;
}
});
this.setData({
filterData: this.data.filterData,
smartObj: this.data.smartObj,
});
this.toList();
},
// tabbar点击监听
onTabItemTap (e) {
console.log(e);

@ -19,7 +19,7 @@
<scroll-view id="listBox" bindscrolltolower="onScrollToLower" scroll-top="{{topNum}}" enhanced binddragstart="listTouchStart" bindscroll="listTouchMove" style="height:calc(100vh)" enable-passive scroll-x="false" scroll-y="true" scroll-into-view="{{scrollTo}}" scroll-with-animation="false" enable-back-to-top="true">
<scroll-view id="listBox" bindscrolltolower="onScrollToLower" scroll-top="{{topNum}}" enhanced binddragstart="listTouchStart" bindscroll="listTouchMove" style="height:calc(100vh - 56px)" enable-passive scroll-x="false" scroll-y="true" scroll-into-view="{{scrollTo}}" scroll-with-animation="false" enable-back-to-top="true">
<view class hover-class="none" hover-stop-propagation="false">
<view class="pr p010 br8" bindtap="sendMsg">
<image show-menu-by-longpress src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/yicai.png" mode="aspectFill" style="width: 100%;height:200px;display:block;" class="db toppic br8"></image>
@ -113,7 +113,7 @@
</view>
</view>-->
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">年龄(岁)</view>
<view class="title">1.年龄(岁)</view>
<view class="content por" style="justify-content:space-between">
<view class="slider_value fsa" style="position: absolute;top: -15px;left: 50%;color: var(--color-ysd);transform:translateX(-50%)" hover-class="none" hover-stop-propagation="false">
<view class hover-class="none" hover-stop-propagation="false">{{minAge + '-'}}</view>
@ -123,43 +123,43 @@
</view>
</view>
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">1.性别(单选)</view>
<view class="title">2.性别(单选)</view>
<view class="content">
<span wx:for="{{filterData.sex}}" catchtap="setActive" wx:key="index" data-type="sex" data-id="{{item.id}}" class="{{item.active ? 'active':''}}" hover-class="none" hover-stop-propagation="false">{{item.name}}</span>
</view>
</view>
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">2.分类</view>
<view class="title">3.分类</view>
<view class="content">
<span wx:for="{{filterData.classifyList}}" catchtap="setActive" wx:key="index" data-type="classifyList" data-id="{{item.id}}" class="{{item.active ? 'active':''}}" hover-class="none" hover-stop-propagation="false">{{item.name}}</span>
</view>
</view>
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">3.薪资福利</view>
<view class="title">4.薪资福利</view>
<view class="content">
<span wx:for="{{filterData.jobFilter.tagArray1}}" catchtap="setActive" wx:key="index" data-type="jobFilter" data-arr="tagArray1" data-id="{{item.id}}" class="{{item.active ? 'active':''}}" hover-class="none" hover-stop-propagation="false">{{item.name}}</span>
</view>
</view>
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">4.宿舍保障</view>
<view class="title">5.宿舍保障</view>
<view class="content">
<span wx:for="{{filterData.jobFilter.tagArray3}}" catchtap="setActive" wx:key="index" data-type="jobFilter" data-arr="tagArray3" data-id="{{item.id}}" class="{{item.active ? 'active':''}}" hover-class="none" hover-stop-propagation="false">{{item.name}}</span>
</view>
</view>
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">5.班制休息</view>
<view class="title">6.班制休息</view>
<view class="content">
<span wx:for="{{filterData.jobFilter.tagArray0}}" catchtap="setActive" wx:key="index" data-type="jobFilter" data-arr="tagArray0" data-id="{{item.id}}" class="{{item.active ? 'active':''}}" hover-class="none" hover-stop-propagation="false">{{item.name}}</span>
</view>
</view>
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">6.面试特色</view>
<view class="title">7.面试特色</view>
<view class="content">
<span wx:for="{{filterData.jobFilter.tagArray4}}" catchtap="setActive" wx:key="index" data-type="jobFilter" data-arr="tagArray4" data-id="{{item.id}}" class="{{item.active ? 'active':''}}" hover-class="none" hover-stop-propagation="false">{{item.name}}</span>
</view>
</view>
<view class="sub" hover-class="none" hover-stop-propagation="false">
<view class="title">7.其他特色</view>
<view class="title">8.其他特色</view>
<view class="content">
<span wx:for="{{filterData.jobFilter.tagArray2}}" catchtap="setActive" wx:key="index" data-type="jobFilter" data-arr="tagArray2" data-id="{{item.id}}" class="{{item.active ? 'active':''}}" hover-class="none" hover-stop-propagation="false">{{item.name}}</span>
</view>
@ -219,81 +219,57 @@
</view>
</view>-->
</view>
<scroll-view class="filterTag display-flex bt1" scroll-x="true" scroll-y="false" scroll-top="0" scroll-left="0" scroll-into-view scroll-with-animation="false" enable-flex enable-back-to-top="false" wx:if="{{selectBrandList.length > 0 || selectJobList.length > 0 || sexid != '-1' ||(storeJobListSearchForm.ageRangeStr && storeJobListSearchForm.ageRangeStr != '16-60')}}">
<view class="display-flex" hover-class="none" hover-stop-propagation="false">
<!-- <view class="tc genderTag f14 por {{activez != 'zuigao' && (selectJobList.length > 0 || selectBrandList.length > 0 || sexid != '-1') ? 'hascontent' : ''}}" catchtap="deletePaixu" style="min-width:60px" wx:if="{{activez != 'zuigao'}}" hover-class="none" hover-stop-propagation="false">
<view class="por" hover-class="none" hover-stop-propagation="false">
<view class="clear_icon iconfont icon-qingchu1"></view>
{{firstMenu}}
</view>
<!-- 标准列表 -->
<view style="display:{{toped == 1 ? 'block' : 'none'}}">
<!-- margin-top:{{(selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'all' || sexid != '-1' ? 34 : 0) + statusBarHeight + ((navigationBarHeight - menuButtonHeight) / 2) + 132}}px -->
<view class="standardList" style="padding-top: 0;min-height: calc(100vh - {{selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'zuigao' || sexid != '-1' ? '170px':'214px'}})">
<!-- bindrefresherrefresh="onScrollRefresh" {{isScrollTop}} -->
<!-- scroll-y="true" enable-back-to-top="true" bindscrolltolower="onScrollToLower" refresher-enabled="{{false}}" lower-threshold="30" refresher-triggered="{{isTrigger}}" class="jobCenterActive" scroll-with-animation="true" scroll-into-view="{{siv}}" style="height:calc(100vh - {{selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'zuigao' || sexid != '-1' ? (navigatorBarHeight + 48) : navigatorBarHeight}}px);" -->
<view>
<!-- <view class="banner" style="display: none">
<swiper indicator-dots="{{true}}" autoplay="{{true}}" loop="{{true}}" interval="2000" duration="500" class="innerSwiper" circular style="width: calc(100vw - 20px); height: calc(100vw / 3 - 21px / 3)" indicator-color="rgba(255,255,255,0.3)" indicator-active-color="#ffffff">
<block wx:for="{{background}}" wx:key="index">
<swiper-item>
<view class="swiper-item">
<navigator url="/pages/specialArea/index?id=608" hover-class="none">
<image src="{{item}}" style="width: calc(100vw - 20px); height: calc(100vw / 3 - 20px / 3)"></image>
</navigator>
</view>
</swiper-item>
</block>
</swiper>
</view>-->
<!-- <view class="quickapply">
<button class="text" size="mini" hover-class="none" catchgetphonenumber="getPhoneNumber" open-type="getPhoneNumber" catchtap="emptyMethod" hover-stop-propagation="false" wx:if="{{!isLogin}}">
<view class="" hover-class="none" hover-stop-propagation="false" bindtap="changeRecordBillType" data-type="photo">
<view class="info">
<view>拍照报名</view>
<view>快速报名</view>
</view>
<view class="t-icon t-icon-paizhao"></view>
</view>
<view class="" hover-class="none" hover-stop-propagation="false" bindtap="changeRecordBillType" data-type="record">
<view class="info">
<view>报名录单</view>
<view>快速报名</view>
<view class="tc genderTag f14 por" catchtap="deleteAge" style="min-width:60px" wx:if="{{ storeJobListSearchForm.ageRangeStr && storeJobListSearchForm.ageRangeStr != '16-60'}}" hover-class="none" hover-stop-propagation="false">
<view class="por" hover-class="none" hover-stop-propagation="false">
<view class="clear_icon iconfont icon-qingchu1"></view>
{{maxAge == minAge ? maxAge + '岁' : storeJobListSearchForm.ageRangeStr + (maxAge == 60 ? '+' : '')}}
</view>
<view class="t-icon t-icon-ludan"></view>
</view>
</button>
<button wx:else style="width: calc(100vw - 20px);">
<view class="" hover-class="none" hover-stop-propagation="false" catchtap="chooseIdCard">
<view class="info">
<view>拍照报名</view>
<view>快速报名</view>
<view class="tc genderTag f14 por {{sexid != '-1' && (selectJobList.length > 0 || selectBrandList.length > 0 ) ? 'hascontent' : ''}}" catchtap="deleteSex" style="min-width:60px" wx:if="{{sexid != '-1'}}" hover-class="none" hover-stop-propagation="false">
<view class="por" hover-class="none" hover-stop-propagation="false">
{{secondMenu}}
<view class="clear_icon iconfont icon-qingchu1"></view>
</view>
<view class="t-icon t-icon-paizhao" />
</view>
<view class="" hover-class="none" hover-stop-propagation="false" catchtap="navigatorToRecord">
<view class="info">
<view>报名录单</view>
<view>快速报名</view>
<view class="brandTag ml8 {{selectBrandList.length > 0 && selectJobList.length > 0 ? 'hascontent' : ''}}" wx:if="{{selectBrandList.length > 0}}">
<block wx:for="{{selectBrandList}}" wx:key="index">
<view class="por" catchtap="deleteMark" data-item="{{item}}">
{{item.name}}
<view class="clear_icon iconfont icon-qingchu1"></view>
</view>
<view class="t-icon t-icon-ludan" />
</block>
</view>
</button>
</view>-->
<!-- <view style="margin: 10px">
<view class="p1612 display-flex bgf br8 spef">
<view class="flex-1 tc" hover-class="thover" catchtap="toSpecialArea" data-id="608">
<i class="t-icon t-icon-jinriretui" style="width: 48px; height: 48px"></i>
<view class="stm">今日热推</view>
<view class="specialTag" wx:if="{{selectJobList.length > 0}}">
<block wx:for="{{selectJobList}}" wx:key="index">
<view class="por" catchtap="deleteMark" data-item="{{item}}">
{{item.name}}
<view class="clear_icon iconfont icon-qingchu1"></view>
</view>
<view class="flex-1 tc" hover-class="thover" catchtap="toSpecialArea" data-id="602">
<i class="t-icon t-icon-duanqigong" style="width: 48px; height: 48px"></i>
<view class="stm">短期工</view>
</block>
</view>
<view class="flex-1 tc" hover-class="thover" catchtap="toSpecialArea" data-id="610">
<i class="t-icon t-icon-hanjiagong" style="width: 48px; height: 48px"></i>
<view class="stm">寒假工</view>
</view>
<view class="flex-1 tc" hover-class="thover" catchtap="toSpecialArea" data-id="603">
<i class="t-icon t-icon-dalinggong" style="width: 48px; height: 48px"></i>
<view class="stm">大龄工</view>
<view class="clear" catchtap="clearFilter1" data-type="outerClear" hover-class="none" hover-stop-propagation="false">
<i class="iconfont icon-qingkong1 f14"></i>
清除
</view>
</scroll-view>
</view>
</view>-->
<!-- 标准列表 -->
<view style="display:{{toped == 1 ? 'block' : 'none'}}">
<!-- margin-top:{{(selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'all' || sexid != '-1' ? 34 : 0) + statusBarHeight + ((navigationBarHeight - menuButtonHeight) / 2) + 132}}px -->
<view class="standardList" style="padding-top: 0;min-height: calc(100vh - {{selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'zuigao' || sexid != '-1' ? '170px':'214px'}})">
<view>
<view x:if="{{recordList != null && recordList.length > 0}}" style="padding-top: 0;overflow-x: hidden;">
<view class="jcenter bgf br8">
<view class="listcontainer" style="border-top: 1px solid #f3f3f3;">

@ -66,6 +66,19 @@ page {
position: absolute;
right: 58px;
}
.clear_icon {
position: absolute;
display: inline-block;
width: 12px;
height: 12px;
line-height: 10px;
border-radius: 50%;
background-color: #fff;
right: -2px;
top: -2px;
color: #aaa;
/* font-size: 12px; */
}
.weui-search-bar__form .icon-sousuo {
left: 8px;
}

Loading…
Cancel
Save