xxdezh 7 meses atrás
pai
commit
b639b6a09c

+ 2 - 1
pages/index/game/orderDet.vue

@@ -795,7 +795,8 @@
 					userId: this.userId,
 					companyId: uni.getStorageSync('companyId')
 				}
-				this.$Request.get('/app/resumes/selectResumesByResumesId', data).then(res => {
+				//this.$Request.get('/app/resumes/selectResumesByResumesId', data).then(res => {
+					this.$Request.get('/app/userFirst/getResumes', data).then(res => {
 					if (res.code == 0) {
 						uni.hideLoading()
 						if (res.data.status == 1) {

+ 2 - 1
pages/index/index.vue

@@ -446,7 +446,8 @@
 				<view class="qyList flex justify-center">
 					<view class="qyList-box">
 						<view class="qyList-box-item flex justify-center" v-for="(item,index) in datasList" :key="index"
-							@click="goNav('/pages/index/game/orderDet?resumesId='+item.resumesId)">
+							@click="goNav('/pages/talentSearch/resumeDetail?resumesId='+item.resumesId)">  <!-- /pages/index/game/orderDet  -->
+							
 							<view class="qyList-box-item-box">
 								<view class="qyList-box-item-info flex justify-between align-center">
 									<view class="qyList-box-item-info-l">

+ 110 - 4
pages/talentSearch/resumeDetail.vue

@@ -300,10 +300,34 @@
 			let systemInfo = uni.getSystemInfoSync();
 			this.statusBarHeight = systemInfo.statusBarHeight || 0;
 			
-			if (options.resumeId) {
-				this.resumeId = options.resumeId;
-				this.loadResumeData();
+			// 获取邀请码保存到本地
+			if (option.invitation) {
+				this.$queue.setData('inviterCode', option.invitation);
 			}
+			// #ifdef MP-WEIXIN
+			if (option.scene) {
+				const scene = decodeURIComponent(option.scene);
+				this.$queue.setData('inviterCode', scene.split(',')[0]);
+			}
+			// #endif
+			uni.showLoading({
+				title: '加载中'
+			})
+			this.weekMember = uni.getStorageSync('weekMember')
+			this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : 0
+			if (option.resumesId) {
+				this.resumesId = option.resumesId
+				this.getDetail()
+			} else if (option.userId) {
+				this.byuserId = option.userId
+				this.getDetails()
+			}
+			// 获取邀请码保存到本地
+			if (option.invitation) {
+				this.$queue.setData('inviterCode', option.invitation);
+			}
+			
+			
 		},
 		methods: {
 			goBack() {
@@ -314,16 +338,98 @@
 				// 暂时使用默认数据
 				console.log('加载简历数据:', this.resumeId);
 			},
+			
 			contactCandidate() {
 				uni.showToast({
 					title: '功能开发中',
 					icon: 'none'
 				});
-			}
+			},
+			getDetail() {
+				uni.showLoading({
+					title: '加载中'
+				})
+				let data = {
+					resumesId: this.resumesId,
+					userId: this.userId,
+					companyId: uni.getStorageSync('companyId')
+				}
+				//this.$Request.get('/app/resumes/selectResumesByResumesId', data).then(res => {
+					this.$Request.get('/app/userFirst/getResumes', data).then(res => {
+					if (res.code == 0) {
+						uni.hideLoading()
+						if (res.data.status == 1) {
+							uni.showModal({
+								title: '提示',
+								content: '该简历审核中,暂无法查看',
+								showCancel: false,
+								cancelText: '',
+								confirmText: '去首页',
+								confirmColor: '#016BF6',
+								complete: (ret) => {
+									if (ret.confirm) {
+										uni.switchTab({
+											url: '/pages/index/index'
+										})
+									}
+								}
+							});
+						} else {
+							this.resumeData = res.data
+							//this.order.industryName = this.order.industryName.split(',')
+							this.getJobList(res.data.resumesPost)
+						}
+			
+					} else {
+						uni.hideLoading()
+						uni.showModal({
+							title: '提示',
+							content: '用户简历不存在',
+							showCancel: false,
+							complete(ret) {
+								uni.navigateBack()
+							}
+						})
+					}
+				})
+			},
+			//使用岗位名称查询出企业正在招聘的该岗位拿到对应的岗位id
+						getJobList(ruleClassifyName) {
+							let data = {
+								status: 2,
+								page: 1,
+								limit: 1,
+								ruleClassifyName: ruleClassifyName,
+								companyId: uni.getStorageSync('companyId')
+							}
+							this.$Request.getT('/app/postPush/getPostPushList', data).then(res => {
+								if (res.code == 0) {
+									this.postPushId = res.data.records[0].postPushId
+								}
+							})
+						},
+						// 查看图片
+						saveImg(imgs, index) {
+							// console.log(imgs)
+							let that = this;
+							let imgArr = imgs
+							// imgArr.push(imgs);
+							// //预览图片
+							uni.previewImage({
+								urls: imgArr,
+								current: imgArr[index]
+							});
+						},
 		}
 	}
 </script>
 
+
+
+
+
+
+
 <style lang="scss" scoped>
 	.resume-detail {
 		min-height: 100vh;