|
@@ -40,7 +40,7 @@
|
|
|
<!-- 添加求职意向 -->
|
|
<!-- 添加求职意向 -->
|
|
|
<view
|
|
<view
|
|
|
class="topbg-yx-box-r flex align-center"
|
|
class="topbg-yx-box-r flex align-center"
|
|
|
- @click="goNav('/package/jobIntention/jobIntention')"
|
|
|
|
|
|
|
+ @click="goNav('/package/jobIntention/tagManage')"
|
|
|
>
|
|
>
|
|
|
<image
|
|
<image
|
|
|
src="../../../static/images/index/Attachment.svg"
|
|
src="../../../static/images/index/Attachment.svg"
|
|
@@ -173,7 +173,7 @@
|
|
|
:key="index"
|
|
:key="index"
|
|
|
>
|
|
>
|
|
|
<!-- 急聘标签 -->
|
|
<!-- 急聘标签 -->
|
|
|
- <view class="urgent-tag">
|
|
|
|
|
|
|
+ <view v-if="item.isDue==1" class="urgent-tag">
|
|
|
<image
|
|
<image
|
|
|
src="../../../static/images/index/jijiji.svg"
|
|
src="../../../static/images/index/jijiji.svg"
|
|
|
class="urgent-icon"
|
|
class="urgent-icon"
|
|
@@ -201,7 +201,7 @@
|
|
|
<text>¥{{ item.salaryRange }}/月</text>
|
|
<text>¥{{ item.salaryRange }}/月</text>
|
|
|
<text>
|
|
<text>
|
|
|
<text class="bonus-tag">奖</text>
|
|
<text class="bonus-tag">奖</text>
|
|
|
- <text class="bonus-xin">16薪</text>
|
|
|
|
|
|
|
+ <text class="bonus-xin">{{item.salaryTimes}}薪</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -228,7 +228,7 @@
|
|
|
<view class="contact-info">
|
|
<view class="contact-info">
|
|
|
<image
|
|
<image
|
|
|
:src="
|
|
:src="
|
|
|
- item.company ? item.company.companyLogo : '../../../static/logo.png'
|
|
|
|
|
|
|
+ item.hr&&item.hr.hrImg?item.hr.hrImg:'../../../static/logo.png'
|
|
|
"
|
|
"
|
|
|
style="
|
|
style="
|
|
|
width: 58rpx;
|
|
width: 58rpx;
|
|
@@ -238,12 +238,8 @@
|
|
|
"
|
|
"
|
|
|
mode=""
|
|
mode=""
|
|
|
></image>
|
|
></image>
|
|
|
- <view class="company-info-text" v-if="item.company">
|
|
|
|
|
- {{
|
|
|
|
|
- item.company.companyLegalPerson
|
|
|
|
|
- ? item.company.companyLegalPerson
|
|
|
|
|
- : "未知"
|
|
|
|
|
- }}·人事总监
|
|
|
|
|
|
|
+ <view class="company-info-text">
|
|
|
|
|
+ {{item.user.userName?item.user.userName:'未知'}}·{{item.hr.hrPosition?item.hr.hrPosition:'未知'}}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="reply-time">10分钟前回复</view>
|
|
<view class="reply-time">10分钟前回复</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -259,7 +255,7 @@
|
|
|
src="../../../static/images/index/navigation.svg"
|
|
src="../../../static/images/index/navigation.svg"
|
|
|
class="distance-icon"
|
|
class="distance-icon"
|
|
|
></image>
|
|
></image>
|
|
|
- <text class="distance">{{ item.distance || "22km" }}</text>
|
|
|
|
|
|
|
+ <text class="distance">{{ item.distance || "--km" }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -292,6 +288,10 @@ export default {
|
|
|
id: 2,
|
|
id: 2,
|
|
|
name: "最新",
|
|
name: "最新",
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 3,
|
|
|
|
|
+ name: '附近',
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
city: "",
|
|
city: "",
|
|
|
searchKeyword: "", // 搜索关键词
|
|
searchKeyword: "", // 搜索关键词
|
|
@@ -303,18 +303,73 @@ export default {
|
|
|
searchLimit: 10,
|
|
searchLimit: 10,
|
|
|
latitude: "",
|
|
latitude: "",
|
|
|
longitude: "",
|
|
longitude: "",
|
|
|
|
|
+ industry:'',
|
|
|
isFixed: false, // 是否固定
|
|
isFixed: false, // 是否固定
|
|
|
fixedThreshold: 300, // 固定阈值
|
|
fixedThreshold: 300, // 固定阈值
|
|
|
|
|
+ education : '' ,//学历
|
|
|
|
|
+ experience : '' ,//经验
|
|
|
|
|
+ salaryRange : '' ,//薪资
|
|
|
|
|
+ companyPeople : '' //公司规模
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
// 获取状态栏高度
|
|
// 获取状态栏高度
|
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
|
-
|
|
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ uni.$on('city', data => {
|
|
|
|
|
+ that.city = data.city
|
|
|
|
|
+ uni.setStorageSync('city', that.city)
|
|
|
|
|
+ })
|
|
|
|
|
+ if (uni.getStorageSync('city')) {
|
|
|
|
|
+ this.city = uni.getStorageSync('city')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.city = ''
|
|
|
|
|
+ }
|
|
|
this.getTypeList();
|
|
this.getTypeList();
|
|
|
this.getLocation();
|
|
this.getLocation();
|
|
|
- this.getJobSearchList();
|
|
|
|
|
|
|
+ //this.getJobSearchList();
|
|
|
|
|
+ },
|
|
|
|
|
+ onUnload(){
|
|
|
|
|
+ uni.$off('city')
|
|
|
|
|
+ },
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ current(newData, oldData) {
|
|
|
|
|
+ console.log(this.current)
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '加载中'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ this.getJobSearchList();
|
|
|
|
|
+ },
|
|
|
|
|
+ currentSx(newData, oldData) {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '加载中'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ this.getJobSearchList();
|
|
|
|
|
+ },
|
|
|
|
|
+ currentjob(newData, oldData) {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '加载中'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ this.getJobSearchList();
|
|
|
|
|
+ },
|
|
|
|
|
+ currentJobSx(newData, oldData) {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '加载中'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ this.getJobSearchList();
|
|
|
|
|
+ },
|
|
|
|
|
+ currentJobSxs(newData, oldData) {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '加载中'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ this.getJobSearchList();
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
onPageScroll(e) {
|
|
onPageScroll(e) {
|
|
|
// 监听页面滚动
|
|
// 监听页面滚动
|
|
@@ -325,9 +380,91 @@ export default {
|
|
|
this.isFixed = false;
|
|
this.isFixed = false;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ onShow(){
|
|
|
|
|
+ //获取选中的筛选条件
|
|
|
|
|
+ if (uni.getStorageSync('filter') && (uni.getStorageSync('filter')).length > 0) {
|
|
|
|
|
+ let filter = uni.getStorageSync('filter')
|
|
|
|
|
+ this.education = '' //学历
|
|
|
|
|
+ this.experience = '' //经验
|
|
|
|
|
+ this.industry = '' //行业
|
|
|
|
|
+ this.salaryRange = '' //薪资
|
|
|
|
|
+ this.companyPeople = '' //公司规模
|
|
|
|
|
+ filter.map(item => {
|
|
|
|
|
+ let arr = []
|
|
|
|
|
+ item.list.map(ite => {
|
|
|
|
|
+ if (ite.value != '不限') {
|
|
|
|
|
+ arr.push(ite.value)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ switch (item.name) {
|
|
|
|
|
+ case '学历要求':
|
|
|
|
|
+ this.education = arr.join(',')
|
|
|
|
|
+ break;
|
|
|
|
|
+ case '薪资范围(单选)':
|
|
|
|
|
+ this.salaryRange = arr.join(',')
|
|
|
|
|
+ break;
|
|
|
|
|
+ case '经验要求':
|
|
|
|
|
+ this.experience = arr.join(',')
|
|
|
|
|
+ break;
|
|
|
|
|
+ case '公司规模':
|
|
|
|
|
+ this.companyPeople = arr.join(',')
|
|
|
|
|
+ break;
|
|
|
|
|
+ case '行业':
|
|
|
|
|
+ this.industry = arr.join(',')
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ // console.log(filter)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.education = '' //学历
|
|
|
|
|
+ this.experience = '' //经验
|
|
|
|
|
+ this.industry = '' //行业
|
|
|
|
|
+ this.salaryRange = '' //薪资
|
|
|
|
|
+ this.companyPeople = '' //公司规模
|
|
|
|
|
+ }
|
|
|
|
|
+ this.getJobSearchList();
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
// 获取工作性质列表
|
|
// 获取工作性质列表
|
|
|
getTypeList() {
|
|
getTypeList() {
|
|
|
|
|
+ var that=this
|
|
|
|
|
+ //行业期望
|
|
|
|
|
+ this.$Request.get('/app/intention/getIntentionList', {
|
|
|
|
|
+
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
|
+ let arr = res.data
|
|
|
|
|
+ let classRule=[{id:'',name:'',label:'全部'}]
|
|
|
|
|
+ let industry=[{id:'不限',name:'不限'}]
|
|
|
|
|
+ var industryArr=this.industry==''?[]:this.industry.split(',')
|
|
|
|
|
+ industryArr.forEach(function(item){
|
|
|
|
|
+ if(that.$queue.array_column(that.directionList,'name').indexOf(item)<0)
|
|
|
|
|
+ industry.push({id:item,name:item})
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ arr.forEach(function(item){
|
|
|
|
|
+ var tmp={}
|
|
|
|
|
+ tmp.id=item.ruleClassifyId
|
|
|
|
|
+ tmp.name=item.ruleClassifyName
|
|
|
|
|
+ tmp.label=item.ruleClassifyName
|
|
|
|
|
+ classRule.push(tmp)
|
|
|
|
|
+ var indus=item.industry.split('/')
|
|
|
|
|
+ indus.forEach(function(ind){
|
|
|
|
|
+ var tm={}
|
|
|
|
|
+ tm.name=ind
|
|
|
|
|
+ tm.id=ind
|
|
|
|
|
+ if(that.$queue.array_column(industry,'name').indexOf(tm.name)<0)
|
|
|
|
|
+ industry.push(tm)
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ this.typeList = classRule
|
|
|
|
|
+ this.directionList=industry
|
|
|
|
|
+ that.getJobList();
|
|
|
|
|
+ // console.log(this.typeList, '1111')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ return;
|
|
|
this.$Request
|
|
this.$Request
|
|
|
.getT("/app/dict/list", {
|
|
.getT("/app/dict/list", {
|
|
|
type: "工作性质",
|
|
type: "工作性质",
|
|
@@ -376,23 +513,35 @@ export default {
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
that.latitude = res.latitude;
|
|
that.latitude = res.latitude;
|
|
|
that.longitude = res.longitude;
|
|
that.longitude = res.longitude;
|
|
|
- that.getJobList();
|
|
|
|
|
|
|
+ that.getSelectCity(res.longitude,res.latitude)
|
|
|
},
|
|
},
|
|
|
fail: function () {
|
|
fail: function () {
|
|
|
that.getJobList();
|
|
that.getJobList();
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ getSelectCity(longitude, latitude) {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ this.$Request.get('/app/Login/selectCity?lat=' + latitude + '&lng=' + longitude).then(res => {
|
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
|
+ // console.log(res, '获取地址信息')
|
|
|
|
|
+ this.city = res.data.city ? res.data.city : '区域'
|
|
|
|
|
+ uni.setStorageSync('city', res.data.city)
|
|
|
|
|
+ that.getJobList();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 获取职位列表
|
|
// 获取职位列表
|
|
|
getJobList() {
|
|
getJobList() {
|
|
|
let data = {
|
|
let data = {
|
|
|
page: this.page,
|
|
page: this.page,
|
|
|
limit: this.limit,
|
|
limit: this.limit,
|
|
|
- postType: this.typeList.length > 0 ? this.typeList[this.current].label : "",
|
|
|
|
|
|
|
+ postType: this.typeList.length > 0 ? this.typeList[this.current].name : "",
|
|
|
screen: +this.currentSx + 1, //1推荐 2最新
|
|
screen: +this.currentSx + 1, //1推荐 2最新
|
|
|
city: this.city == "全国" ? "" : this.city,
|
|
city: this.city == "全国" ? "" : this.city,
|
|
|
lng: this.longitude,
|
|
lng: this.longitude,
|
|
|
lat: this.latitude,
|
|
lat: this.latitude,
|
|
|
|
|
+ isDue:1,
|
|
|
userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
|
|
userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
|
|
|
};
|
|
};
|
|
|
this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
|
|
this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
|
|
@@ -446,14 +595,16 @@ export default {
|
|
|
let data = {
|
|
let data = {
|
|
|
page: this.searchPage,
|
|
page: this.searchPage,
|
|
|
limit: this.searchLimit,
|
|
limit: this.searchLimit,
|
|
|
- postType: this.typeList.length > 0 ? this.typeList[this.current].label : "",
|
|
|
|
|
|
|
+ postType: this.typeList.length > 0 ? this.typeList[this.current].name : "",
|
|
|
screen: +this.currentSx + 1, //1推荐 2最新
|
|
screen: +this.currentSx + 1, //1推荐 2最新
|
|
|
city: this.city == "全国" ? "" : this.city,
|
|
city: this.city == "全国" ? "" : this.city,
|
|
|
lng: this.longitude,
|
|
lng: this.longitude,
|
|
|
lat: this.latitude,
|
|
lat: this.latitude,
|
|
|
|
|
+ isDue:1,
|
|
|
userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
|
|
userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
|
|
|
};
|
|
};
|
|
|
this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
|
|
this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
|
|
|
|
|
+ uni.hideLoading()
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
res.data.records.map((item) => {
|
|
res.data.records.map((item) => {
|
|
|
if (item.positionWelfare) {
|
|
if (item.positionWelfare) {
|