Explorar el Código

Hr端查看简历完善

zhengkaixin hace 3 años
padre
commit
77c065a15a

+ 1 - 1
.env.js

@@ -1,5 +1,5 @@
 (function() {  
-    const NODE_ENV = 'test'; // dev:开发环境 | test:测试环境  
+    const NODE_ENV = 'dev'; // dev:开发环境 | test:测试环境  
     let ENV_VAR = null;  
 	 
 	var NODE_NAME=  process.env['NODE_NAME']

+ 1 - 1
apis/job/job.js

@@ -64,7 +64,7 @@ export function getRecruitmentDetails(id) {
  	return request({
  		url: '/mobile/resumeApi/myResumeDetail',
  	 	data: {
- 			id:id
+ 			resumeId:id
  		},
  		method: 'post',
  		

+ 1 - 1
components/hr/ResumeItem.vue

@@ -74,7 +74,7 @@
 			},
 			ckBtn() {
 				if (this.ck) {
-					this.gotoUrl('pages/job/index/resumeInfo/resumeInfo?id=' + this.item.resumeId)
+					this.gotoUrl('pages/hr/index/resumeInfo/resumeInfo?id=' + this.item.resumeId)
 				} else {
 					this.$emit("ckItem", this.item.resumeId)
 				}

+ 66 - 7
pages/hr/index/resumeInfo/index.js

@@ -1,25 +1,84 @@
 //import * as WxJsApi from '@/utils/wxJsApi.js'
 import * as API from '@/apis/hr/resume.js'
-import recruitInfo from '@/pages/job/index/recruitInfo/recruitInfo.vue'
+import resumeInfo from '@/pages/job/personal/install/resume/resume.vue'
+import ResumeItem from '@/components/hr/ResumeItem.vue'
 
 export default {
 		data() {
-			return {
+			return {
+				isDeliver:false,
+				isCollect:false,
+				list:[],
+				 id:"",
 				isReady:false,
 				src: '/static/img/head/png',
 			}
 		},
 		components: {
-		
+			resumeInfo,ResumeItem
 		},
 		onLoad(op){
-			//this.id=op.id;
+			
+				this.id=op.id;
 		},
 		methods: {
-			 
-			
+			 deliverBtn(){
+			 	 
+			 	if(this.isDeliver){
+			 		uni.showToast({
+			 			title:"已投递,请勿重复投递"
+			 		})
+			 		return
+			 	}
+			 	uni.showLoading({
+			 	 	 title: '加载中'
+			 	 })
+			 	 API.deliverResume(this.id).then((res)=>{
+			 		  
+			 		 uni.hideLoading()
+			 		this.isDeliver=true;
+			 		
+			 	 }).catch(error => {
+			 			uni.showToast({
+			 				
+			 				title:error
+			 			})
+			 	})
+			 },collectBtn(){
+				uni.showLoading({
+				 	 title: '加载中'
+				 })
+				 this.isCollect=!this.isCollect
+				 
+				 API.collectResume(this.id,this.isCollect?1:0).then((res)=>{
+					  
+					 uni.hideLoading()
+					
+				 }).catch(error => {
+						uni.showToast({
+							title:error
+						})
+				})
+			},
+			getRelevantList(){
+				API.getRelevantList(this.id).then((res)=>{
+					 this.list=res.data.data;
+					 
+					 uni.hideLoading()		
+				 }).catch(error => {
+						uni.showToast({
+							
+							title:error
+						})
+				})
+			},
+			setId(id){
+				this.id=id;
+				
+				this.$refs.info.setId(this.id)
+			},
 		},onReady(){ 
-			
+			this.$refs.info.setId(this.id)
 			this.isReady=true;
 		},onShow(){
 			if(this.isReady){

+ 16 - 87
pages/hr/index/resumeInfo/resumeInfo.vue

@@ -5,98 +5,27 @@
 		 <resumeInfo :isHr="true" ref="info"></resumeInfo>
 		 
 		
+		<view class="resumeInfo-foot">
+			<view class="resumeInfo-collect"  @click="collectBtn">
+				<u-icon :name="isCollect?'a-fasfa-star ':'antOutline-star'" custom-prefix="custom-icon" size="36" color="#2295FF"></u-icon>
+				<u-icon v-if="false" name="antOutline-star" custom-prefix="custom-icon" size="36" color="#2295FF"></u-icon>
+				<span>收藏</span>
+			</view>
+			<view class="resumeInfo-btn">
+				<u-button type="primary"   @click="deliverBtn" v-text="isDeliver?'已发送':'立即沟通'">立即沟通</u-button>
+			</view>
+		</view>
 		 
-		<view class="jp-work">
+		<view class="jp-work" v-show="list.length" >
 			<view class="jp-work-title">
 				推荐简历
 			</view>
-			<view class="jp-work-list">
-				<view class="jp-work-item">
-					<view class="jp-work-name">
-						<h3>市场营销专员</h3>
-						<span>¥3000-5000/月</span>
-					</view>
-					<view class="jp-work-tag">
-						<u-tag text="在职-考虑机会"  mode="dark" bg-color="#f1f1f7" color="#999" size="mini"/>
-					</view>
-					<view class="jp-work-label u-flex">
-						<span>28岁</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>男</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>大学本科</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>4年经验</span>
-					</view>
-					<view class="jp-work-info">
-						<view class="u-flex">
-							<u-avatar :src="src" size="40"></u-avatar>
-							<p>李强</p>
-						</view>
-						<p>开发区</p>
-					</view>
-				</view>	
-				<view class="jp-work-item">
-					<view class="jp-work-name">
-						<h3>市场营销专员</h3>
-						<span>¥3000-5000/月</span>
-					</view>
-					<view class="jp-work-tag">
-						<u-tag text="在职-考虑机会"  mode="dark" bg-color="#f1f1f7" color="#999" size="mini"/>
-					</view>
-					<view class="jp-work-label u-flex">
-						<span>28岁</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>男</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>大学本科</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>4年经验</span>
-					</view>
-					<view class="jp-work-info">
-						<view class="u-flex">
-							<u-avatar :src="src" size="40"></u-avatar>
-							<p>李强</p>
-						</view>
-						<p>开发区</p>
-					</view>
-				</view>	
-				<view class="jp-work-item">
-					<view class="jp-work-name">
-						<h3>市场营销专员</h3>
-						<span>¥3000-5000/月</span>
-					</view>
-					<view class="jp-work-tag">
-						<u-tag text="在职-考虑机会"  mode="dark" bg-color="#f1f1f7" color="#999" size="mini"/>
-					</view>
-					<view class="jp-work-label u-flex">
-						<span>28岁</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>男</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>大学本科</span>
-						<u-line color="#ccc" length="20" direction="col" margin="0 20rpx"/>
-						<span>4年经验</span>
-					</view>
-					<view class="jp-work-info">
-						<view class="u-flex">
-							<u-avatar :src="src" size="40"></u-avatar>
-							<p>李强</p>
-						</view>
-						<p>开发区</p>
-					</view>
-				</view>	
-			</view>
-			<view class="resumeInfo-foot">
-				<view class="resumeInfo-collect">
-					<u-icon name="a-fasfa-star" custom-prefix="custom-icon" size="36" color="#2295FF"></u-icon>
-					<u-icon v-if="false" name="antOutline-star" custom-prefix="custom-icon" size="36" color="#2295FF"></u-icon>
-					<span>收藏</span>
-				</view>
-				<view class="resumeInfo-btn">
-					<u-button type="primary">立即沟通</u-button>
-				</view>
+			<view class="jp-work-list"  v-show="list.length" >
+				 
+				<ResumeItem v-for="(item ,index) in list" :key="index" :item="item" :ck="false" @ckItem="setId" ></ResumeItem>
+				
 			</view>
+			
 		</view>
 	</view>
 </template>

+ 2 - 2
pages/hr/my/follow/follow.vue

@@ -3,12 +3,12 @@
 		<u-navbar title="对您感兴趣"></u-navbar>
 		<view class="jp-follow">
 			
-			<view class="jp-follow-item" v-for="(item,i)  in list" :key="i">
+			<view class="jp-follow-item" v-for="(item,i)  in list" :key="i" @click="ckBtn(item.id)">
 				<view class="follow-text u-flex">
 					<u-avatar :src="item.headImage?item.headImage:src" size="60"></u-avatar>
 					<span>{{item.name}}</span>
 				</view>
-				<u-icon name="arrow-right" color="#999" size="24" v-if="item.jobUserId"></u-icon>
+				<u-icon name="arrow-right" color="#999" size="24" v-if="item.id"></u-icon>
 			</view>
 			 <u-loadmore @loadmore="myLoadmore" :status="list.length<recordsTotal?'loadmore':'nomore'" ></u-loadmore>
 			 

+ 7 - 1
pages/hr/my/follow/index.js

@@ -17,7 +17,13 @@ export default {
 		onLoad(op){
 			//this.id=op.id;
 		},
-		methods: {
+		methods: {
+			ckBtn(id){
+				if(id){
+					this.gotoUrl('pages/hr/index/resumeInfo/resumeInfo?id=' + id)
+					
+				}
+			},
 			 myLoadmore(){
 			 	 
 			 	this.pageIndex+=1;

+ 10 - 6
pages/job/personal/install/resume/index.js

@@ -8,6 +8,7 @@ export default {
 		return {
 			isAddResume:false,
 			id:"",
+			
 			form: {
 				name: '',
 				sex: '',
@@ -42,6 +43,7 @@ export default {
 		},
 	},
 	onLoad(op){
+		debugger
 		if(op.id){
 			this.id=op.id;
 		}
@@ -49,6 +51,10 @@ export default {
 			addResume
 		},
 	methods: {
+		setId(id){
+			this.id=id;
+			 this.getInfo();
+		},
 		update(){
 			if(this.resume.approveStatus!=2||process.env.NODE_ENV === "development"){
 				this.isAddResume=true;
@@ -93,11 +99,9 @@ export default {
 			uni.hideKeyboard();
 			this.form.sex = this.actionSheetList[index].text;
 		},
-	},mounted(){
+	},onReady(){
+		 this.getInfo();
+	},destroyed(){
 			
-			 this.getInfo();
-				
-		},destroyed(){
-			
-		}
+	}
 }

+ 2 - 2
pages/job/personal/install/resume/resume.vue

@@ -2,7 +2,7 @@
 	<view>
 		<addResume style="background-color: #ffffff;" v-if="isAddResume" ref="refAddResume" @back="isAddResume=false" @submit="isAddResume=false,getInfo()"></addResume>
 		<view v-show="!isAddResume">
-			<u-navbar title="我的简历"></u-navbar>
+			<u-navbar title="我的简历" v-if="!isHr"></u-navbar>
 			<view class="resumeInfo">		
 				<view class="resumeInfo-head">
 					<view class="resumeInfo-name">
@@ -90,7 +90,7 @@
 					 
 				</view>
 			</view>
-			<view class="resumeInfo-foot">
+			<view class="resumeInfo-foot"  v-if="!isHr">
 				<view class="resumeInfo-btn">
 					<u-button type="primary" @click="update" v-text="resume.approveStatus==2?'审批中':'修改简历'"></u-button>
 				</view>