lyuis 7 miesięcy temu
rodzic
commit
dc5c862b7e
2 zmienionych plików z 10 dodań i 10 usunięć
  1. 2 2
      manifest.json
  2. 8 8
      pages/talentSearch/index.vue

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "亿职赞",
     "appid" : "__UNI__0B0096D",
     "description" : "",
-    "versionName" : "1.0.2",
-    "versionCode" : 102,
+    "versionName" : "1.0.3",
+    "versionCode" : 103,
     "transformPx" : false,
     "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */

+ 8 - 8
pages/talentSearch/index.vue

@@ -146,7 +146,6 @@
 						name: '最新',
 					}
 				],
-				postPushId:'',
 				city: '深圳',
 				county: '',
 				showSortModalFlag: false,
@@ -309,8 +308,10 @@
 			 */
 			getCompanyClassify() {
 				let data = {
-					companyId: uni.getStorageSync('companyId')
+					
 				}
+				if(uni.getStorageSync('companyId')&&uni.getStorageSync('companyId')!='null')
+					data.companyId= uni.getStorageSync('companyId')
 				this.$Request.getT('/app/postPush/getCompanyClassify', data).then(res => {
 					if (res.code == 0) {
 						let arr = [
@@ -328,14 +329,13 @@
 						if (res && res.data && Array.isArray(res.data)) {
 
 							console.log(res.data,'啊啊啊')
-							this.selectedPosition = res.data[0].ruleClassifyId
-							this.postPushId=res.data[0].postPushId
+							this.selectedPosition = res.data[0].postPushId
 							// 更新下拉按钮显示的文字
 							this.selectedText = res.data[0].ruleClassifyName || '请选择'
 							console.log("zhiwei:", res.data[0].ruleClassifyName)
 							res.data.map(item => {
 								let obj = {
-									id: item.ruleClassifyId,
+									id: item.postPushId,
 									projectName: item.ruleClassifyName,
 									name: item.ruleClassifyName,
 								}
@@ -560,8 +560,8 @@
 
 			// 跳转到人才详情
 			goToResumeDetail(talent) {
-				console.log('查看人才详情:', talent,this.postPushId)
-				if(!this.postPushId){
+				console.log('查看人才详情:', talent,this.selectedPosition)
+				if(!this.selectedPosition){
 					uni.showToast({
 						title:'请添加招聘岗位!',
 						icon:'none'
@@ -570,7 +570,7 @@
 				}
 				// 跳转到简历详情页面
 				uni.navigateTo({
-					url: `/pages/talentSearch/resumeDetail?resumesId=${talent.id || talent.resumesId || ''}&postPushId=${this.postPushId}`
+					url: `/pages/talentSearch/resumeDetail?resumesId=${talent.id || talent.resumesId || ''}&postPushId=${this.selectedPosition}`
 				})
 			}
 		}