Explorar el Código

feat:立即沟通

jianghaili hace 7 meses
padre
commit
e42489359a
Se han modificado 1 ficheros con 12 adiciones y 3 borrados
  1. 12 3
      pages/talentSearch/index.vue

+ 12 - 3
pages/talentSearch/index.vue

@@ -146,6 +146,7 @@
 						name: '最新',
 					}
 				],
+				postPushId:'',
 				city: '深圳',
 				county: '',
 				showSortModalFlag: false,
@@ -326,8 +327,9 @@
 						}
 						if (res && res.data && Array.isArray(res.data)) {
 
-							console.log(res.data)
+							console.log(res.data,'啊啊啊')
 							this.selectedPosition = res.data[0].ruleClassifyId
+							this.postPushId=res.data[0].postPushId
 							// 更新下拉按钮显示的文字
 							this.selectedText = res.data[0].ruleClassifyName || '请选择'
 							console.log("zhiwei:", res.data[0].ruleClassifyName)
@@ -558,10 +560,17 @@
 
 			// 跳转到人才详情
 			goToResumeDetail(talent) {
-				console.log('查看人才详情:', talent)
+				console.log('查看人才详情:', talent,this.postPushId)
+				if(!this.postPushId){
+					uni.showToast({
+						title:'请添加招聘岗位!',
+						icon:'none'
+					})
+					return;
+				}
 				// 跳转到简历详情页面
 				uni.navigateTo({
-					url: `/pages/talentSearch/resumeDetail?resumesId=${talent.id || talent.resumesId || ''}`
+					url: `/pages/talentSearch/resumeDetail?resumesId=${talent.id || talent.resumesId || ''}&postPushId=${this.postPushId}`
 				})
 			}
 		}