优化招聘页面

This commit is contained in:
dengxin
2024-03-27 09:41:39 +08:00
parent 14498c5003
commit c68140e026
2 changed files with 729 additions and 18 deletions

View File

@@ -302,11 +302,10 @@ export default {
},
changeTab: function (e) {
this.isSearch = false;
this.activeTab = e;
},
//推荐岗位;
getNearList: function (point) {
nearMission(this.nearPage.current, this.nearPage.size).then(res => {
if (this.nearPage.current === 1) {
this.companyList = [];
@@ -314,7 +313,6 @@ export default {
this.nearPage.current += 1;
this.nearPage.total = res.data.data.total;
if (res.data.data && res.data.data.records.length) {
this.companyList = this.companyList.concat(res.data.data.records);
}
})
@@ -335,21 +333,20 @@ export default {
// })
}
},
//推荐岗位;
getRecommendList: function () {
recommendMission(this.recommendPage.current, this.recommendPage.size, '').then(res => {
if (this.recommendPage.current === 1) {
this.recommendList = [];
}
this.recommendPage.current += 1;
this.recommendPage.total = res.data.data.total;
if (res.data.data && res.data.data.records.length) {
debugger
this.recommendList = this.recommendList.concat(res.data.data.records);
}
})
},
// getRecommendList: function () {
// recommendMission(this.recommendPage.current, this.recommendPage.size, '').then(res => {
// if (this.recommendPage.current === 1) {
// this.recommendList = [];
// }
// this.recommendPage.current += 1;
// this.recommendPage.total = res.data.data.total;
// if (res.data.data && res.data.data.records.length) {
// this.recommendList = this.recommendList.concat(res.data.data.records);
// }
// })
// },
//推荐任务;
getNewList: function () {
newMissionAll(this.newPage.current, this.newPage.size, '').then(res => {
@@ -458,9 +455,10 @@ export default {
this.recommendPage.current = 1;
this.newPage.current = 1;
this.getLocation();
this.getRecommendList();
// this.getRecommendList();
this.getNewList();
this.getNearList();
this.getPolicy()
}
},