我的申请,我的收藏,浏览记录联调
This commit is contained in:
@@ -109,6 +109,32 @@ export const myMission = (current, size, status) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*我的收藏*/
|
||||||
|
export const myCollection = (current, size, status) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/jobslink-api/works/jkworkscollect/getCollectListByUserId',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
status
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/*浏览记录*/
|
||||||
|
export const myBrowing = (current, size, status) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/jobslink-api/user/useraction/getListByUserId',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
status
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/*任务详情*/
|
/*任务详情*/
|
||||||
export const missionDetail = (missionNo) => {
|
export const missionDetail = (missionNo) => {
|
||||||
return request({
|
return request({
|
||||||
@@ -133,24 +159,26 @@ export const workDetail = (workId) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*获取收藏状态*/
|
/*获取收藏状态*/
|
||||||
export const getCollectState = (workId) => {
|
export const getCollectState = (workId, type) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/jobslink-api/works/jkworkscollect/getCollectStatus',
|
url: '/api/jobslink-api/works/jkworkscollect/getCollectStatus',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
workId
|
workId,
|
||||||
|
type
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*收藏和取消收藏接口*/
|
/*收藏和取消收藏接口*/
|
||||||
export const updateCollectStatus = (workId, status) => {
|
export const updateCollectStatus = (workId, status, type) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/jobslink-api/works/jkworkscollect/updateCollectStatus',
|
url: '/api/jobslink-api/works/jkworkscollect/updateCollectStatus',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
workId,
|
workId,
|
||||||
status
|
status,
|
||||||
|
type
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
225
components/companyList/collectionList.vue
Normal file
225
components/companyList/collectionList.vue
Normal file
@@ -0,0 +1,225 @@
|
|||||||
|
<template>
|
||||||
|
<view class="body" @click="goInfo(companyitem)">
|
||||||
|
<view class="heads">
|
||||||
|
<view class="head_left">
|
||||||
|
<rich-text :nodes="string">
|
||||||
|
</rich-text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="head_right">
|
||||||
|
{{ companyitem.wage }}
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<view class="ask">
|
||||||
|
<view class="askList">
|
||||||
|
{{ companyitem.tradeNames }}
|
||||||
|
</view>
|
||||||
|
<view class="askList" v-for="(item, index) in skillNames" :key="index">
|
||||||
|
{{ item }}
|
||||||
|
</view>
|
||||||
|
<view style="flex:1;"></view>
|
||||||
|
<u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag>
|
||||||
|
<u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag>
|
||||||
|
</view>
|
||||||
|
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
|
||||||
|
<view class="timeAddress" style="position: relative;">
|
||||||
|
<view style="display: flex;align-items: center;">
|
||||||
|
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image>
|
||||||
|
<view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view>
|
||||||
|
</view>
|
||||||
|
<view style="display: flex;align-items: center;position:absolute;right:0;">
|
||||||
|
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
|
||||||
|
<view>2.2km</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
|
||||||
|
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
|
||||||
|
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll"
|
||||||
|
mode="" :key="index1"></image>
|
||||||
|
<image class="commentimg_image" src="../../static/img/star.empty.svg"
|
||||||
|
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
|
||||||
|
</view>
|
||||||
|
<view class="comment_content allName gocomment" v-else>
|
||||||
|
评价
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
toDoller,
|
||||||
|
dateFormat
|
||||||
|
} from "../../untils/format.js";
|
||||||
|
import dictionary from '@/common/textdata.js';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
beforeCreate: function () { },
|
||||||
|
props: {
|
||||||
|
companyitem: {
|
||||||
|
type: Object,
|
||||||
|
default() { return [] }
|
||||||
|
},
|
||||||
|
comment: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
noApply: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
near: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
...dictionary,
|
||||||
|
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.missionTitle +
|
||||||
|
"</div>"
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
skillNames() {
|
||||||
|
return this.companyitem.skillNames.split(',')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
goComment: function (no) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
|
||||||
|
})
|
||||||
|
},
|
||||||
|
goInfo: function (item) {
|
||||||
|
// const isCan = this.noApply === false ? '0' : '1'
|
||||||
|
if(item.type == 0) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1`
|
||||||
|
})
|
||||||
|
} else if(item.type == 1) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getCity: function (val) {
|
||||||
|
if (val) {
|
||||||
|
let areas = this.$store.getters.getAreaParents(val)
|
||||||
|
if (areas.length === 3) {
|
||||||
|
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toDoller,
|
||||||
|
dateFormat
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.commentimg_image {
|
||||||
|
width: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.commentimg {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gocomment {
|
||||||
|
font-size: 26rpx !important;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
border: 1rpx solid #c3c3c3;
|
||||||
|
width: 160rpx;
|
||||||
|
text-align: center;
|
||||||
|
float: right;
|
||||||
|
height: 50rpx;
|
||||||
|
line-height: 50rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeAddress {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin: 10rpx 0;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.allName {
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.askList {
|
||||||
|
/* width: 14%; */
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
background-color: #f6f6f6;
|
||||||
|
padding: 5rpx 15rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ask {
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
margin: 20rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.head_right {
|
||||||
|
ont-family: PingFangSC-Medium;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #F46161;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.head_left {
|
||||||
|
font-family: PingFangSC-Medium;
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333333;
|
||||||
|
width: 350rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
/*不换行*/
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
/*超出部分文字以...显示*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
color: #F46161;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body {
|
||||||
|
width: 690rpx;
|
||||||
|
margin: 0rpx auto;
|
||||||
|
background-color: #fefefe;
|
||||||
|
overflow: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20rpx;
|
||||||
|
padding-bottom: 0;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heads {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
201
pageMy/myProject/browsingHistory.vue
Normal file
201
pageMy/myProject/browsingHistory.vue
Normal file
@@ -0,0 +1,201 @@
|
|||||||
|
<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">{{ 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 {
|
||||||
|
myBrowing
|
||||||
|
} 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
|
||||||
|
myBrowing(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>
|
||||||
153
pageMy/myProject/myCollection.vue
Normal file
153
pageMy/myProject/myCollection.vue
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
<template>
|
||||||
|
<view class="body">
|
||||||
|
<!-- <view class="tab">
|
||||||
|
<v-tabs :tabs="['全部任务','全部岗位']" v-model="activeTab" color="#999" activeColor="#000" fontSize="36rx"
|
||||||
|
activeFontSize="36rpx" @change='changeTab' />
|
||||||
|
</view> -->
|
||||||
|
<block v-for="(page, pIndex) in data" :key="pIndex">
|
||||||
|
<block v-for="(item, index) in page" :key="item.id">
|
||||||
|
<view class="probody">
|
||||||
|
<company-list :companyitem="item" :noApply="false"></company-list>
|
||||||
|
<view class="baddd"></view>
|
||||||
|
<!-- <block>
|
||||||
|
<image src="/static/img/tab.orange.svg" mode="" v-if="item.status === 1"></image>
|
||||||
|
<image src="/static/img/tab.blue.svg" mode="" v-else-if="item.status === 2"></image>
|
||||||
|
<image src="/static/img/tab.green.svg" mode="" v-else-if="item.status === 3"></image>
|
||||||
|
<image src="/static/img/tab.gray.svg" mode="" v-else></image>
|
||||||
|
</block> -->
|
||||||
|
</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 companyList from '@/components/companyList/collectionList.vue';
|
||||||
|
import {
|
||||||
|
myCollection
|
||||||
|
} from '@/api/mission.js';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
vTabs,
|
||||||
|
companyList
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
data: [],
|
||||||
|
activeTab: 0,
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
total: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
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
|
||||||
|
myCollection(this.current, this.size, status).then(res => {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</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;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||||
import companyList from '@/components/companyList/sqList.vue';
|
import companyList from '@/components/companyList/applyList.vue';
|
||||||
import {
|
import {
|
||||||
myMission
|
myMission
|
||||||
} from '@/api/mission.js';
|
} from '@/api/mission.js';
|
||||||
|
|||||||
16
pages.json
16
pages.json
@@ -397,6 +397,22 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
|
"path" : "myProject/myCollection",
|
||||||
|
"style" : {
|
||||||
|
"navigationBarTitleText" : "我的收藏",
|
||||||
|
"navigationBarBackgroundColor" : "#FFFFFF",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
|
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path" : "myProject/browsingHistory",
|
||||||
|
"style" : {
|
||||||
|
"navigationBarTitleText" : "浏览记录",
|
||||||
|
"navigationBarBackgroundColor" : "#FFFFFF",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
|
|
||||||
|
}
|
||||||
|
},{
|
||||||
"path" : "setUserBase/seal/setSealPassword",
|
"path" : "setUserBase/seal/setSealPassword",
|
||||||
"style" : {
|
"style" : {
|
||||||
"navigationBarTitleText" : "设置签名密码",
|
"navigationBarTitleText" : "设置签名密码",
|
||||||
|
|||||||
@@ -24,11 +24,11 @@
|
|||||||
<image src="../../static/img/job.svg" mode=""></image>
|
<image src="../../static/img/job.svg" mode=""></image>
|
||||||
我的申请
|
我的申请
|
||||||
</view>
|
</view>
|
||||||
<view class="BarList" @click="">
|
<view class="BarList" @click="go('/pageMy/myProject/myCollection')">
|
||||||
<image src="../../static/img/salary.svg" mode=""></image>
|
<image src="../../static/img/salary.svg" mode=""></image>
|
||||||
我的收藏
|
我的收藏
|
||||||
</view>
|
</view>
|
||||||
<view class="BarList" @click="">
|
<view class="BarList" @click="go('/pageMy/myProject/browsingHistory')">
|
||||||
<image src="../../static/img/contract.png" mode=""></image>
|
<image src="../../static/img/contract.png" mode=""></image>
|
||||||
浏览记录
|
浏览记录
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -136,7 +136,6 @@
|
|||||||
<view style="font-size: 28rpx;font-weight: bold;">重要提示:</view>
|
<view style="font-size: 28rpx;font-weight: bold;">重要提示:</view>
|
||||||
<view style="font-size: 24rpx;color:#707070;margin-top:10rpx;">为保障个人基本劳动权益,建议通过平台用工的形式就业</view>
|
<view style="font-size: 24rpx;color:#707070;margin-top:10rpx;">为保障个人基本劳动权益,建议通过平台用工的形式就业</view>
|
||||||
<view style="text-align: center;font-size:28rpx;margin-top: 30rpx;"> {{ info.callName }} : {{ info.callTel }}</view>
|
<view style="text-align: center;font-size:28rpx;margin-top: 30rpx;"> {{ info.callName }} : {{ info.callTel }}</view>
|
||||||
<!-- <view style="margin-left: 50rpx;font-size:28rpx;margin-top: 7rpx;">手机号:{{ info.callTel }}</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
@@ -234,7 +233,7 @@
|
|||||||
collect() {
|
collect() {
|
||||||
// console.log('收藏,取消收藏')
|
// console.log('收藏,取消收藏')
|
||||||
const status = this.collectStatus == 0 ? 1 : 0;
|
const status = this.collectStatus == 0 ? 1 : 0;
|
||||||
updateCollectStatus(this.info.id, status).then(res => {
|
updateCollectStatus(this.info.id, status, 0).then(res => {
|
||||||
if(res.data.code == 200) {
|
if(res.data.code == 200) {
|
||||||
this.getCollectStatus()
|
this.getCollectStatus()
|
||||||
}
|
}
|
||||||
@@ -248,7 +247,7 @@
|
|||||||
},
|
},
|
||||||
// 获取收藏状态
|
// 获取收藏状态
|
||||||
getCollectStatus() {
|
getCollectStatus() {
|
||||||
getCollectState(this.info.id).then(res => {
|
getCollectState(this.info.id, 0).then(res => {
|
||||||
// 0 未收藏,1 已收藏
|
// 0 未收藏,1 已收藏
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
this.collectStatus = res.data.data;
|
this.collectStatus = res.data.data;
|
||||||
|
|||||||
@@ -138,7 +138,15 @@
|
|||||||
<view v-if="nextBtn" class="down" @click="next">下一步</view>
|
<view v-if="nextBtn" class="down" @click="next">下一步</view>
|
||||||
</view>
|
</view>
|
||||||
</uniMask>
|
</uniMask>
|
||||||
|
<u-popup closeable :show="showPopUp" mode="bottom" @close="closePopUp">
|
||||||
|
<view style="height: 200rpx;padding: 20rpx 40rpx;">
|
||||||
|
<view style="font-size: 28rpx;font-weight: bold;">重要提示:</view>
|
||||||
|
<view style="font-size: 24rpx;color:#707070;margin-top:10rpx;">为保障个人基本劳动权益,建议通过平台用工的形式就业</view>
|
||||||
|
<view style="text-align: center;font-size:28rpx;margin-top: 30rpx;"> {{ info.callName }} : {{ info.callTel }}</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-else-if="showCode" class="codeSealBox">
|
<view v-else-if="showCode" class="codeSealBox">
|
||||||
<!-- #ifdef H5 || APP-PLUS -->
|
<!-- #ifdef H5 || APP-PLUS -->
|
||||||
<view class="closeCode" @click="closeShowCode" style="top: 124rpx;">+</view>
|
<view class="closeCode" @click="closeShowCode" style="top: 124rpx;">+</view>
|
||||||
@@ -196,6 +204,7 @@
|
|||||||
src: 'https://jlfiles.oss-cn-zhangjiakou.aliyuncs.com/jobslink-api/doc/%E7%94%B5%E5%AD%90%E5%90%88%E5%90%8C%E9%A2%84%E8%A7%88%E5%9B%BE%E7%89%87.png',
|
src: 'https://jlfiles.oss-cn-zhangjiakou.aliyuncs.com/jobslink-api/doc/%E7%94%B5%E5%AD%90%E5%90%88%E5%90%8C%E9%A2%84%E8%A7%88%E5%9B%BE%E7%89%87.png',
|
||||||
maxlength: 6,
|
maxlength: 6,
|
||||||
collectStatus: 0, // 收藏状态
|
collectStatus: 0, // 收藏状态
|
||||||
|
showPopUp: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {uniMask,validCode},
|
components: {uniMask,validCode},
|
||||||
@@ -230,18 +239,21 @@
|
|||||||
collect() {
|
collect() {
|
||||||
// console.log('收藏,取消收藏')
|
// console.log('收藏,取消收藏')
|
||||||
const status = this.collectStatus == 0 ? 1 : 0;
|
const status = this.collectStatus == 0 ? 1 : 0;
|
||||||
updateCollectStatus(this.info.id, status).then(res => {
|
updateCollectStatus(this.info.id, status, 1).then(res => {
|
||||||
if(res.data.code == 200) {
|
if(res.data.code == 200) {
|
||||||
this.getCollectStatus()
|
this.getCollectStatus()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
callPhone() {
|
callPhone() {
|
||||||
console.log('电话联系')
|
this.showPopUp = true;
|
||||||
|
},
|
||||||
|
closePopUp() {
|
||||||
|
this.showPopUp = false;
|
||||||
},
|
},
|
||||||
// 获取收藏状态
|
// 获取收藏状态
|
||||||
getCollectStatus() {
|
getCollectStatus() {
|
||||||
getCollectState(this.info.id).then(res => {
|
getCollectState(this.info.id, 1).then(res => {
|
||||||
// 0 未收藏,1 已收藏
|
// 0 未收藏,1 已收藏
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
this.collectStatus = res.data.data;
|
this.collectStatus = res.data.data;
|
||||||
|
|||||||
@@ -27,11 +27,11 @@
|
|||||||
<view v-show="!searchResultShow" class="search-history">
|
<view v-show="!searchResultShow" class="search-history">
|
||||||
<view class="title">搜索记录</view>
|
<view class="title">搜索记录</view>
|
||||||
<view class="clear" @click="clearKeyWords">
|
<view class="clear" @click="clearKeyWords">
|
||||||
<image src="../../static/img/delete.png" style="width: 20rpx;height: 20rpx;" mode=""></image>
|
<image src="../../static/img/delete.png" style="width: 24rpx;height: 24rpx;" mode=""></image>
|
||||||
<view style="margin-left: 5rpx;">清空</view>
|
<view style="margin-left: 5rpx;">清空</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrapper" v-if="searchHistoryList.length > 0">
|
<view class="wrapper" v-if="searchHistoryList.length > 0">
|
||||||
<view class="item" v-for="(item, index) in searchHistoryList">
|
<view class="item" v-for="(item, index) in searchHistoryList" @click="keyWordsClick(item.keywords)">
|
||||||
{{ item.keywords }}
|
{{ item.keywords }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -160,6 +160,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
keyWordsClick(keyWords) {
|
||||||
|
console.log(keyWords)
|
||||||
|
this.keywords = keyWords;
|
||||||
|
this.getNewList();
|
||||||
|
},
|
||||||
//最新任务;
|
//最新任务;
|
||||||
getList: function (type) {
|
getList: function (type) {
|
||||||
//改变搜索条件,页码值变为1
|
//改变搜索条件,页码值变为1
|
||||||
@@ -340,7 +345,7 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20rpx;
|
right: 20rpx;
|
||||||
top: 10rpx;
|
top: 10rpx;
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #707070;
|
color: #707070;
|
||||||
@@ -355,9 +360,9 @@ export default {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
.search-history .wrapper .item {
|
.search-history .wrapper .item {
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
background-color: #f6f6f6;
|
background-color: #f6f6f6;
|
||||||
padding: 10rpx;
|
padding: 8rpx 12rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user