lyuis hace 8 meses
padre
commit
a67f12c450

+ 9 - 25
package/jobIntention/preferenceSetting.vue

@@ -25,10 +25,10 @@
 						v-for="(item, index) in preferenceOptions" 
 						:key="index"
 						class="preference-tag"
-						:class="{ active: selectedPreferences.includes(item) }"
-						@click="togglePreference(item)"
+						:class="{ active: selectedPreferences.includes(item.preferenceName) }"
+						@click="togglePreference(item.preferenceName)"
 					>
-						<text>{{ item }}</text>
+						<text>{{ item.preferenceName }}</text>
 					</view>
 				</view>
 			</view>
@@ -50,13 +50,9 @@ export default {
 		return {
 			jobTitle: '岗位',
 			jobId:'',
-			selectedPreferences: ['独立站'],
+			selectedPreferences: [],
 			preferenceOptions: [
-				'精品铺货', '独立站', '3C数码', '美妆日用', '服装配饰', '家居用品',
-				'户外运动', '母婴用品', '食品饮料', '宠物用品', '汽车用品', '图书文具',
-				'数码配件', '办公用品', '礼品玩具', '健康保健', '珠宝首饰', '箱包皮具',
-				'手表眼镜', '乐器音响', '摄影摄像', '运动健身', '旅游出行', '教育培训',
-				'金融服务', '生活服务', '其他'
+				
 			]
 		}
 	},
@@ -77,16 +73,9 @@ export default {
 			let data = {
 				ruleClassifyId:this.jobId
 			}
-			var action=this.jobId==''||this.jobId==0?'/app/userFirst/selectSkill':'/app/userFirst/getPostSkill'
-			this.$Request.getT(action,data).then(res => {
+			this.$Request.getT('/app/postPreference/getPostPreference',data).then(res => {
 				if(res.code==0){
-					if(this.jobId==''||this.jobId==0){
-						res.data.forEach(function(item){
-							item.postSkillName=item.skillName
-						})
-						this.operationOptions =[{childrenList:res.data,postSkillName:''}]
-					}else
-					this.operationOptions = res.data
+					this.preferenceOptions = res.data
 				}
 			})
 		},
@@ -115,11 +104,6 @@ export default {
 				preferences: this.selectedPreferences,
 				set
 			})
-			
-			uni.showToast({
-				title: '偏好设置已保存',
-				icon: 'success'
-			})
 		}
 	}
 }
@@ -206,7 +190,7 @@ export default {
 
 .preference-tag {
 	width: calc((100% - 72rpx) / 7);
-	padding: 8rpx 6rpx;
+	padding: 8rpx 12rpx;
 	background: #F7F8FA;
 	border: 1rpx solid #F7F8FA;
 	border-radius: 12rpx;
@@ -214,7 +198,7 @@ export default {
 	display: flex;
 	align-items: center;
 	justify-content: center;
-	
+	word-break: break-all;
 	text {
 		font-size: 18rpx;
 		color: rgba(102, 102, 102, 1);

+ 3 - 2
package/search/search.vue

@@ -162,7 +162,7 @@
 									<view class="gwList-box-item-box-title flex justify-between align-center">
 										<u-avatar :src="item.companyLogo?item.companyLogo:'../../static/images/index/jipinIcom.svg'" class="jipin-icon" ></u-avatar>
 										<view class="gwList-box-item-box-info-l">
-											<view class="companyTitle">{{item.companyName}}</view>
+											<view class="companyTitle">{{item.companyAllName}}</view>
 											<view class="company-info-text">
 												{{item.companyPeople}} · {{item.companyScope}}
 											</view>
@@ -282,7 +282,8 @@
 				],
 				showSortModalFlag: false,
 				selectedSort: 0,
-				sortOptions: ['综合排序', '最新优先', '距离优先']
+				sortOptions: ['综合排序', '最新优先', '距离优先'],
+				filter:'筛选'
 			};
 		},
 		watch: {

+ 1 - 1
pages/my/onlineResume.vue

@@ -233,7 +233,7 @@
 			uni.$on('skillsUpdated', (data) => {
 				if(data.set!=1)
 					return
-				that.changeSkill(data.skills)
+				that.changeSkill(data.selectedTags)
 			})
 			uni.$on('preferenceUpdated', (data) => {
 				if(data.set!=1)

+ 2 - 2
pages/my/workExperience.vue

@@ -252,7 +252,7 @@ export default {
 		uni.$on('skillsUpdated', (data) => {
 			console.log('技能设置已更新:', data)
 			// 这里可以更新对应的技能显示
-			this.formData.resumes[this.operateKey].skills=data.skills
+			this.formData.resumes[this.operateKey].skills=data.selectedTags
 		})
 	},
 	beforeDestroy() {
@@ -362,7 +362,7 @@ export default {
 			if(this.formData.resumes[index].positionId==''||this.formData.resumes[index].positionId==0)
 			return this.$queue.showToast('请先选择岗位')
 			uni.navigateTo({
-				url:'/package/jobIntention/jobSkills??jobId='+this.this.formData.resumes[index].positionId+'&jobTitle='+this.formData.resumes[index].position+'&skill='+encodeURIComponent(JSON.stringify(this.formData.resumes[index].skills))
+				url:'/package/jobIntention/jobSkills?jobId='+this.formData.resumes[index].positionId+'&jobTitle='+this.formData.resumes[index].position+'&skill='+encodeURIComponent(JSON.stringify(this.formData.resumes[index].skills))
 			})
 		},
 		removeSkill(resumeIndex, skillIndex) {