flat: 暂存1
This commit is contained in:
@@ -265,6 +265,9 @@
|
||||
getSwiperList,
|
||||
getPolicyContent
|
||||
} from '@/api/newIndex.js'
|
||||
import {
|
||||
myResume,
|
||||
} from '@/api/resume.js';
|
||||
import {
|
||||
dateFormat
|
||||
} from "../../untils/format.js";
|
||||
@@ -288,7 +291,17 @@
|
||||
swiperType: 1,
|
||||
};
|
||||
},
|
||||
onLoad: function(options) {},
|
||||
onLoad: function(options) {
|
||||
myResume().then(res => {
|
||||
const data = res.data.data
|
||||
if (!(data.education && data.telephone && data.wage && data.workplace)) {
|
||||
this.goures()
|
||||
this.$api.sleep(1000).then(() => {
|
||||
this.$api.msg('请输入基本信息')
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
onShow: function() {
|
||||
if (!this.$store.state.user.token) {
|
||||
uni.reLaunch({
|
||||
|
||||
@@ -77,6 +77,23 @@
|
||||
投诉建议
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<template v-if="user.userIsCms">
|
||||
<view class="btnList" @click="navTo('/pageMy/admin/check')">
|
||||
<image src="../../static/img/check1.png" mode=""></image>
|
||||
岗位发布审核
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<view class="btnList" @click="navTo('/pageMy/admin/dengji')">
|
||||
<image src="../../static/img/dji.png" mode=""></image>
|
||||
线下服务记录登记
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<view class="btnList" @click="navTo('/pageMy/admin/admin')">
|
||||
<image src="../../static/img/dji.png" mode=""></image>
|
||||
零工人员登记
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
</template>
|
||||
<!-- <view class="btnList" @click="go('/pageMy/apply/applications')">
|
||||
<image src="../../static/img/apply.png" mode=""></image>
|
||||
我的申请
|
||||
@@ -106,6 +123,7 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState,
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
import {
|
||||
@@ -122,6 +140,7 @@
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$store.dispatch('getMobileIsCms')
|
||||
// if (this.$store.state.user.token && this.authPass) {
|
||||
// this.$store.dispatch('getVipCode')
|
||||
// }
|
||||
@@ -167,6 +186,7 @@
|
||||
stringFilterNum
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
...mapGetters(['userInfo', 'auth', 'authPass'])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
<block v-if="activeTab == 0">
|
||||
<block v-if="activeTab == 0|| this.activeTab === 2">
|
||||
<view v-if="newList.length > 0" style="padding-bottom: 20rpx;">
|
||||
<block v-for="(item, index) in newList" :key="index">
|
||||
<companyList :companyitem="item" :position="userLocation"></companyList>
|
||||
@@ -44,7 +44,7 @@
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block v-if="activeTab == 1">
|
||||
<block v-if="activeTab == 1|| this.activeTab === 3">
|
||||
<view>
|
||||
<!-- <view class="location" @click="gomap">
|
||||
<image src="../../static/img/location.svg" mode=""></image>
|
||||
@@ -65,13 +65,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="activeTab == 2">
|
||||
<!-- <block v-if="activeTab == 2 ">
|
||||
<view>
|
||||
<!-- <view class="location" @click="gomap">
|
||||
<image src="../../static/img/location.svg" mode=""></image>
|
||||
{{ currentAddress }}(切换位置)
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
|
||||
<view v-if="policyContentList.length > 0" style="padding-bottom: 20rpx;">
|
||||
@@ -85,7 +81,7 @@
|
||||
暂无信息
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block> -->
|
||||
|
||||
<!-- <block v-if="activeTab == 2">
|
||||
|
||||
@@ -179,7 +175,7 @@
|
||||
searchData: {},
|
||||
|
||||
// nonReactiveArray: ["推荐任务", "推荐岗位", "个体户招工"],
|
||||
nonReactiveArray: ["推荐零工岗位", "推荐全职岗位"],
|
||||
nonReactiveArray: ["推荐零工岗位", "推荐全职岗位", "全部零工岗位", "全部全职岗位"],
|
||||
}
|
||||
},
|
||||
onLoad: function() {
|
||||
@@ -259,6 +255,7 @@
|
||||
latitude: res.latitude,
|
||||
longitude: res.longitude
|
||||
}
|
||||
console.log('打印', res)
|
||||
// that.getAddrByPoint(res);
|
||||
that.getNearList(that.currentPoint)
|
||||
},
|
||||
@@ -283,13 +280,13 @@
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
|
||||
changeTab: function(e) {
|
||||
this.isSearch = false;
|
||||
this.activeTab = e;
|
||||
this.nearPage.current = 1;
|
||||
this.newPage.current = 1;
|
||||
this.download();
|
||||
},
|
||||
|
||||
goPolicyInfo(data) {
|
||||
if (data) {
|
||||
// var val=encodeURIComponent(data)
|
||||
@@ -305,7 +302,6 @@
|
||||
// })
|
||||
}
|
||||
},
|
||||
|
||||
//个人户招工;
|
||||
getPolicy() {
|
||||
let params = {
|
||||
@@ -341,8 +337,9 @@
|
||||
// })
|
||||
},
|
||||
//推荐岗位;
|
||||
getNearList: function(point) {
|
||||
nearMission(this.nearPage.current, this.nearPage.size).then(res => {
|
||||
getNearList: function() {
|
||||
const isAll = this.activeTab === 3 ? 1 : 0
|
||||
nearMission(this.nearPage.current, this.nearPage.size, isAll).then(res => {
|
||||
if (this.nearPage.current === 1) {
|
||||
this.companyList = [];
|
||||
}
|
||||
@@ -353,16 +350,15 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//推荐任务;
|
||||
getNewList: function() {
|
||||
newMissionAll(this.newPage.current, this.newPage.size, '').then(res => {
|
||||
const isAll = this.activeTab === 2 ? 1 : 0
|
||||
newMissionAll(this.newPage.current, this.newPage.size, '', isAll).then(res => {
|
||||
if (this.newPage.current === 1) {
|
||||
this.newList = [];
|
||||
}
|
||||
this.newPage.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.records.length) {
|
||||
|
||||
this.newList = this.newList.concat(res.data.data.records);
|
||||
this.newPage.current += 1;
|
||||
}
|
||||
@@ -370,7 +366,8 @@
|
||||
},
|
||||
//上拉加载
|
||||
upLoad: function() {
|
||||
if (this.activeTab === 0) {
|
||||
if (this.activeTab === 0 || this.activeTab === 2) {
|
||||
console.log(this.newPage)
|
||||
if (this.newPage.current <= Math.ceil(this.newPage.total / this.newPage.size)) {
|
||||
|
||||
if (this.isSearch) {
|
||||
@@ -386,7 +383,7 @@
|
||||
}
|
||||
return
|
||||
}
|
||||
if (this.activeTab === 1) {
|
||||
if (this.activeTab === 1 || this.activeTab === 3) {
|
||||
if (this.nearPage.current <= Math.ceil(this.nearPage.total / this.nearPage.size)) {
|
||||
|
||||
if (this.isSearch) {
|
||||
@@ -402,52 +399,52 @@
|
||||
}
|
||||
return
|
||||
}
|
||||
if (this.activeTab === 2) {
|
||||
if (this.policyPage.current <= Math.ceil(this.policyPage.total / this.policyPage
|
||||
.size)) {
|
||||
if (this.isSearch) {
|
||||
this.getPolicySearch()
|
||||
} else {
|
||||
this.getPolicy();
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '已经是最后一页',
|
||||
})
|
||||
}
|
||||
return
|
||||
}
|
||||
// if (this.activeTab === 2) {
|
||||
// if (this.policyPage.current <= Math.ceil(this.policyPage.total / this.policyPage
|
||||
// .size)) {
|
||||
// if (this.isSearch) {
|
||||
// this.getPolicySearch()
|
||||
// } else {
|
||||
// this.getPolicy();
|
||||
// }
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// icon: "none",
|
||||
// title: '已经是最后一页',
|
||||
// })
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
},
|
||||
//下拉刷新
|
||||
download: function() {
|
||||
this.isSearch = false;
|
||||
if (this.activeTab === 0) {
|
||||
if (this.activeTab === 0 || this.activeTab === 2) {
|
||||
this.nearPage.current = 1;
|
||||
this.newPage.current = 1;
|
||||
this.getLocation();
|
||||
this.getNewList();
|
||||
this.getNewList()
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh();
|
||||
}, 1000);
|
||||
return
|
||||
}
|
||||
if (this.activeTab === 1) {
|
||||
if (this.activeTab === 1 || this.activeTab === 3) {
|
||||
this.nearPage.current === 1
|
||||
this.getNearList();
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh();
|
||||
}, 1000);
|
||||
return
|
||||
}
|
||||
if (this.activeTab === 2) {
|
||||
this.policyPage.current = 1;
|
||||
this.getPolicy()
|
||||
this.getNearList()
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh();
|
||||
}, 1000);
|
||||
return
|
||||
}
|
||||
// if (this.activeTab === 2) {
|
||||
// this.policyPage.current = 1;
|
||||
// this.getPolicy()
|
||||
// setTimeout(function() {
|
||||
// uni.stopPullDownRefresh();
|
||||
// }, 1000);
|
||||
// return
|
||||
// }
|
||||
},
|
||||
getData: function() {
|
||||
if (!this.$store.state.user.token) {
|
||||
@@ -465,8 +462,6 @@
|
||||
// this.getPolicy()
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
closePopUp() {
|
||||
this.showPopUp = false
|
||||
},
|
||||
@@ -484,18 +479,17 @@
|
||||
if (submitData || areaModal || industryModal) {
|
||||
this.isSearch = true;
|
||||
}
|
||||
|
||||
this.newPage.current = 1;
|
||||
this.nearPage.current = 1
|
||||
this.policyPage.current = 1
|
||||
switch (this.activeTab) {
|
||||
case 0:
|
||||
this.newPage.current = 1;
|
||||
this.getNewListSearch()
|
||||
break;
|
||||
case 1:
|
||||
this.nearPage.current = 1
|
||||
this.getNearListSearch()
|
||||
break;
|
||||
case 2:
|
||||
this.policyPage.current = 1
|
||||
this.getPolicySearch()
|
||||
break;
|
||||
|
||||
@@ -504,8 +498,6 @@
|
||||
}
|
||||
this.showPopUp = false
|
||||
},
|
||||
|
||||
|
||||
//个体户招工搜索;
|
||||
getPolicySearch: function() {
|
||||
const {
|
||||
@@ -667,7 +659,8 @@
|
||||
|
||||
.typeButtonLeft {
|
||||
display: flex;
|
||||
|
||||
width: 80%;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
.typeButton {
|
||||
|
||||
Reference in New Issue
Block a user