Browse Source

增加代码修复

master
主管理员 2 months ago
parent
commit
d414dda3b7
2 changed files with 52 additions and 3 deletions
  1. +16
    -0
      api/model/index-lzx.js
  2. +36
    -3
      pages_order/work/workDetail.vue

+ 16
- 0
api/model/index-lzx.js View File

@ -59,6 +59,22 @@ const api = {
limit : 500, limit : 500,
showLoading : true, showLoading : true,
}, },
//我的收藏-添加简历收藏
addResumeCollection: {
url: '/employ/collection/addResumeCollection',
method: 'POST',
auth: true,
limit : 500,
showLoading : true,
},
//我的收藏-添加工作收藏
addJobCollection: {
url: '/employ/collection/addJobCollection',
method: 'POST',
auth: true,
limit : 500,
showLoading : true,
},
} }
export default api export default api

+ 36
- 3
pages_order/work/workDetail.vue View File

@ -63,14 +63,28 @@
<view class="title2"> <view class="title2">
<text>职位详情</text> <text>职位详情</text>
<view>
<view v-if="collectionFlag == false" @click="addJobCollection">
<uv-icon <uv-icon
size="30rpx" size="30rpx"
color="666" color="666"
name="star" name="star"
></uv-icon> ></uv-icon>
收藏 收藏
</view> </view>
<view v-else
@click="addJobCollection" style="color: red;">
<uv-icon
size="30rpx"
color="666"
name="star"
></uv-icon>
已收藏
</view>
</view> </view>
<view class="tag-list"> <view class="tag-list">
@ -119,7 +133,7 @@
<view class="list-work"> <view class="list-work">
<view class="text"> <view class="text">
推荐职位<text>19</text>
推荐职位<text>{{total}}</text>
</view> </view>
<view style="margin: 20rpx;" <view style="margin: 20rpx;"
@ -158,12 +172,14 @@
personInfo:{}, personInfo:{},
companyInfo:{}, companyInfo:{},
hanHaiMember:{}, hanHaiMember:{},
total:0,
collectionFlag : false, collectionFlag : false,
mixinsListApi : 'employeeQueryJobList', mixinsListApi : 'employeeQueryJobList',
} }
}, },
onLoad({id}) { onLoad({id}) {
this.id = id this.id = id
this.queryParams.id=id;
}, },
onShow() { onShow() {
this.text = this.$utils.stringFormatHtml(text) this.text = this.$utils.stringFormatHtml(text)
@ -180,13 +196,30 @@
this.$api('employeeQueryJobById', data, res => { this.$api('employeeQueryJobById', data, res => {
if(res.code == 200){ if(res.code == 200){
this.detail = res.result.jobInfo this.detail = res.result.jobInfo
this.collectionFlag = res.result.collectionFlag
this.collectionFlag = res.result.CollectionFlage
this.personInfo = res.result.personInfo this.personInfo = res.result.personInfo
this.companyInfo = res.result.companyInfo this.companyInfo = res.result.companyInfo
this.hanHaiMember = res.result.hanHaiMember this.hanHaiMember = res.result.hanHaiMember
} }
}) })
}, },
addJobCollection(){
let data = {
jobId : this.id
}
if(uni.getStorageSync('token')){
data.token = uni.getStorageSync('token')
}
this.$api('addJobCollection', data, res => {
if(res.code == 200){
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
this.getDetail();
}
} }
} }
</script> </script>


Loading…
Cancel
Save