flat: 暂存
This commit is contained in:
@@ -283,3 +283,11 @@ export const getListByKeyWords = (keywords) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getMyInviteUserList = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/jobslink-api/user/userrecruit/getMyInviteUserList',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -199,6 +199,13 @@
|
|||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/my/Browsinghistory",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "浏览记录",
|
||||||
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/user/policyContent",
|
"path": "pages/user/policyContent",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
205
pages/my/Browsinghistory.vue
Normal file
205
pages/my/Browsinghistory.vue
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
<template>
|
||||||
|
<view class="body">
|
||||||
|
<!-- <view v-if="browsingResultList.length > 0" class="search-result">
|
||||||
|
<view v-for="(item, index) in browsingResultList" class="search-item" v-if="item.workname" :key="index" @click="">
|
||||||
|
<image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx;margin-right: 10rpx;" mode=""></image>
|
||||||
|
<view style="flex:1">{{ item.workname }}</view>
|
||||||
|
<view class="type" v-if="item.type == 0">任务</view>
|
||||||
|
<view class="type" v-else-if="item.type == 1">岗位</view>
|
||||||
|
<view class="type" v-else-if="item.type == 2">政策</view>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<block v-for="(page, pIndex) in data" :key="pIndex">
|
||||||
|
<block v-for="(item, index) in page" :key="item.id">
|
||||||
|
<view class="search-item" @click="toDetail(item)">
|
||||||
|
<!-- <company-list :companyitem="item" :noApply="false"></company-list> -->
|
||||||
|
<image src="../../static/img/eyeopen.svg" style="width: 32rpx;height: 32rpx;margin-right: 10rpx;"
|
||||||
|
mode=""></image>
|
||||||
|
<view style="flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{ item.workname }}
|
||||||
|
</view>
|
||||||
|
<view class="type" v-if="item.type == 0">零工岗位</view>
|
||||||
|
<view class="type" v-else-if="item.type == 1">全职岗位</view>
|
||||||
|
<view class="type" v-else-if="item.type == 2">政策</view>
|
||||||
|
<view class="baddd"></view>
|
||||||
|
</view>
|
||||||
|
</block>
|
||||||
|
</block>
|
||||||
|
<view class="nothing" v-if="data.length === 0">
|
||||||
|
<image src="/static/img/pic_notask.svg" mode=""></image>
|
||||||
|
<view class="nothingContnt">
|
||||||
|
暂无浏览信息
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||||
|
import {
|
||||||
|
getMyInviteUserList
|
||||||
|
} from '@/api/mission.js';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
vTabs,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
data: [],
|
||||||
|
activeTab: 0,
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
total: 0,
|
||||||
|
browsingResultList: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad: function() {
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
/*页面滚动到底部 换页*/
|
||||||
|
onReachBottom: function() {
|
||||||
|
if (this.current <= Math.ceil(this.total / this.size)) {
|
||||||
|
this.getData();
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: '已经是最后一页',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/*下拉刷新*/
|
||||||
|
onPullDownRefresh: function() {
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.current = 1
|
||||||
|
this.data = []
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
var status = Number(this.activeTab) + 1
|
||||||
|
getMyInviteUserList(this.current, this.size, status).then(res => {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
console.log(res)
|
||||||
|
if (this.current === 1) {
|
||||||
|
this.data = [];
|
||||||
|
}
|
||||||
|
this.current += 1;
|
||||||
|
this.total = res.data.data.total;
|
||||||
|
if (res.data.data && res.data.data.records.length) {
|
||||||
|
this.data.push(res.data.data.records);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gomap: function() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '../mapSeach/mapSeach'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
changeTab: function(e) {
|
||||||
|
this.activeTab = e;
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
toDetail(item) {
|
||||||
|
const no = item.id
|
||||||
|
// 判断是岗位还是任务 0:任务,1:岗位,2:政策
|
||||||
|
if (item.type == 0) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=1`
|
||||||
|
})
|
||||||
|
} else if (item.type == 1) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(no)}&isCan=1`
|
||||||
|
})
|
||||||
|
} else if (item.type == 2) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/user/policyContent?id=${no}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
page {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab {
|
||||||
|
height: 46px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.probody image {
|
||||||
|
width: 88rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.probody {
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.baddd {
|
||||||
|
background: #f6f6f6;
|
||||||
|
height: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nothing {
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 50%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nothing image {
|
||||||
|
width: 400rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nothingContnt {
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #666;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 26rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
border-bottom: 1rpx solid #ddd;
|
||||||
|
height: 60rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 26rpx;
|
||||||
|
border-bottom: 1rpx solid #ddd;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
padding: 10rpx 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-item .type {
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #707070;
|
||||||
|
background-color: #dddddd;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
line-height: 30rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -17,9 +17,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="centerBar">
|
<view class="centerBar">
|
||||||
<view class="BarList" @click="go('/pageMy/my/resume/index')">
|
<view class="BarList" @click="go('/pages/my/Browsinghistory')">
|
||||||
<image src="../../static/img/resumeMy.svg" mode=""></image>
|
<image src="../../static/img/resumeMy.svg" mode=""></image>
|
||||||
我的简历
|
邀请记录
|
||||||
</view>
|
</view>
|
||||||
<view class="BarList" @click="go('/pageMy/myProject/myProject')">
|
<view class="BarList" @click="go('/pageMy/myProject/myProject')">
|
||||||
<image src="../../static/img/job.svg" mode=""></image>
|
<image src="../../static/img/job.svg" mode=""></image>
|
||||||
|
|||||||
@@ -4,10 +4,11 @@
|
|||||||
<u-collapse>
|
<u-collapse>
|
||||||
<u-collapse-item :title="`${item.realName} ${item.education}` " class="collapseItem" name="Docs guide"
|
<u-collapse-item :title="`${item.realName} ${item.education}` " class="collapseItem" name="Docs guide"
|
||||||
v-for="(item, index) in dataSource" :key="item.id">
|
v-for="(item, index) in dataSource" :key="item.id">
|
||||||
|
<text slot="value" class="u-page__item__title__slot-title">自定义内容</text>
|
||||||
<view class="u-collapse-content">
|
<view class="u-collapse-content">
|
||||||
<view class="">期望薪资:{{ item.wage }}</view>
|
<view class="content_line">期望薪资:{{ item.wage }}</view>
|
||||||
<view class="">技  能:{{ item.skillName }}</view>
|
<view class="content_line">技  能:{{ item.skillName }}</view>
|
||||||
<view class="">工作地区:{{ item.workplace }}</view>
|
<view class="content_line">工作地区:{{ item.workplace }}</view>
|
||||||
<view class="btnGr" v-if="item.isWorkInvite === 0" @click="updataRow(item)">邀  请
|
<view class="btnGr" v-if="item.isWorkInvite === 0" @click="updataRow(item)">邀  请
|
||||||
</view>
|
</view>
|
||||||
<view class="btnHuy" v-else @click="removeRow(item)">取  消</view>
|
<view class="btnHuy" v-else @click="removeRow(item)">取  消</view>
|
||||||
@@ -134,6 +135,10 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.content_line {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.btnGr {
|
.btnGr {
|
||||||
background-color: green;
|
background-color: green;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@@ -141,9 +146,11 @@
|
|||||||
padding: 5rpx 10rpx;
|
padding: 5rpx 10rpx;
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-top: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnHuy {
|
.btnHuy {
|
||||||
|
margin-top: 10rpx;
|
||||||
background-color: #e8e8e8;
|
background-color: #e8e8e8;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user